public class NavigationManager extends HandlerFactoryElement implements LogoutSurvivor
HandlerFactoryElement.HandlerTrace
Modifier and Type | Field and Description |
---|---|
static String |
CURRENT_PAGE_ATTR |
static String |
CURRENT_WORKSPACE_ATTR |
static String |
PAGE_ID |
static String |
WORKSPACE_ID |
Constructor and Description |
---|
NavigationManager() |
Modifier and Type | Method and Description |
---|---|
void |
actionCancelConfig(CommandRequest request)
Cancels config mode
|
void |
actionConfig(CommandRequest request)
Go to config page
|
void |
actionNavigateToPage(CommandRequest request) |
void |
actionNavigateToWorkspace(CommandRequest request) |
protected void |
clearRequestCache() |
Section |
doGetCurrentSection() |
WorkspaceImpl |
doGetCurrentWorkspace() |
void |
freezeNavigationStatus()
Performance improvement that fixes current navigation status, ensuring it won't change
until the end of the request.
|
protected Section |
getCurrentPageFromCache() |
String |
getCurrentScreen() |
Section |
getCurrentSection()
Get the current page, repositioning the navigation in case it is not correct.
|
Long |
getCurrentSectionId() |
WorkspaceImpl |
getCurrentWorkspace()
Get the current workspace, repositioning the navigation in case it is not correct.
|
protected WorkspaceImpl |
getCurrentWorkspaceFromCache() |
String |
getCurrentWorkspaceId() |
protected List |
getSortedWorkspacesList() |
UserStatus |
getUserStatus() |
boolean |
isAdminBarVisible() |
boolean |
isLocationReadable(NavigationPoint navigationPoint)
Determine if it is possible to navigate to given point for current user.
|
boolean |
isLocationReadable(String url)
Determine if it is possible to navigate to given url for current user.
|
boolean |
isShowingConfig() |
boolean |
isUserRequiresLoginBackdoor() |
protected boolean |
isValidUbication() |
static NavigationManager |
lookup()
Retrieves the NavigationManager instance for the current session
|
protected void |
pageLeft(Section oldSection) |
protected void |
reposition()
Calculate new ubication
|
protected void |
repositionSection() |
void |
setCurrentScreen(String currentScreen) |
void |
setCurrentSection(Section section) |
protected void |
setCurrentSectionId(Long id) |
void |
setCurrentWorkspace(WorkspaceImpl workspace) |
protected void |
setCurrentWorkspaceId(String workspaceId) |
void |
setShowingConfig(boolean showingConfig) |
void |
setUserRequiresLoginBackdoor(boolean userRequiresLoginBackdoor) |
void |
start() |
boolean |
userIsAdminInCurrentWorkspace() |
actionVoid, addFieldError, afterInvokeAction, beforeInvokeAction, calculateActionShortcuts, clearFieldErrors, getActionForShortcut, getActionName, getFieldErrors, handle, hasError, isEnabledForActionHandling, isEnableDoubleClickControl, isScopeAdequateForDoubleClickControl, isUseActionShortcuts, setEnabledForActionHandling, setEnableDoubleClickControl, setUseActionShortcuts
addPeriodicTask, addPeriodicTask, factoryLookup, getComponentAlias, getComponentDescription, getComponentName, getComponentScope, init, setComponentAlias, shutdown, stop
public static final String WORKSPACE_ID
public static final String PAGE_ID
public static final String CURRENT_WORKSPACE_ATTR
public static final String CURRENT_PAGE_ATTR
public static NavigationManager lookup()
public boolean isUserRequiresLoginBackdoor()
public void setUserRequiresLoginBackdoor(boolean userRequiresLoginBackdoor)
public String getCurrentScreen()
public void setCurrentScreen(String currentScreen)
public void start() throws Exception
start
in interface org.jboss.dashboard.factory.FactoryLifecycle
start
in class HandlerFactoryElement
Exception
public boolean isShowingConfig()
public void setShowingConfig(boolean showingConfig)
public UserStatus getUserStatus()
public String getCurrentWorkspaceId()
public Long getCurrentSectionId()
protected void setCurrentSectionId(Long id)
public void setCurrentWorkspace(WorkspaceImpl workspace)
protected void setCurrentWorkspaceId(String workspaceId)
public boolean userIsAdminInCurrentWorkspace()
public boolean isAdminBarVisible()
public void setCurrentSection(Section section)
protected void pageLeft(Section oldSection)
protected void clearRequestCache()
protected WorkspaceImpl getCurrentWorkspaceFromCache()
protected Section getCurrentPageFromCache()
public void freezeNavigationStatus()
public WorkspaceImpl getCurrentWorkspace()
public Section getCurrentSection()
public WorkspaceImpl doGetCurrentWorkspace()
public Section doGetCurrentSection()
protected boolean isValidUbication()
protected void reposition()
protected void repositionSection()
public void actionCancelConfig(CommandRequest request) throws Exception
Exception
public void actionNavigateToWorkspace(CommandRequest request) throws Exception
Exception
public void actionNavigateToPage(CommandRequest request) throws Exception
Exception
public void actionConfig(CommandRequest request) throws Exception
Exception
public boolean isLocationReadable(String url)
url
- Url to gopublic boolean isLocationReadable(NavigationPoint navigationPoint) throws Exception
navigationPoint
- point to goException
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.