Nuxeo ECM Projects 5.4.3-SNAPSHOT

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:
Serializable, UserWorkspaceManagerActions

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

Personal user workspace manager actions bean.

Author:
btatar
See Also:
Serialized Form

Field Summary
static String DOCUMENT_MANAGEMENT_ACTION
           
static 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.
 String navigateToCurrentUserPersonalWorkspace()
          Navigates to the current user personal workspace.
 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 String DOCUMENT_VIEW
See Also:
Constant Field Values

DOCUMENT_MANAGEMENT_ACTION

public static final String DOCUMENT_MANAGEMENT_ACTION
See Also:
Constant Field Values
Constructor Detail

UserWorkspaceManagerActionsBean

public UserWorkspaceManagerActionsBean()
Method Detail

initialize

public void initialize()

destroy

@Destroy
public void destroy()

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 String navigateToCurrentUserPersonalWorkspace()
                                              throws ClientException
Description copied from interface: UserWorkspaceManagerActions
Navigates to the current user personal workspace.

Specified by:
navigateToCurrentUserPersonalWorkspace in interface UserWorkspaceManagerActions
Throws:
ClientException

navigateToOverallWorkspace

public 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
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 ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.