Package com.flowable.idm.engine.ldap
Class DefaultLdapUserDefinitionKeyProvider
- java.lang.Object
-
- com.flowable.idm.engine.ldap.DefaultLdapUserDefinitionKeyProvider
-
- All Implemented Interfaces:
LdapUserDefinitionKeyProvider
public class DefaultLdapUserDefinitionKeyProvider extends Object implements LdapUserDefinitionKeyProvider
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
protected static String
MAPPING_TYPE_ATTRIBUTES
protected static String
MAPPING_TYPE_GROUPS
protected LdapUserGroupsProvider
userGroupsProvider
protected LdapUserProperties
userProperties
-
Constructor Summary
Constructors Constructor Description DefaultLdapUserDefinitionKeyProvider(LdapUserProperties userProperties)
DefaultLdapUserDefinitionKeyProvider(LdapUserProperties userProperties, LdapUserGroupsProvider userGroupsProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OrFilter
createFilter(Collection<String> userDefinitionKeyMappings, String userDefinitionKey)
Optional<Filter>
createUserDefinitionKeyFilter(String queryUserDefinitionKey)
Method for providing the optionalFilter
for the user definition key being queried.String
determineUserDefinitionKey(Attributes attributes)
Method for extracting the user definition key from the providedAttributes
protected String
determineUserDefinitionKeyForAttributes(Attributes attributes)
protected String
determineUserDefinitionKeyForGroups(Attributes attributes)
LdapUserGroupsProvider
getUserGroupsProvider()
LdapUserProperties
getUserProperties()
void
setUserGroupsProvider(LdapUserGroupsProvider userGroupsProvider)
void
setUserProperties(LdapUserProperties userProperties)
-
-
-
Field Detail
-
MAPPING_TYPE_ATTRIBUTES
protected static final String MAPPING_TYPE_ATTRIBUTES
- See Also:
- Constant Field Values
-
MAPPING_TYPE_GROUPS
protected static final String MAPPING_TYPE_GROUPS
- See Also:
- Constant Field Values
-
logger
protected final org.slf4j.Logger logger
-
userProperties
protected LdapUserProperties userProperties
-
userGroupsProvider
protected LdapUserGroupsProvider userGroupsProvider
-
-
Constructor Detail
-
DefaultLdapUserDefinitionKeyProvider
public DefaultLdapUserDefinitionKeyProvider(LdapUserProperties userProperties)
-
DefaultLdapUserDefinitionKeyProvider
public DefaultLdapUserDefinitionKeyProvider(LdapUserProperties userProperties, LdapUserGroupsProvider userGroupsProvider)
-
-
Method Detail
-
determineUserDefinitionKey
public String determineUserDefinitionKey(Attributes attributes)
Description copied from interface:LdapUserDefinitionKeyProvider
Method for extracting the user definition key from the providedAttributes
- Specified by:
determineUserDefinitionKey
in interfaceLdapUserDefinitionKeyProvider
- Parameters:
attributes
- the attributes that can be used to determine the user definition key- Returns:
- the user definition key for the user
-
determineUserDefinitionKeyForAttributes
protected String determineUserDefinitionKeyForAttributes(Attributes attributes)
-
determineUserDefinitionKeyForGroups
protected String determineUserDefinitionKeyForGroups(Attributes attributes)
-
createUserDefinitionKeyFilter
public Optional<Filter> createUserDefinitionKeyFilter(String queryUserDefinitionKey)
Description copied from interface:LdapUserDefinitionKeyProvider
Method for providing the optionalFilter
for the user definition key being queried. If no filter is provided, then querying on user definition key would be ignored.- Specified by:
createUserDefinitionKeyFilter
in interfaceLdapUserDefinitionKeyProvider
- Parameters:
queryUserDefinitionKey
- the query user definition key, nevernull
- Returns:
- the optional LDAP filter
-
createFilter
protected OrFilter createFilter(Collection<String> userDefinitionKeyMappings, String userDefinitionKey)
-
getUserProperties
public LdapUserProperties getUserProperties()
-
setUserProperties
public void setUserProperties(LdapUserProperties userProperties)
-
getUserGroupsProvider
public LdapUserGroupsProvider getUserGroupsProvider()
-
setUserGroupsProvider
public void setUserGroupsProvider(LdapUserGroupsProvider userGroupsProvider)
-
-