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 java.lang.Object implements LdapGroupTenantIdProvider
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected LdapGroupPropertiesgroupProperties
-
Constructor Summary
Constructors Constructor Description DefaultLdapGroupTenantIdProvider(LdapGroupProperties groupProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.ldap.filter.OrFiltercreateFilter(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 optionalFilterfor the tenant being queried.java.lang.StringdetermineTenantId(javax.naming.directory.Attributes attributes)Method for extracting the tenant id for a group from the providedAttributesLdapGroupPropertiesgetGroupProperties()voidsetGroupProperties(LdapGroupProperties groupProperties)
-
-
-
Field Detail
-
groupProperties
protected LdapGroupProperties groupProperties
-
-
Constructor Detail
-
DefaultLdapGroupTenantIdProvider
public DefaultLdapGroupTenantIdProvider(LdapGroupProperties groupProperties)
-
-
Method Detail
-
determineTenantId
public java.lang.String determineTenantId(javax.naming.directory.Attributes attributes)
Description copied from interface:LdapGroupTenantIdProviderMethod for extracting the tenant id for a group from the providedAttributes- Specified by:
determineTenantIdin 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 java.util.Optional<org.springframework.ldap.filter.Filter> createTenantIdFilter(java.lang.String queryTenantId)
Description copied from interface:LdapGroupTenantIdProviderMethod for providing the optionalFilterfor the tenant being queried. If no filter is provided, then querying on tenant id would be ignored.- Specified by:
createTenantIdFilterin interfaceLdapGroupTenantIdProvider- 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)
-
getGroupProperties
public LdapGroupProperties getGroupProperties()
-
setGroupProperties
public void setGroupProperties(LdapGroupProperties groupProperties)
-
-