Class MultiTenantUserWorkspaceService
- java.lang.Object
-
- org.nuxeo.ecm.platform.userworkspace.core.service.AbstractUserWorkspaceImpl
-
- org.nuxeo.ecm.platform.userworkspace.core.service.DefaultUserWorkspaceServiceImpl
-
- org.nuxeo.ecm.multi.tenant.userworkspace.MultiTenantUserWorkspaceService
-
- All Implemented Interfaces:
Serializable
,CollectionLocationService
,UserWorkspaceService
public class MultiTenantUserWorkspaceService extends DefaultUserWorkspaceServiceImpl
Multi tenant aware implementation of theUserWorkspaceService
.If there is a current tenant, the UserWorkspaceRoot is stored inside the tenant, otherwise it uses the default behavior of
DefaultUserWorkspaceServiceImpl
.- Since:
- 5.6
- Author:
- Thomas Roger
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuxeo.ecm.platform.userworkspace.core.service.AbstractUserWorkspaceImpl
AbstractUserWorkspaceImpl.UnrestrictedUserWorkspaceFinder
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.platform.userworkspace.core.service.AbstractUserWorkspaceImpl
ESCAPE_CHAR, ESCAPED_CHARS, maxsize, targetDomainName
-
-
Constructor Summary
Constructors Constructor Description MultiTenantUserWorkspaceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
computePathUserWorkspaceRoot(CoreSession userCoreSession, String userName)
protected String
computePathUserWorkspaceRootForTenant(CoreSession session, String tenantId)
protected String
getTenantId(CoreSession userCoreSession, String userName)
-
Methods inherited from class org.nuxeo.ecm.platform.userworkspace.core.service.DefaultUserWorkspaceServiceImpl
doCreateUserWorkspace, doCreateUserWorkspacesRoot, getUserWorkspaceRootType, getUserWorkspaceType, initCreateUserWorkspace, initCreateUserWorkspacesRoot
-
Methods inherited from class org.nuxeo.ecm.platform.userworkspace.core.service.AbstractUserWorkspaceImpl
buildUserWorkspaceTitle, createDefaultCollectionsRoot, createFavorites, digest, escape, generateCandidates, getCandidateUserWorkspaceNames, getComponent, getCurrentUserPersonalWorkspace, getCurrentUserPersonalWorkspace, getCurrentUserPersonalWorkspace, getCurrentUserPersonalWorkspace, getDomainName, getExistingUserWorkspace, getExistingUserWorkspaceRoot, getLocale, getUserDefaultCollectionsRoot, getUserFavorites, getUserName, getUserPersonalWorkspace, getUserPersonalWorkspace, initCreateFavorites, initDefaultCollectionsRoot, invalidate, isUnderUserWorkspace, notifyEvent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.platform.userworkspace.api.UserWorkspaceService
getCurrentUserPersonalWorkspace, getCurrentUserPersonalWorkspace, getCurrentUserPersonalWorkspace, getUserPersonalWorkspace, getUserPersonalWorkspace, invalidate, isUnderUserWorkspace
-
-
-
-
Method Detail
-
getTenantId
protected String getTenantId(CoreSession userCoreSession, String userName)
-
computePathUserWorkspaceRoot
protected String computePathUserWorkspaceRoot(CoreSession userCoreSession, String userName)
- Overrides:
computePathUserWorkspaceRoot
in classAbstractUserWorkspaceImpl
-
computePathUserWorkspaceRootForTenant
protected String computePathUserWorkspaceRootForTenant(CoreSession session, String tenantId)
-
-