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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
groupnameTranformer(UserManager um, String groupname, DocumentModel context)
Transform the GroupName to add to tenant characteristic.QueryBuilder
groupQueryTransformer(UserManager um, QueryBuilder queryBuilder, DocumentModel context)
Transforms the query builder to add tenant-related information.DocumentModel
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 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 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
String groupnameTranformer(UserManager um, String groupname, DocumentModel context)
Transform the GroupName to add to tenant characteristic.- Parameters:
groupname
- to modifiedcontext
- that bring the tenant information
-
-