Interface UserMultiTenantManagement

  • All Known Implementing Classes:
    DefaultUserMultiTenantManagement

    public interface UserMultiTenantManagement
    Implementations of this interface manages the multi-tenant behavior for UserManager. This class will be used to fetch the User Directory and the Group characteristics
    Author:
    bjalon
    • Method Detail

      • queryTransformer

        void queryTransformer​(UserManager um,
                              Map<String,​Serializable> filter,
                              Set<String> fulltext,
                              DocumentModel context)
        Transform filter and fulltext to fetch Groups for the given context and the query specified with the given filter and fulltext. Be careful the filter map and the fulltext set object will be modified so copy them before.
      • groupTransformer

        DocumentModel groupTransformer​(UserManager um,
                                       DocumentModel group,
                                       DocumentModel context)
        Transform the Group DocumentModel store it into the tenant described by the context
        Parameters:
        group - to modified
        context - that bring the tenant information
      • groupQueryTransformer

        QueryBuilder groupQueryTransformer​(UserManager um,
                                           QueryBuilder queryBuilder,
                                           DocumentModel context)
        Transforms the query builder to add tenant-related information.
        Returns:
        the transformed query builder
        Since:
        10.3
      • groupnameTranformer

        String groupnameTranformer​(UserManager um,
                                   String groupname,
                                   DocumentModel context)
        Transform the GroupName to add to tenant characteristic.
        Parameters:
        groupname - to modified
        context - that bring the tenant information