Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.userworkspace.core.service
Class DefaultUserWorkspaceServiceImpl

java.lang.Object
  extended by 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

Constructor Summary
DefaultUserWorkspaceServiceImpl()
           
 
Method Summary
static String buildUserWorkspaceTitle(String userName)
           
 DocumentModel getCurrentUserPersonalWorkspace(CoreSession userCoreSession, DocumentModel context)
           
 DocumentModel getCurrentUserPersonalWorkspace(String userName, DocumentModel currentDocument)
          Gets the current user personal workspace from a lower level.
 DocumentModel getUserPersonalWorkspace(String userName, DocumentModel context)
          Gets a detached user workspace of a specified user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserWorkspaceServiceImpl

public DefaultUserWorkspaceServiceImpl()
Method Detail

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 user
currentDocument - 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 owner
context - is a document to determine the domain
Returns:
the DocumentModel for the personal workspace
Throws:
ClientException

buildUserWorkspaceTitle

public static String buildUserWorkspaceTitle(String userName)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.