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 java.lang.Object implements DistinguishedNameProvider
Default implementation of
DistinguishedNameProvider
that uses the Spring LdapTemplate
to query for the information.- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.ldap.core.ContextMapper<java.lang.String>
dnContextMapper
protected LdapGroupProperties
groupProperties
protected org.springframework.ldap.core.LdapOperations
ldapOperations
protected LdapUserProperties
userProperties
-
Constructor Summary
Constructors Constructor Description DistinguishedNameProviderImpl(org.springframework.ldap.core.LdapOperations ldapOperations, LdapUserProperties userProperties, LdapGroupProperties groupProperties)
-
Method Summary
Modifier and Type Method Description org.springframework.ldap.core.ContextMapper<java.lang.String>
getDnContextMapper()
protected java.util.Collection<java.lang.String>
getEntryDns(java.util.Collection<java.lang.String> attributeMappings, java.util.Collection<java.lang.String> attributeValues, java.lang.String dnMapping)
java.util.Collection<java.lang.String>
getGroupDnsFromIds(java.util.Collection<java.lang.String> groupIds)
java.util.Collection<java.lang.String>
getGroupDnsFromKeys(java.util.Collection<java.lang.String> groupKeys)
LdapGroupProperties
getGroupProperties()
org.springframework.ldap.core.LdapOperations
getLdapOperations()
java.util.Collection<java.lang.String>
getUserDns(java.util.Collection<java.lang.String> userIds)
LdapUserProperties
getUserProperties()
void
setDnContextMapper(org.springframework.ldap.core.ContextMapper<java.lang.String> dnContextMapper)
void
setGroupProperties(LdapGroupProperties groupProperties)
void
setLdapOperations(org.springframework.ldap.core.LdapOperations ldapOperations)
void
setUserProperties(LdapUserProperties userProperties)
-
Field Details
-
ldapOperations
protected org.springframework.ldap.core.LdapOperations ldapOperations -
userProperties
-
groupProperties
-
dnContextMapper
protected org.springframework.ldap.core.ContextMapper<java.lang.String> dnContextMapper
-
-
Constructor Details
-
DistinguishedNameProviderImpl
public DistinguishedNameProviderImpl(org.springframework.ldap.core.LdapOperations ldapOperations, LdapUserProperties userProperties, LdapGroupProperties groupProperties)
-
-
Method Details
-
getUserDns
public java.util.Collection<java.lang.String> getUserDns(java.util.Collection<java.lang.String> userIds)- Specified by:
getUserDns
in interfaceDistinguishedNameProvider
-
getGroupDnsFromKeys
public java.util.Collection<java.lang.String> getGroupDnsFromKeys(java.util.Collection<java.lang.String> groupKeys)- Specified by:
getGroupDnsFromKeys
in interfaceDistinguishedNameProvider
-
getGroupDnsFromIds
public java.util.Collection<java.lang.String> getGroupDnsFromIds(java.util.Collection<java.lang.String> groupIds)- Specified by:
getGroupDnsFromIds
in interfaceDistinguishedNameProvider
-
getEntryDns
protected java.util.Collection<java.lang.String> getEntryDns(java.util.Collection<java.lang.String> attributeMappings, java.util.Collection<java.lang.String> attributeValues, java.lang.String dnMapping) -
getUserProperties
-
setUserProperties
-
getGroupProperties
-
setGroupProperties
-
getLdapOperations
public org.springframework.ldap.core.LdapOperations getLdapOperations() -
setLdapOperations
public void setLdapOperations(org.springframework.ldap.core.LdapOperations ldapOperations) -
getDnContextMapper
public org.springframework.ldap.core.ContextMapper<java.lang.String> getDnContextMapper() -
setDnContextMapper
public void setDnContextMapper(org.springframework.ldap.core.ContextMapper<java.lang.String> dnContextMapper)
-