|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NavigationalState
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()
Encodes the current navigational State into a string to be embedded within a PortalURL. |
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. |
javax.portlet.PortletMode |
getMappedMode(org.apache.pluto.om.window.PortletWindow window)
Gets the internal (portal) portlet mode for the given portlet window. |
javax.portlet.PortletMode |
getMappedMode(String windowId)
Gets the internal (portal) portlet mode for the given portlet window id. |
javax.portlet.WindowState |
getMappedState(org.apache.pluto.om.window.PortletWindow window)
Gets the internal (portal) window state for given portlet window. |
javax.portlet.WindowState |
getMappedState(String windowId)
Gets the internal (portal) window state for given portlet window id. |
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)
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()
|
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)
Deprecated. |
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 |
---|
static final String NAVSTATE_SESSION_KEY
Method Detail |
---|
void init(String encodedState, String characterEncoding) throws UnsupportedEncodingException
UnsupportedEncodingException
void sync(RequestContext context)
#init(String)
context
- The RequestContext for this Navigational Statejavax.portlet.WindowState getState(org.apache.pluto.om.window.PortletWindow window)
window
-
javax.portlet.WindowState getMappedState(org.apache.pluto.om.window.PortletWindow window)
window
-
javax.portlet.WindowState getState(String windowId)
windowId
-
javax.portlet.WindowState getMappedState(String windowId)
windowId
-
javax.portlet.PortletMode getMode(org.apache.pluto.om.window.PortletWindow window)
window
-
javax.portlet.PortletMode getMappedMode(org.apache.pluto.om.window.PortletWindow window)
window
-
javax.portlet.PortletMode getMode(String windowId)
windowId
-
javax.portlet.PortletMode getMappedMode(String windowId)
windowId
-
org.apache.pluto.om.window.PortletWindow getMaximizedWindow()
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()
Iterator getWindowIdIterator()
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
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
UnsupportedEncodingException
String encode() throws UnsupportedEncodingException
UnsupportedEncodingException
boolean isNavigationalParameterStateFull()
boolean isRenderParameterStateFull()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |