Package com.flowable.idm.engine.ldap
Class DefaultLdapUserTenantIdProvider
java.lang.Object
com.flowable.idm.engine.ldap.DefaultLdapUserTenantIdProvider
- All Implemented Interfaces:
LdapUserTenantIdProvider
public class DefaultLdapUserTenantIdProvider extends java.lang.Object implements LdapUserTenantIdProvider
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected LdapUserProperties
userProperties
-
Constructor Summary
Constructors Constructor Description DefaultLdapUserTenantIdProvider(LdapUserProperties userProperties)
-
Method Summary
Modifier and Type Method Description protected org.springframework.ldap.filter.OrFilter
createFilter(java.util.Collection<java.lang.String> tenantIdMappings, java.lang.String tenantId)
java.util.Optional<org.springframework.ldap.filter.Filter>
createTenantIdFilter(java.lang.String queryTenantId)
Method for providing the optionalFilter
for the tenant being queried.java.lang.String
determineTenantId(javax.naming.directory.Attributes attributes)
Method for extracting the tenant id for a user from the providedAttributes
LdapUserProperties
getUserProperties()
void
setUserProperties(LdapUserProperties userProperties)
-
Field Details
-
Constructor Details
-
Method Details
-
determineTenantId
public java.lang.String determineTenantId(javax.naming.directory.Attributes attributes)Description copied from interface:LdapUserTenantIdProvider
Method for extracting the tenant id for a user from the providedAttributes
- Specified by:
determineTenantId
in interfaceLdapUserTenantIdProvider
- Parameters:
attributes
- the attributes that can be used to determine the tenant id- Returns:
- the tenant id that the user should have
-
createTenantIdFilter
public java.util.Optional<org.springframework.ldap.filter.Filter> createTenantIdFilter(java.lang.String queryTenantId)Description copied from interface:LdapUserTenantIdProvider
Method for providing the optionalFilter
for the tenant being queried. If no filter is provided, then querying on tenant id would be ignored.- Specified by:
createTenantIdFilter
in interfaceLdapUserTenantIdProvider
- Parameters:
queryTenantId
- the query tenant id, nevernull
- Returns:
- the optional LDAP filter
-
createFilter
protected org.springframework.ldap.filter.OrFilter createFilter(java.util.Collection<java.lang.String> tenantIdMappings, java.lang.String tenantId) -
getUserProperties
-
setUserProperties
-