Package com.flowable.idm.engine.ldap
Class DistinguishedNameProviderImpl
- java.lang.Object
-
- com.flowable.idm.engine.ldap.DistinguishedNameProviderImpl
-
- All Implemented Interfaces:
DistinguishedNameProvider
public class DistinguishedNameProviderImpl extends Object implements DistinguishedNameProvider
Default implementation ofDistinguishedNameProvider
that uses the SpringLdapTemplate
to query for the information.- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected ContextMapper<String>
dnContextMapper
protected LdapGroupProperties
groupProperties
protected LdapOperations
ldapOperations
protected LdapUserProperties
userProperties
-
Constructor Summary
Constructors Constructor Description DistinguishedNameProviderImpl(LdapOperations ldapOperations, LdapUserProperties userProperties, LdapGroupProperties groupProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
ldapOperations
protected LdapOperations ldapOperations
-
userProperties
protected LdapUserProperties userProperties
-
groupProperties
protected LdapGroupProperties groupProperties
-
dnContextMapper
protected ContextMapper<String> dnContextMapper
-
-
Constructor Detail
-
DistinguishedNameProviderImpl
public DistinguishedNameProviderImpl(LdapOperations ldapOperations, LdapUserProperties userProperties, LdapGroupProperties groupProperties)
-
-
Method Detail
-
getUserDns
public Collection<String> getUserDns(Collection<String> userIds)
- Specified by:
getUserDns
in interfaceDistinguishedNameProvider
-
getGroupDnsFromKeys
public Collection<String> getGroupDnsFromKeys(Collection<String> groupKeys)
- Specified by:
getGroupDnsFromKeys
in interfaceDistinguishedNameProvider
-
getGroupDnsFromIds
public Collection<String> getGroupDnsFromIds(Collection<String> groupIds)
- Specified by:
getGroupDnsFromIds
in interfaceDistinguishedNameProvider
-
getEntryDns
protected Collection<String> getEntryDns(Collection<String> attributeMappings, Collection<String> attributeValues, String dnMapping)
-
getUserProperties
public LdapUserProperties getUserProperties()
-
setUserProperties
public void setUserProperties(LdapUserProperties userProperties)
-
getGroupProperties
public LdapGroupProperties getGroupProperties()
-
setGroupProperties
public void setGroupProperties(LdapGroupProperties groupProperties)
-
getLdapOperations
public LdapOperations getLdapOperations()
-
setLdapOperations
public void setLdapOperations(LdapOperations ldapOperations)
-
getDnContextMapper
public ContextMapper<String> getDnContextMapper()
-
setDnContextMapper
public void setDnContextMapper(ContextMapper<String> dnContextMapper)
-
-