org.apache.jetspeed.container.state.impl
Class SessionNavigationalState

java.lang.Object
  extended by org.apache.jetspeed.container.state.impl.AbstractNavigationalState
      extended by org.apache.jetspeed.container.state.impl.SessionNavigationalState
All Implemented Interfaces:
MutableNavigationalState, NavigationalState
Direct Known Subclasses:
HybridNavigationalState, SessionFullNavigationalState

public class SessionNavigationalState
extends AbstractNavigationalState

SessionNavigationalState, stores nav parameters in the session, not on URL

Added the ability to reset portlet mode and window states to VIEW and NORMAL in the case of page navigation. JS2-806

Version:
$Id: SessionNavigationalState.java 593807 2007-11-10 19:22:03Z taylor $
Author:
David Sean Taylor

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.jetspeed.container.state.impl.AbstractNavigationalState
cache, decorationCache
 
Fields inherited from interface org.apache.jetspeed.container.state.NavigationalState
NAVSTATE_SESSION_KEY
 
Constructor Summary
SessionNavigationalState(NavigationalStateCodec codec, JetspeedContentCache cache)
           
SessionNavigationalState(NavigationalStateCodec codec, JetspeedContentCache cache, JetspeedContentCache decorationCache)
           
 
Method Summary
 java.util.Map getCurrentPageWindowStates()
           
protected  boolean isClearPortletsModeAndWindowStateEnabled()
           
 boolean isNavigationalParameterStateFull()
           
 boolean isRenderParameterStateFull()
           
protected  void setClearPortletsModeAndWindowStateEnabled(boolean clearPortletsModeAndWindowStateEnabled)
           
 void sync(RequestContext context)
          Synchronize the Navigational State with saved state (if used).
 
Methods inherited from class org.apache.jetspeed.container.state.impl.AbstractNavigationalState
clearParameters, encode, encode, encode, getMappedMode, getMappedMode, getMappedState, getMappedState, getMaximizedWindow, getMode, getMode, getParameterNames, getParameterValues, getPortletWindowOfAction, getPortletWindowOfResource, getPortletWindowRequestNavigationalStates, getState, getState, getWindowIdIterator, init, removeState, setMode, setState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

SessionNavigationalState

public SessionNavigationalState(NavigationalStateCodec codec,
                                JetspeedContentCache cache)

SessionNavigationalState

public SessionNavigationalState(NavigationalStateCodec codec,
                                JetspeedContentCache cache,
                                JetspeedContentCache decorationCache)
Method Detail

sync

public void sync(RequestContext context)
Description copied from interface: NavigationalState
Synchronize the Navigational State with saved state (if used).
Should be called by the PortalURL impl right after calling #init(String)

Parameters:
context - The RequestContext for this Navigational State

getCurrentPageWindowStates

public java.util.Map getCurrentPageWindowStates()

isNavigationalParameterStateFull

public boolean isNavigationalParameterStateFull()
Returns:
true if WindowStates and PortletModes will be saved in the Session

isRenderParameterStateFull

public boolean isRenderParameterStateFull()
Returns:
true if render parameters will be saved in the Session

setClearPortletsModeAndWindowStateEnabled

protected void setClearPortletsModeAndWindowStateEnabled(boolean clearPortletsModeAndWindowStateEnabled)

isClearPortletsModeAndWindowStateEnabled

protected boolean isClearPortletsModeAndWindowStateEnabled()


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.