Package com.flowable.idm.engine.ldap
Class DefaultLdapGroupTenantIdProvider
- java.lang.Object
-
- com.flowable.idm.engine.ldap.DefaultLdapGroupTenantIdProvider
-
- All Implemented Interfaces:
LdapGroupTenantIdProvider
public class DefaultLdapGroupTenantIdProvider extends Object implements LdapGroupTenantIdProvider
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected LdapGroupProperties
groupProperties
protected org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description DefaultLdapGroupTenantIdProvider(LdapGroupProperties groupProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OrFilter
createFilter(Collection<String> tenantIdMappings, String tenantId)
Optional<Filter>
createTenantIdFilter(String queryTenantId)
Method for providing the optionalFilter
for the tenant being queried.String
determineTenantId(Attributes attributes)
Method for extracting the tenant id for a group from the providedAttributes
LdapGroupProperties
getGroupProperties()
void
setGroupProperties(LdapGroupProperties groupProperties)
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
groupProperties
protected LdapGroupProperties groupProperties
-
-
Constructor Detail
-
DefaultLdapGroupTenantIdProvider
public DefaultLdapGroupTenantIdProvider(LdapGroupProperties groupProperties)
-
-
Method Detail
-
determineTenantId
public String determineTenantId(Attributes attributes)
Description copied from interface:LdapGroupTenantIdProvider
Method for extracting the tenant id for a group from the providedAttributes
- Specified by:
determineTenantId
in interfaceLdapGroupTenantIdProvider
- Parameters:
attributes
- the attributes that can be used to determine the tenant id- Returns:
- the tenant id that the group should have
-
createTenantIdFilter
public Optional<Filter> createTenantIdFilter(String queryTenantId)
Description copied from interface:LdapGroupTenantIdProvider
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 interfaceLdapGroupTenantIdProvider
- Parameters:
queryTenantId
- the query tenant id, nevernull
- Returns:
- the optional LDAP filter
-
createFilter
protected OrFilter createFilter(Collection<String> tenantIdMappings, String tenantId)
-
getGroupProperties
public LdapGroupProperties getGroupProperties()
-
setGroupProperties
public void setGroupProperties(LdapGroupProperties groupProperties)
-
-