public class XdevAuthorizationNavigator extends XdevAuthenticationNavigator
Navigator.ClassBasedViewProvider, Navigator.ComponentContainerViewDisplay, Navigator.EmptyView, Navigator.SingleComponentContainerViewDisplay, Navigator.StaticViewProvider, Navigator.UriFragmentManager
Constructor and Description |
---|
XdevAuthorizationNavigator(UI ui,
ComponentContainer container)
Creates a navigator that is tracking the active view using URI fragments
of the
Page containing the given UI and replacing the contents of
a ComponentContainer with the active view. |
XdevAuthorizationNavigator(UI ui,
NavigationStateManager stateManager,
ViewDisplay display)
Creates a navigator.
|
XdevAuthorizationNavigator(UI ui,
SingleComponentContainer container)
Creates a navigator that is tracking the active view using URI fragments
of the
Page containing the given UI and replacing the contents of
a SingleComponentContainer with the active view. |
XdevAuthorizationNavigator(UI ui,
ViewDisplay display)
Creates a navigator that is tracking the active view using URI fragments
of the
Page containing the given UI. |
Modifier and Type | Method and Description |
---|---|
String |
getPermissionDeniedViewName() |
Resource[] |
getResources(String viewName) |
void |
navigateTo(String navigationState) |
void |
navigateToPermissionDeniedView()
Navigates to the permission denied view URL set with
setPermissionDeniedViewName(String) . |
void |
setPermissionDeniedViewName(String permissionDeniedViewName) |
void |
setResources(String viewName,
Resource... resources) |
getLoginViewName, getRedirectViewName, navigateToLoginView, navigateToRedirectView, setLoginViewName, setRedirectViewName
addProvider, addView, addView, addViewChangeListener, destroy, getCurrentView, getDisplay, getState, getUI, removeProvider, removeView, removeViewChangeListener, setErrorProvider, setErrorView, setErrorView
public XdevAuthorizationNavigator(UI ui, ComponentContainer container)
Page
containing the given UI and replacing the contents of
a ComponentContainer
with the active view.
All components of the container are removed each time before adding the
active View
. Views must implement Component
when using
this constructor.
Navigation is automatically initiated after UI.init()
 if a
navigator was created. If at a later point changes are made to the
navigator, navigator.navigateTo(navigator.getState())
may need to
be explicitly called to ensure the current view matches the navigation
state.
ui
- The UI to which this Navigator is attached.container
- The ComponentContainer whose contents should be replaced with
the active view on view changepublic XdevAuthorizationNavigator(UI ui, NavigationStateManager stateManager, ViewDisplay display)
When a custom navigation state manager is not needed, use one of the other constructors which use a URI fragment based state manager.
Navigation is automatically initiated after UI.init()
 if a
navigator was created. If at a later point changes are made to the
navigator, navigator.navigateTo(navigator.getState())
may need to
be explicitly called to ensure the current view matches the navigation
state.
ui
- The UI to which this Navigator is attached.stateManager
- The NavigationStateManager keeping track of the active view
and enabling bookmarking and direct navigationdisplay
- The ViewDisplay used to display the views handled by this
navigatorpublic XdevAuthorizationNavigator(UI ui, SingleComponentContainer container)
Page
containing the given UI and replacing the contents of
a SingleComponentContainer
with the active view.
Views must implement Component
when using this constructor.
Navigation is automatically initiated after UI.init()
 if a
navigator was created. If at a later point changes are made to the
navigator, navigator.navigateTo(navigator.getState())
may need to
be explicitly called to ensure the current view matches the navigation
state.
ui
- The UI to which this Navigator is attached.container
- The SingleComponentContainer whose contents should be replaced
with the active view on view changepublic XdevAuthorizationNavigator(UI ui, ViewDisplay display)
Page
containing the given UI.
Navigation is automatically initiated after UI.init()
 if a
navigator was created. If at a later point changes are made to the
navigator, navigator.navigateTo(navigator.getState())
may need to
be explicitly called to ensure the current view matches the navigation
state.
ui
- The UI to which this Navigator is attached.display
- The ViewDisplay used to display the views.public String getPermissionDeniedViewName()
public void setPermissionDeniedViewName(String permissionDeniedViewName)
permissionDeniedViewName
- the permissionDeniedViewName to setpublic void navigateTo(String navigationState)
XdevNavigator
navigateTo
in class XdevNavigator
public void navigateToPermissionDeniedView()
setPermissionDeniedViewName(String)
.IllegalStateException
- if no permission denied view is set