Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.userworkspace.ejb
Class UserWorkspaceManagerBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.userworkspace.ejb.UserWorkspaceManagerBean
All Implemented Interfaces:
java.io.Serializable, UserWorkspaceService

public class UserWorkspaceManagerBean
extends java.lang.Object
implements UserWorkspaceService

Author:
btatar
See Also:
Serialized Form

Constructor Summary
UserWorkspaceManagerBean()
           
 
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.
 void initialize()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserWorkspaceManagerBean

public UserWorkspaceManagerBean()
Method Detail

initialize

@PostConstruct
public void initialize()

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.