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

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

public class HybridNavigationalState
extends SessionNavigationalState

HybridNavigationalState Only encodes render parameters that start with a given prefix

Version:
$Id: AbstractNavigationalState.java 333093 2005-11-13 18:42:42Z taylor $
Author:
David Sean Taylor

Field Summary
protected  java.lang.String prefix
           
 
Fields inherited from class org.apache.jetspeed.container.state.impl.SessionNavigationalState
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
HybridNavigationalState(NavigationalStateCodec codec, java.lang.String prefix, JetspeedContentCache cache)
           
 
Method Summary
 java.lang.String encode(org.apache.pluto.om.window.PortletWindow window, java.util.Map parameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, boolean action)
          Encodes the Navigational State with overrides for a specific PortletWindow into a string to be embedded within a PortalURL.
 boolean isNavigationalParameterStateFull()
           
 boolean isRenderParameterStateFull()
           
 
Methods inherited from class org.apache.jetspeed.container.state.impl.SessionNavigationalState
getCurrentPageWindowStates, isClearPortletsModeAndWindowStateEnabled, setClearPortletsModeAndWindowStateEnabled, sync
 
Methods inherited from class org.apache.jetspeed.container.state.impl.AbstractNavigationalState
clearParameters, 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

prefix

protected java.lang.String prefix
Constructor Detail

HybridNavigationalState

public HybridNavigationalState(NavigationalStateCodec codec,
                               java.lang.String prefix,
                               JetspeedContentCache cache)
Method Detail

encode

public java.lang.String encode(org.apache.pluto.om.window.PortletWindow window,
                               java.util.Map parameters,
                               javax.portlet.PortletMode mode,
                               javax.portlet.WindowState state,
                               boolean action)
                        throws java.io.UnsupportedEncodingException
Description copied from interface: NavigationalState
Encodes the Navigational State with overrides for a specific PortletWindow into a string to be embedded within a PortalURL.

Specified by:
encode in interface NavigationalState
Overrides:
encode in class AbstractNavigationalState
Parameters:
window - the PortalWindow
parameters - the new request or action parameters for the PortalWindow
mode - the new PortletMode for the PortalWindow
state - the new WindowState for the PortalWindow
action - indicates if to be used in an actionURL or renderURL
Returns:
encoded new Navigational State
Throws:
java.io.UnsupportedEncodingException

isNavigationalParameterStateFull

public boolean isNavigationalParameterStateFull()
Specified by:
isNavigationalParameterStateFull in interface NavigationalState
Overrides:
isNavigationalParameterStateFull in class SessionNavigationalState
Returns:
true if WindowStates and PortletModes will be saved in the Session

isRenderParameterStateFull

public boolean isRenderParameterStateFull()
Specified by:
isRenderParameterStateFull in interface NavigationalState
Overrides:
isRenderParameterStateFull in class SessionNavigationalState
Returns:
true if render parameters will be saved in the Session


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