public abstract class AbstractUserWorkspaceImpl extends Object implements UserWorkspaceService
UnrestrictedSessionRunner
while creating UserWorkspaces
and associated resourcesConstructor and Description |
---|
AbstractUserWorkspaceImpl() |
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.
|
public DocumentModel getCurrentUserPersonalWorkspace(String userName, DocumentModel currentDocument) throws ClientException
UserWorkspaceService
If this personal workspace does not exist then a new one will be created for the user who is represented by first argument.
getCurrentUserPersonalWorkspace
in interface UserWorkspaceService
userName
- the current usercurrentDocument
- the current document on which the user was onClientException
public DocumentModel getCurrentUserPersonalWorkspace(CoreSession userCoreSession, DocumentModel context) throws ClientException
getCurrentUserPersonalWorkspace
in interface UserWorkspaceService
ClientException
public DocumentModel getUserPersonalWorkspace(NuxeoPrincipal principal, DocumentModel context) throws ClientException
UserWorkspaceService
getUserPersonalWorkspace
in interface UserWorkspaceService
principal
- of the wanted user's workspace ownercontext
- is a document to determine the domainClientException
public DocumentModel getUserPersonalWorkspace(String userName, DocumentModel context) throws ClientException
UserWorkspaceService
getUserPersonalWorkspace
in interface UserWorkspaceService
userName
- is the username of the wanted user's workspace ownercontext
- is a document to determine the domainClientException
Copyright © 2015 Nuxeo SA. All rights reserved.