Interface UserWorkspaceService
- All Superinterfaces:
 Serializable
- All Known Implementing Classes:
 AbstractUserWorkspaceImpl,DefaultUserWorkspaceServiceImpl,MultiTenantUserWorkspaceService
User workspace service class that is used to get the document model for the personal workspace of the current user.
- Author:
 - btatar
 
- 
Method Summary
Modifier and TypeMethodDescriptiongetCurrentUserPersonalWorkspace(String userName, DocumentModel currentDocument) Gets the current user personal workspace from a lower level.getCurrentUserPersonalWorkspace(CoreSession userCoreSession) Gets the current user personal workspace.getUserPersonalWorkspace(String userName, DocumentModel context) Gets a detached user workspace of a specified user.getUserPersonalWorkspace(NuxeoPrincipal principal, DocumentModel context) Gets a detached user workspace of a specified user depending of the passed principal.voidInvalidates the user workspace service and force re-computation of user workspace root location.booleanisUnderUserWorkspace(NuxeoPrincipal principal, String username, DocumentModel doc) Checks whether the passed document is under the user's workspace (or is the workspace itself). 
- 
Method Details
- 
getCurrentUserPersonalWorkspace
Gets the current user personal workspace.If this personal workspace does not exist then a new one will be created for the user owning the core session.
- Parameters:
 userCoreSession- the user core session- Returns:
 - the user personal workspace
 - Since:
 - 9.3
 
 - 
getCurrentUserPersonalWorkspace
Gets the current user personal workspace from a lower level.If this personal workspace does not exist then a new one will be created for the user who is represented by first argument.
- Parameters:
 userName- the current usercurrentDocument- the current document on which the user was on- Returns:
 - the DocumentModel for the personal workspace of the current user
 
 - 
getUserPersonalWorkspace
Gets a detached user workspace of a specified user.- Parameters:
 userName- is the username of the wanted user's workspace ownercontext- is a document to determine the domain- Returns:
 - the DocumentModel for the personal workspace
 - Since:
 - 5.5
 
 - 
getUserPersonalWorkspace
Gets a detached user workspace of a specified user depending of the passed principal.- Parameters:
 principal- of the wanted user's workspace ownercontext- is a document to determine the domain- Returns:
 - the DocumentModel for the personal workspace
 - Since:
 - 5.7
 
 - 
isUnderUserWorkspace
Checks whether the passed document is under the user's workspace (or is the workspace itself).- Parameters:
 principal- the userusername- the username, if principal is not availabledoc- the document- Returns:
 trueif the document is under the user's workspace- Since:
 - 9.2
 
 - 
invalidate
void invalidate()Invalidates the user workspace service and force re-computation of user workspace root location.- Since:
 - 9.3
 
 
 -