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

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

public abstract class AbstractNavigationalState
extends Object
implements org.apache.jetspeed.container.state.MutableNavigationalState

BaseNavigationalState

Version:
$Id: AbstractNavigationalState.java 554926 2007-07-10 13:12:26Z ate $
Author:
David Sean Taylor

Field Summary
protected  org.apache.jetspeed.cache.JetspeedContentCache cache
           
private  NavigationalStateCodec codec
           
protected  org.apache.jetspeed.cache.JetspeedContentCache decorationCache
           
private  PortletWindowRequestNavigationalStates requestStates
           
 
Fields inherited from interface org.apache.jetspeed.container.state.NavigationalState
NAVSTATE_SESSION_KEY
 
Constructor Summary
AbstractNavigationalState(NavigationalStateCodec codec, org.apache.jetspeed.cache.JetspeedContentCache cache)
           
AbstractNavigationalState(NavigationalStateCodec codec, org.apache.jetspeed.cache.JetspeedContentCache cache, org.apache.jetspeed.cache.JetspeedContentCache decorationCache)
           
 
Method Summary
 void clearParameters(org.apache.pluto.om.window.PortletWindow window)
           
 String encode()
           
 String encode(org.apache.pluto.om.window.PortletWindow window, Map parameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, boolean action)
           
 String encode(org.apache.pluto.om.window.PortletWindow window, javax.portlet.PortletMode mode, javax.portlet.WindowState state)
           
 javax.portlet.PortletMode getMappedMode(org.apache.pluto.om.window.PortletWindow window)
           
 javax.portlet.PortletMode getMappedMode(String windowId)
           
 javax.portlet.WindowState getMappedState(org.apache.pluto.om.window.PortletWindow window)
           
 javax.portlet.WindowState getMappedState(String windowId)
           
 org.apache.pluto.om.window.PortletWindow getMaximizedWindow()
           
 javax.portlet.PortletMode getMode(org.apache.pluto.om.window.PortletWindow window)
           
 javax.portlet.PortletMode getMode(String windowId)
          Deprecated.  
 Iterator getParameterNames(org.apache.pluto.om.window.PortletWindow window)
           
 String[] getParameterValues(org.apache.pluto.om.window.PortletWindow window, String parameterName)
           
 org.apache.pluto.om.window.PortletWindow getPortletWindowOfAction()
           
 org.apache.pluto.om.window.PortletWindow getPortletWindowOfResource()
           
protected  PortletWindowRequestNavigationalStates getPortletWindowRequestNavigationalStates()
           
 javax.portlet.WindowState getState(org.apache.pluto.om.window.PortletWindow window)
           
 javax.portlet.WindowState getState(String windowId)
          Deprecated.  
 Iterator getWindowIdIterator()
           
 void init(String encodedState, String characterEncoding)
           
 void removeState(org.apache.pluto.om.window.PortletWindow window)
           
 void setMode(org.apache.pluto.om.window.PortletWindow window, javax.portlet.PortletMode portletMode)
           
 void setState(org.apache.pluto.om.window.PortletWindow window, javax.portlet.WindowState windowState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.container.state.NavigationalState
isNavigationalParameterStateFull, isRenderParameterStateFull, sync
 

Field Detail

codec

private NavigationalStateCodec codec

requestStates

private PortletWindowRequestNavigationalStates requestStates

cache

protected org.apache.jetspeed.cache.JetspeedContentCache cache

decorationCache

protected org.apache.jetspeed.cache.JetspeedContentCache decorationCache
Constructor Detail

AbstractNavigationalState

public AbstractNavigationalState(NavigationalStateCodec codec,
                                 org.apache.jetspeed.cache.JetspeedContentCache cache)

AbstractNavigationalState

public AbstractNavigationalState(NavigationalStateCodec codec,
                                 org.apache.jetspeed.cache.JetspeedContentCache cache,
                                 org.apache.jetspeed.cache.JetspeedContentCache decorationCache)
Method Detail

init

public void init(String encodedState,
                 String characterEncoding)
          throws UnsupportedEncodingException
Specified by:
init in interface org.apache.jetspeed.container.state.NavigationalState
Throws:
UnsupportedEncodingException

getPortletWindowRequestNavigationalStates

protected PortletWindowRequestNavigationalStates getPortletWindowRequestNavigationalStates()

setState

public void setState(org.apache.pluto.om.window.PortletWindow window,
                     javax.portlet.WindowState windowState)
Specified by:
setState in interface org.apache.jetspeed.container.state.MutableNavigationalState

setMode

public void setMode(org.apache.pluto.om.window.PortletWindow window,
                    javax.portlet.PortletMode portletMode)
Specified by:
setMode in interface org.apache.jetspeed.container.state.MutableNavigationalState

getMappedState

public javax.portlet.WindowState getMappedState(String windowId)
Specified by:
getMappedState in interface org.apache.jetspeed.container.state.NavigationalState

getState

public javax.portlet.WindowState getState(String windowId)
Deprecated. 

Specified by:
getState in interface org.apache.jetspeed.container.state.NavigationalState

getState

public javax.portlet.WindowState getState(org.apache.pluto.om.window.PortletWindow window)
Specified by:
getState in interface org.apache.jetspeed.container.state.NavigationalState

getMappedState

public javax.portlet.WindowState getMappedState(org.apache.pluto.om.window.PortletWindow window)
Specified by:
getMappedState in interface org.apache.jetspeed.container.state.NavigationalState

getMappedMode

public javax.portlet.PortletMode getMappedMode(String windowId)
Specified by:
getMappedMode in interface org.apache.jetspeed.container.state.NavigationalState

getMode

public javax.portlet.PortletMode getMode(String windowId)
Deprecated. 

Specified by:
getMode in interface org.apache.jetspeed.container.state.NavigationalState

getMode

public javax.portlet.PortletMode getMode(org.apache.pluto.om.window.PortletWindow window)
Specified by:
getMode in interface org.apache.jetspeed.container.state.NavigationalState

getMappedMode

public javax.portlet.PortletMode getMappedMode(org.apache.pluto.om.window.PortletWindow window)
Specified by:
getMappedMode in interface org.apache.jetspeed.container.state.NavigationalState

getMaximizedWindow

public org.apache.pluto.om.window.PortletWindow getMaximizedWindow()
Specified by:
getMaximizedWindow in interface org.apache.jetspeed.container.state.NavigationalState

getParameterNames

public Iterator getParameterNames(org.apache.pluto.om.window.PortletWindow window)
Specified by:
getParameterNames in interface org.apache.jetspeed.container.state.NavigationalState

getParameterValues

public String[] getParameterValues(org.apache.pluto.om.window.PortletWindow window,
                                   String parameterName)
Specified by:
getParameterValues in interface org.apache.jetspeed.container.state.NavigationalState

getPortletWindowOfAction

public org.apache.pluto.om.window.PortletWindow getPortletWindowOfAction()
Specified by:
getPortletWindowOfAction in interface org.apache.jetspeed.container.state.NavigationalState

getPortletWindowOfResource

public org.apache.pluto.om.window.PortletWindow getPortletWindowOfResource()
Specified by:
getPortletWindowOfResource in interface org.apache.jetspeed.container.state.NavigationalState

encode

public String encode(org.apache.pluto.om.window.PortletWindow window,
                     Map parameters,
                     javax.portlet.PortletMode mode,
                     javax.portlet.WindowState state,
                     boolean action)
              throws UnsupportedEncodingException
Specified by:
encode in interface org.apache.jetspeed.container.state.NavigationalState
Throws:
UnsupportedEncodingException

encode

public String encode(org.apache.pluto.om.window.PortletWindow window,
                     javax.portlet.PortletMode mode,
                     javax.portlet.WindowState state)
              throws UnsupportedEncodingException
Specified by:
encode in interface org.apache.jetspeed.container.state.NavigationalState
Throws:
UnsupportedEncodingException

encode

public String encode()
              throws UnsupportedEncodingException
Specified by:
encode in interface org.apache.jetspeed.container.state.NavigationalState
Throws:
UnsupportedEncodingException

getWindowIdIterator

public Iterator getWindowIdIterator()
Specified by:
getWindowIdIterator in interface org.apache.jetspeed.container.state.NavigationalState

clearParameters

public void clearParameters(org.apache.pluto.om.window.PortletWindow window)
Specified by:
clearParameters in interface org.apache.jetspeed.container.state.MutableNavigationalState

removeState

public void removeState(org.apache.pluto.om.window.PortletWindow window)
Specified by:
removeState in interface org.apache.jetspeed.container.state.MutableNavigationalState


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