Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.userworkspace.web.ejb
Class UserWorkspaceManagerActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.userworkspace.web.ejb.UserWorkspaceManagerActionsBean
All Implemented Interfaces:
java.io.Serializable, UserWorkspaceManagerActions

@Name(value="userWorkspaceManagerActions")
@Scope(value=SESSION)
@Install(precedence=10)
@Startup
public class UserWorkspaceManagerActionsBean
extends java.lang.Object
implements UserWorkspaceManagerActions

Personal user workspace manager actions bean.

Author:
btatar
See Also:
Serialized Form

Field Summary
static java.lang.String DOCUMENT_VIEW
           
 
Constructor Summary
UserWorkspaceManagerActionsBean()
           
 
Method Summary
 void destroy()
           
 DocumentModel getCurrentUserPersonalWorkspace()
          Gets the current user personal workspace.
 void initialize()
           
 boolean isInitialized()
           
 boolean isShowingPersonalWorkspace()
          Checks wether a personal document is selected.
 java.lang.String navigateToCurrentUserPersonalWorkspace()
          Navigates to the current user personal workspace.
 java.lang.String navigateToOverallWorkspace()
          Navigates to the overall workspace.
 void setInitialized(boolean initialized)
           
 void setShowingPersonalWorkspace(boolean showingPersonalWorkspace)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCUMENT_VIEW

public static final java.lang.String DOCUMENT_VIEW
See Also:
Constant Field Values
Constructor Detail

UserWorkspaceManagerActionsBean

public UserWorkspaceManagerActionsBean()
Method Detail

initialize

public void initialize()
Specified by:
initialize in interface UserWorkspaceManagerActions

destroy

@Destroy
public void destroy()
Specified by:
destroy in interface UserWorkspaceManagerActions

getCurrentUserPersonalWorkspace

public DocumentModel getCurrentUserPersonalWorkspace()
                                              throws ClientException
Description copied from interface: UserWorkspaceManagerActions
Gets the current user personal workspace.

Specified by:
getCurrentUserPersonalWorkspace in interface UserWorkspaceManagerActions
Returns:
the personal workspace
Throws:
ClientException

navigateToCurrentUserPersonalWorkspace

public java.lang.String navigateToCurrentUserPersonalWorkspace()
                                                        throws ClientException
Description copied from interface: UserWorkspaceManagerActions
Navigates to the current user personal workspace.

Specified by:
navigateToCurrentUserPersonalWorkspace in interface UserWorkspaceManagerActions
Returns:
Throws:
ClientException

navigateToOverallWorkspace

public java.lang.String navigateToOverallWorkspace()
                                            throws ClientException
Description copied from interface: UserWorkspaceManagerActions
Navigates to the overall workspace. Introduced for INA-221 (Rux).

Specified by:
navigateToOverallWorkspace in interface UserWorkspaceManagerActions
Returns:
Throws:
ClientException

isShowingPersonalWorkspace

@Factory(value="isInsidePersonalWorkspace",
         scope=EVENT)
public boolean isShowingPersonalWorkspace()
Description copied from interface: UserWorkspaceManagerActions
Checks wether a personal document is selected.

Specified by:
isShowingPersonalWorkspace in interface UserWorkspaceManagerActions
Returns:
true if it is a personal document

false otherwise


setShowingPersonalWorkspace

public void setShowingPersonalWorkspace(boolean showingPersonalWorkspace)

isInitialized

public boolean isInitialized()

setInitialized

public void setInitialized(boolean initialized)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.