org.nuxeo.ecm.platform.userworkspace.core.service
Class DefaultUserWorkspaceServiceImpl
java.lang.Object
org.nuxeo.ecm.platform.userworkspace.core.service.DefaultUserWorkspaceServiceImpl
- All Implemented Interfaces:
- Serializable, UserWorkspaceService
- Direct Known Subclasses:
- CompatUserWorkspaceServiceImpl
public class DefaultUserWorkspaceServiceImpl
- extends Object
- implements UserWorkspaceService
Default implementation of the UserWorkspaceService
.
- Author:
- tiry
- See Also:
- Serialized Form
DefaultUserWorkspaceServiceImpl
public DefaultUserWorkspaceServiceImpl()
getCurrentUserPersonalWorkspace
public DocumentModel getCurrentUserPersonalWorkspace(String userName,
DocumentModel currentDocument)
throws ClientException
- Description copied from interface:
UserWorkspaceService
- 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.
- Specified by:
getCurrentUserPersonalWorkspace
in interface UserWorkspaceService
- 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
- Throws:
ClientException
getCurrentUserPersonalWorkspace
public DocumentModel getCurrentUserPersonalWorkspace(CoreSession userCoreSession,
DocumentModel context)
throws ClientException
- Specified by:
getCurrentUserPersonalWorkspace
in interface UserWorkspaceService
- Throws:
ClientException
getUserPersonalWorkspace
public DocumentModel getUserPersonalWorkspace(String userName,
DocumentModel context)
throws ClientException
- Description copied from interface:
UserWorkspaceService
- Gets a detached user workspace of a specified user.
- Specified by:
getUserPersonalWorkspace
in interface UserWorkspaceService
- 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
- Throws:
ClientException
buildUserWorkspaceTitle
public static String buildUserWorkspaceTitle(String userName)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.