Interface LdapUserTenantIdProvider

All Known Implementing Classes:
DefaultLdapUserTenantIdProvider

public interface LdapUserTenantIdProvider
A provider for a tenant id for a user based on LDAP user Attributes.
Author:
Filip Hrisafov
  • Method Details

    • determineTenantId

      String determineTenantId(Attributes attributes)
      Method for extracting the tenant id for a user from the provided Attributes
      Parameters:
      attributes - the attributes that can be used to determine the tenant id
      Returns:
      the tenant id that the user should have
    • createTenantIdFilter

      Optional<Filter> createTenantIdFilter(String queryTenantId)
      Method for providing the optional Filter for the tenant being queried. If no filter is provided, then querying on tenant id would be ignored.
      Parameters:
      queryTenantId - the query tenant id, never null
      Returns:
      the optional LDAP filter
    • createTenantIdLikeFilter

      default Optional<Filter> createTenantIdLikeFilter(String queryTenantIdLike)
      Method for providing the optional Filter for the tenant id like value being queried. If no filter is provided, then querying on tenant id like would be ignored.

      The default implementation provides no filter.

      Parameters:
      queryTenantIdLike - the query tenant id like value, never null
      Returns:
      the optional LDAP filter