Nuxeo Enterprise Platform 5.4

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:
java.io.Serializable, UserWorkspaceService
Direct Known Subclasses:
CompatUserWorkspaceServiceImpl

public class DefaultUserWorkspaceServiceImpl
extends java.lang.Object
implements UserWorkspaceService

Default implementation of the UserWorkspaceService

Author:
tiry
See Also:
Serialized Form

Constructor Summary
DefaultUserWorkspaceServiceImpl()
           
 
Method Summary
 DocumentModel getCurrentUserPersonalWorkspace(CoreSession userCoreSession, DocumentModel context)
           
 DocumentModel getCurrentUserPersonalWorkspace(java.lang.String userName, DocumentModel currentDocument)
          Gets the current user personal workspace from a lower level.
 
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(java.lang.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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.