public class DistinguishedNameProviderImpl extends Object implements DistinguishedNameProvider
DistinguishedNameProvider
that uses the Spring LdapTemplate
to query for the information.Modifier and Type | Field and Description |
---|---|
protected ContextMapper<String> |
dnContextMapper |
protected LdapGroupProperties |
groupProperties |
protected LdapOperations |
ldapOperations |
protected LdapUserProperties |
userProperties |
Constructor and Description |
---|
DistinguishedNameProviderImpl(LdapOperations ldapOperations,
LdapUserProperties userProperties,
LdapGroupProperties groupProperties) |
Modifier and Type | Method and Description |
---|---|
ContextMapper<String> |
getDnContextMapper() |
protected Collection<String> |
getEntryDns(Collection<String> attributeMappings,
Collection<String> attributeValues,
String dnMapping) |
Collection<String> |
getGroupDnsFromIds(Collection<String> groupIds) |
Collection<String> |
getGroupDnsFromKeys(Collection<String> groupKeys) |
LdapGroupProperties |
getGroupProperties() |
LdapOperations |
getLdapOperations() |
Collection<String> |
getUserDns(Collection<String> userIds) |
LdapUserProperties |
getUserProperties() |
void |
setDnContextMapper(ContextMapper<String> dnContextMapper) |
void |
setGroupProperties(LdapGroupProperties groupProperties) |
void |
setLdapOperations(LdapOperations ldapOperations) |
void |
setUserProperties(LdapUserProperties userProperties) |
protected LdapOperations ldapOperations
protected LdapUserProperties userProperties
protected LdapGroupProperties groupProperties
protected ContextMapper<String> dnContextMapper
public DistinguishedNameProviderImpl(LdapOperations ldapOperations, LdapUserProperties userProperties, LdapGroupProperties groupProperties)
public Collection<String> getUserDns(Collection<String> userIds)
getUserDns
in interface DistinguishedNameProvider
public Collection<String> getGroupDnsFromKeys(Collection<String> groupKeys)
getGroupDnsFromKeys
in interface DistinguishedNameProvider
public Collection<String> getGroupDnsFromIds(Collection<String> groupIds)
getGroupDnsFromIds
in interface DistinguishedNameProvider
protected Collection<String> getEntryDns(Collection<String> attributeMappings, Collection<String> attributeValues, String dnMapping)
public LdapUserProperties getUserProperties()
public void setUserProperties(LdapUserProperties userProperties)
public LdapGroupProperties getGroupProperties()
public void setGroupProperties(LdapGroupProperties groupProperties)
public LdapOperations getLdapOperations()
public void setLdapOperations(LdapOperations ldapOperations)
public ContextMapper<String> getDnContextMapper()
public void setDnContextMapper(ContextMapper<String> dnContextMapper)