当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
NavigationalStateContext - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.server.navigation
Class NavigationalStateContext
java.lang.Object
org.jboss.portal.server.navigation.NavigationalStateContext
- All Implemented Interfaces:
- java.io.Serializable
- public class NavigationalStateContext
- extends java.lang.Object
- implements java.io.Serializable
The per request nagivational state context.
- See Also:
- Serialized Form
Field Summary |
protected java.util.Map |
states
. |
Method Summary |
java.lang.Object |
getNavigationalState(java.lang.String id)
Provide the navigational state for an id. |
void |
setNavigationalState(java.lang.String id,
java.lang.Object state)
Store a navigational state in the context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
states
protected java.util.Map states
- .
NavigationalStateContext
public NavigationalStateContext()
getNavigationalState
public java.lang.Object getNavigationalState(java.lang.String id)
throws java.lang.IllegalArgumentException
- Provide the navigational state for an id.
- Parameters:
id
- the id of the object we want the state
- Returns:
- the corresponding navigational state
- Throws:
java.lang.IllegalArgumentException
- if the id is null
setNavigationalState
public void setNavigationalState(java.lang.String id,
java.lang.Object state)
throws java.lang.IllegalArgumentException
- Store a navigational state in the context.
- Parameters:
id
- the idstate
- the new state or null if the state must be removed
- Throws:
java.lang.IllegalArgumentException
- if the id is null