public interface UserWorkspaceService extends Serializable
Modifier and Type | Method and Description |
---|---|
DocumentModel |
getCurrentUserPersonalWorkspace(CoreSession userCoreSession,
DocumentModel context) |
DocumentModel |
getCurrentUserPersonalWorkspace(String userName,
DocumentModel currentDocument)
Gets the current user personal workspace from a lower level.
|
DocumentModel |
getUserPersonalWorkspace(NuxeoPrincipal principal,
DocumentModel context)
Gets a detached user workspace of a specified user depending of the passed principal.
|
DocumentModel |
getUserPersonalWorkspace(String userName,
DocumentModel context)
Gets a detached user workspace of a specified user.
|
DocumentModel getCurrentUserPersonalWorkspace(String userName, DocumentModel currentDocument)
If this personal workspace does not exist then a new one will be created for the user who is represented by first argument.
userName
- the current usercurrentDocument
- the current document on which the user was onDocumentModel getCurrentUserPersonalWorkspace(CoreSession userCoreSession, DocumentModel context)
DocumentModel getUserPersonalWorkspace(String userName, DocumentModel context)
userName
- is the username of the wanted user's workspace ownercontext
- is a document to determine the domainDocumentModel getUserPersonalWorkspace(NuxeoPrincipal principal, DocumentModel context)
principal
- of the wanted user's workspace ownercontext
- is a document to determine the domainCopyright © 2015 Nuxeo SA. All rights reserved.