Interface LdapGroupTenantIdProvider

  • All Known Implementing Classes:
    DefaultLdapGroupTenantIdProvider

    public interface LdapGroupTenantIdProvider
    A provider for a tenant id for a group based on LDAP group Attributes.
    Author:
    Filip Hrisafov
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Optional<org.springframework.ldap.filter.Filter> createTenantIdFilter​(java.lang.String queryTenantId)
      Method for providing the optional Filter for the tenant being queried.
      java.lang.String determineTenantId​(javax.naming.directory.Attributes attributes)
      Method for extracting the tenant id for a group from the provided Attributes
    • Method Detail

      • determineTenantId

        java.lang.String determineTenantId​(javax.naming.directory.Attributes attributes)
        Method for extracting the tenant id for a group from the provided Attributes
        Parameters:
        attributes - the attributes that can be used to determine the tenant id
        Returns:
        the tenant id that the group should have
      • createTenantIdFilter

        java.util.Optional<org.springframework.ldap.filter.Filter> createTenantIdFilter​(java.lang.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