public class DefaultLdapGroupTenantIdProvider extends Object implements LdapGroupTenantIdProvider
| Modifier and Type | Field and Description |
|---|---|
protected LdapGroupProperties |
groupProperties |
| Constructor and Description |
|---|
DefaultLdapGroupTenantIdProvider(LdapGroupProperties groupProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected OrFilter |
createFilter(Collection<String> tenantIdMappings,
String tenantId) |
Optional<Filter> |
createTenantIdFilter(String queryTenantId)
Method for providing the optional
Filter for the tenant being queried. |
String |
determineTenantId(Attributes attributes)
Method for extracting the tenant id for a group from the provided
Attributes |
LdapGroupProperties |
getGroupProperties() |
void |
setGroupProperties(LdapGroupProperties groupProperties) |
protected LdapGroupProperties groupProperties
public DefaultLdapGroupTenantIdProvider(LdapGroupProperties groupProperties)
public String determineTenantId(Attributes attributes)
LdapGroupTenantIdProviderAttributesdetermineTenantId in interface LdapGroupTenantIdProviderattributes - the attributes that can be used to determine the tenant idpublic Optional<Filter> createTenantIdFilter(String queryTenantId)
LdapGroupTenantIdProviderFilter for the tenant being queried.
If no filter is provided, then querying on tenant id would be ignored.createTenantIdFilter in interface LdapGroupTenantIdProviderqueryTenantId - the query tenant id, never nullprotected OrFilter createFilter(Collection<String> tenantIdMappings, String tenantId)
public LdapGroupProperties getGroupProperties()
public void setGroupProperties(LdapGroupProperties groupProperties)