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 Summary
Modifier and TypeMethodDescriptiongroupnameTranformer
(UserManager um, String groupname, DocumentModel context) Transform the GroupName to add to tenant characteristic.groupQueryTransformer
(UserManager um, QueryBuilder queryBuilder, DocumentModel context) Transforms the query builder to add tenant-related information.groupTransformer
(UserManager um, DocumentModel group, DocumentModel context) Transform the Group DocumentModel store it into the tenant described by the contextvoid
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.
-
Method Details
-
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
Transform the Group DocumentModel store it into the tenant described by the context- Parameters:
group
- to modifiedcontext
- 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
Transform the GroupName to add to tenant characteristic.- Parameters:
groupname
- to modifiedcontext
- that bring the tenant information
-