站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

NavigationalStateContext - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.server.navigation
Class NavigationalStateContext

java.lang.Object
  extended byorg.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
          .
 
Constructor Summary
NavigationalStateContext()
           
 
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
 

Field Detail

states

protected java.util.Map states
.

Constructor Detail

NavigationalStateContext

public NavigationalStateContext()
Method Detail

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 id
state - the new state or null if the state must be removed
Throws:
java.lang.IllegalArgumentException - if the id is null