Class DefaultUserMultiTenantManagement
- java.lang.Object
-
- org.nuxeo.ecm.platform.usermanager.DefaultUserMultiTenantManagement
-
- All Implemented Interfaces:
UserMultiTenantManagement
public class DefaultUserMultiTenantManagement extends Object implements UserMultiTenantManagement
- Author:
- bjalon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultUserMultiTenantManagement.QueryTenantAdder
Changes group equality or difference matches to take into account a suffix.
-
Field Summary
Fields Modifier and Type Field Description protected static Log
log
protected static String
SUFFIX_SEPARATOR
-
Constructor Summary
Constructors Constructor Description DefaultUserMultiTenantManagement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getDirectorySuffix(DocumentModel documentContext)
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.
-
-
-
Field Detail
-
log
protected static final Log log
-
SUFFIX_SEPARATOR
protected static final String SUFFIX_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDirectorySuffix
protected String getDirectorySuffix(DocumentModel documentContext)
-
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
public DocumentModel groupTransformer(UserManager um, DocumentModel group, DocumentModel context)
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
public String groupnameTranformer(UserManager um, String groupname, DocumentModel context)
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
-
-