|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
NavigationalState gives readonly access to the state of the Portal URL and all navigational state context
as well as encoding a new State for usage in a Portal URL.
Note: Support for changing the PortletMode and/or WindowState of a PortletWindow, other than for encoding a new State
is moved down to the MutableNavigationState interface to cleanly define the immutable contract of this
interface.
| Field Summary | |
static String |
NAVSTATE_SESSION_KEY
|
| Method Summary | |
String |
encode(org.apache.pluto.om.window.PortletWindow window,
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. |
String |
encode(org.apache.pluto.om.window.PortletWindow window,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state)
Encodes the Navigational State with overrides for a specific PortletWindow while retaining its (request) parameters into a string to be embedded within a renderURL. |
org.apache.pluto.om.window.PortletWindow |
getMaximizedWindow()
For the current request return the (first) maximized window or return null if no windows are maximized. |
javax.portlet.PortletMode |
getMode(org.apache.pluto.om.window.PortletWindow window)
Gets the portlet mode for the given portlet window. |
javax.portlet.PortletMode |
getMode(String windowId)
Gets the portlet mode for the given portlet window id. |
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()
|
javax.portlet.WindowState |
getState(org.apache.pluto.om.window.PortletWindow window)
Gets the window state for given portlet window. |
javax.portlet.WindowState |
getState(String windowId)
Gets the window state for given portlet window id. |
Iterator |
getWindowIdIterator()
Returns an iterator of Portlet Window ids of all the Portlet Windows within the NavigationalState. |
void |
init(String encodedState,
String characterEncoding)
|
boolean |
isNavigationalParameterStateFull()
|
boolean |
isRenderParameterStateFull()
|
void |
sync(RequestContext context)
Synchronize the Navigational State with saved state (if used). |
| Field Detail |
public static final String NAVSTATE_SESSION_KEY
| Method Detail |
public void init(String encodedState,
String characterEncoding)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void sync(RequestContext context)
#init(String)
context - The RequestContext for this Navigational Statepublic javax.portlet.WindowState getState(org.apache.pluto.om.window.PortletWindow window)
window -
public javax.portlet.WindowState getState(String windowId)
windowId -
public javax.portlet.PortletMode getMode(org.apache.pluto.om.window.PortletWindow window)
window -
public javax.portlet.PortletMode getMode(String windowId)
windowId -
public org.apache.pluto.om.window.PortletWindow getMaximizedWindow()
public Iterator getParameterNames(org.apache.pluto.om.window.PortletWindow window)
public String[] getParameterValues(org.apache.pluto.om.window.PortletWindow window,
String parameterName)
public org.apache.pluto.om.window.PortletWindow getPortletWindowOfAction()
public Iterator getWindowIdIterator()
public String encode(org.apache.pluto.om.window.PortletWindow window,
Map parameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
boolean action)
throws UnsupportedEncodingException
window - the PortalWindowparameters - the new request or action parameters for the PortalWindowmode - the new PortletMode for the PortalWindowstate - the new WindowState for the PortalWindowaction - indicates if to be used in an actionURL or renderURL
UnsupportedEncodingException
public String encode(org.apache.pluto.om.window.PortletWindow window,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state)
throws UnsupportedEncodingException
window - the PortalWindowmode - the new PortletMode for the PortalWindowstate - the new WindowState for the PortalWindow
UnsupportedEncodingExceptionpublic boolean isNavigationalParameterStateFull()
public boolean isRenderParameterStateFull()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||