Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.userworkspace.api
Interface UserWorkspaceService

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
CompatUserWorkspaceServiceImpl, DefaultUserWorkspaceServiceImpl, UserWorkspaceManagerBean

public interface UserWorkspaceService
extends java.io.Serializable

User workspace service class that is used to get the document model for the personal workspace of the current user.

Author:
btatar

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.
 

Method Detail

getCurrentUserPersonalWorkspace

DocumentModel getCurrentUserPersonalWorkspace(java.lang.String userName,
                                              DocumentModel currentDocument)
                                              throws ClientException
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.

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

DocumentModel getCurrentUserPersonalWorkspace(CoreSession userCoreSession,
                                              DocumentModel context)
                                              throws ClientException
Throws:
ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.