public class MultiTenantUserWorkspaceService extends DefaultUserWorkspaceServiceImpl
UserWorkspaceService
.
If there is a current tenant, the UserWorkspaceRoot is stored inside the tenant, otherwise it uses the default
behavior of DefaultUserWorkspaceServiceImpl
.
AbstractUserWorkspaceImpl.RootDomainFinder, AbstractUserWorkspaceImpl.UnrestrictedUserWorkspaceFinder, AbstractUserWorkspaceImpl.UnrestrictedUWSCreator
targetDomainName
Constructor and Description |
---|
MultiTenantUserWorkspaceService() |
Modifier and Type | Method and Description |
---|---|
protected String |
computePathForUserWorkspace(CoreSession userCoreSession,
String userName,
DocumentModel currentDocument)
Overridden to compute the right user workspace path for an user which is not the current user in the
userCoreSession . |
protected String |
computePathForUserWorkspaceForTenant(CoreSession session,
String tenantId,
String userName) |
protected String |
computePathUserWorkspaceRoot(CoreSession userCoreSession,
String userName,
DocumentModel currentDocument) |
protected String |
computePathUserWorkspaceRootForTenant(CoreSession session,
String tenantId) |
protected String |
getTenantId(CoreSession userCoreSession,
String userName) |
doCreateUserWorkspace, doCreateUserWorkspacesRoot, getUserWorkspaceRootType, getUserWorkspaceType, setUserWorkspaceACL, setUserWorkspaceRootACL
buildUserWorkspaceTitle, computePathForUserWorkspaceCompat, createUserWorkspace, getComponent, getCurrentUserPersonalWorkspace, getCurrentUserPersonalWorkspace, getCurrentUserPersonalWorkspace, getDomainName, getExistingUserWorkspacePathRef, getUserPersonalWorkspace, getUserPersonalWorkspace, getUserWorkspaceNameForUser, notifyEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentUserPersonalWorkspace, getCurrentUserPersonalWorkspace, getUserPersonalWorkspace, getUserPersonalWorkspace
public MultiTenantUserWorkspaceService()
protected String getTenantId(CoreSession userCoreSession, String userName)
protected String computePathUserWorkspaceRoot(CoreSession userCoreSession, String userName, DocumentModel currentDocument)
computePathUserWorkspaceRoot
in class AbstractUserWorkspaceImpl
protected String computePathUserWorkspaceRootForTenant(CoreSession session, String tenantId)
protected String computePathForUserWorkspace(CoreSession userCoreSession, String userName, DocumentModel currentDocument)
userCoreSession
.computePathForUserWorkspace
in class AbstractUserWorkspaceImpl
protected String computePathForUserWorkspaceForTenant(CoreSession session, String tenantId, String userName)
Copyright © 2016 Nuxeo SA. All rights reserved.