Class DefaultUserMultiTenantManagement
java.lang.Object
org.nuxeo.ecm.platform.usermanager.DefaultUserMultiTenantManagement
- All Implemented Interfaces:
UserMultiTenantManagement
- Author:
- bjalon
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Changes group equality or difference matches to take into account a suffix. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getDirectorySuffix
(DocumentModel documentContext) groupnameTranformer
(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.
-
Field Details
-
SUFFIX_SEPARATOR
- See Also:
-
-
Constructor Details
-
DefaultUserMultiTenantManagement
public DefaultUserMultiTenantManagement()
-
-
Method Details
-
getDirectorySuffix
-
queryTransformer
public void queryTransformer(UserManager um, Map<String, Serializable> filter, Set<String> fulltext, DocumentModel context) Description copied from interface:UserMultiTenantManagement
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.- Specified by:
queryTransformer
in interfaceUserMultiTenantManagement
-
groupQueryTransformer
public QueryBuilder groupQueryTransformer(UserManager um, QueryBuilder queryBuilder, DocumentModel context) Description copied from interface:UserMultiTenantManagement
Transforms the query builder to add tenant-related information.- Specified by:
groupQueryTransformer
in interfaceUserMultiTenantManagement
- Returns:
- the transformed query builder
-
groupTransformer
Description copied from interface:UserMultiTenantManagement
Transform the Group DocumentModel store it into the tenant described by the context- Specified by:
groupTransformer
in interfaceUserMultiTenantManagement
group
- to modifiedcontext
- that bring the tenant information
-
groupnameTranformer
Description copied from interface:UserMultiTenantManagement
Transform the GroupName to add to tenant characteristic.- Specified by:
groupnameTranformer
in interfaceUserMultiTenantManagement
groupname
- to modifiedcontext
- that bring the tenant information
-