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
Modifier and TypeFieldDescriptionprotected final org.slf4j.Logger
protected static final String
protected static final String
protected LdapUserGroupsProvider
protected LdapUserProperties
-
Constructor Summary
ConstructorDescriptionDefaultLdapUserDefinitionKeyProvider
(LdapUserProperties userProperties) DefaultLdapUserDefinitionKeyProvider
(LdapUserProperties userProperties, LdapUserGroupsProvider userGroupsProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected OrFilter
createFilter
(Collection<String> userDefinitionKeyMappings, String userDefinitionKey) createUserDefinitionKeyFilter
(String queryUserDefinitionKey) Method for providing the optionalFilter
for the user definition key being queried.determineUserDefinitionKey
(Attributes attributes) Method for extracting the user definition key from the providedAttributes
protected String
determineUserDefinitionKeyForAttributes
(Attributes attributes) protected String
determineUserDefinitionKeyForGroups
(Attributes attributes) void
setUserGroupsProvider
(LdapUserGroupsProvider userGroupsProvider) void
setUserProperties
(LdapUserProperties userProperties)
-
Field Details
-
MAPPING_TYPE_ATTRIBUTES
- See Also:
-
MAPPING_TYPE_GROUPS
- See Also:
-
logger
protected final org.slf4j.Logger logger -
userProperties
-
userGroupsProvider
-
-
Constructor Details
-
DefaultLdapUserDefinitionKeyProvider
-
DefaultLdapUserDefinitionKeyProvider
public DefaultLdapUserDefinitionKeyProvider(LdapUserProperties userProperties, LdapUserGroupsProvider userGroupsProvider)
-
-
Method Details
-
determineUserDefinitionKey
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
-
determineUserDefinitionKeyForGroups
-
createUserDefinitionKeyFilter
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
-
setUserProperties
-
getUserGroupsProvider
-
setUserGroupsProvider
-