@Name(value="userWorkspaceManagerActions") @Scope(value=SESSION) @Install(precedence=10) @Startup public class UserWorkspaceManagerActionsBean extends Object implements UserWorkspaceManagerActions
| Modifier and Type | Field and Description |
|---|---|
protected NuxeoPrincipal |
currentUser |
protected DashboardNavigationHelper |
dashboardNavigationHelper |
static String |
DOCUMENT_MANAGEMENT_ACTION |
protected static String |
DOCUMENT_MANAGEMENT_TAB |
static String |
DOCUMENT_VIEW |
protected CoreSession |
documentManager |
protected boolean |
initialized |
protected DocumentModel |
lastAccessedDocument |
protected MainTabsActions |
mainTabsActions |
protected NavigationContext |
navigationContext |
protected boolean |
showingPersonalWorkspace |
protected UserWorkspaceService |
userWorkspaceService |
protected WebActions |
webActions |
| Constructor and Description |
|---|
UserWorkspaceManagerActionsBean() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final String DOCUMENT_VIEW
public static final String DOCUMENT_MANAGEMENT_ACTION
protected static final String DOCUMENT_MANAGEMENT_TAB
protected boolean showingPersonalWorkspace
protected boolean initialized
protected DocumentModel lastAccessedDocument
protected transient UserWorkspaceService userWorkspaceService
@In(required=true) protected transient NavigationContext navigationContext
@In(create=true) protected transient NuxeoPrincipal currentUser
@In(required=false,
create=true)
protected transient CoreSession documentManager
@In(create=true) protected transient DashboardNavigationHelper dashboardNavigationHelper
@In(create=true) protected transient MainTabsActions mainTabsActions
@In(create=true) protected transient WebActions webActions
public UserWorkspaceManagerActionsBean()
public void initialize()
@Destroy public void destroy()
public DocumentModel getCurrentUserPersonalWorkspace()
UserWorkspaceManagerActionsgetCurrentUserPersonalWorkspace in interface UserWorkspaceManagerActionspublic String navigateToCurrentUserPersonalWorkspace()
UserWorkspaceManagerActionsnavigateToCurrentUserPersonalWorkspace in interface UserWorkspaceManagerActionspublic String navigateToOverallWorkspace()
UserWorkspaceManagerActionsnavigateToOverallWorkspace in interface UserWorkspaceManagerActions@Factory(value="isInsidePersonalWorkspace",
scope=EVENT)
public boolean isShowingPersonalWorkspace()
UserWorkspaceManagerActionsisShowingPersonalWorkspace in interface UserWorkspaceManagerActionspublic void setShowingPersonalWorkspace(boolean showingPersonalWorkspace)
public boolean isInitialized()
public void setInitialized(boolean initialized)
Copyright © 2019 Nuxeo. All rights reserved.