Package org.exoplatform.portal.mop.page
Class PageContext
java.lang.Object
org.exoplatform.portal.mop.page.PageContext
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Returns the navigation key.getState()Returns the navigation state.voidUpdates the page state the behavior is not the same wether or not the page is persistent: When the page is persistent, any state is allowed: A non null state overrides the current persistent state. The null state means to reset the state to the persistent state. When the page is transient, only a non null state is allowed as it will be used for creation purpose.void
-
Constructor Details
-
PageContext
-
-
Method Details
-
getKey
Returns the navigation key.- Returns:
- the navigation key
-
getState
Returns the navigation state.- Returns:
- the navigation state
-
setState
Updates the page state the behavior is not the same wether or not the page is persistent: When the page is persistent, any state is allowed:- A non null state overrides the current persistent state.
- The null state means to reset the state to the persistent state.
- When the page is transient, only a non null state is allowed as it will be used for creation purpose.
- Parameters:
state- the new state- Throws:
IllegalStateException- when the state is cleared and the navigation is not persistent
-
update
- Throws:
NullPointerException
-