|
||||||||||
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 java.lang.String |
NAVSTATE_SESSION_KEY
Session key for storing the PortletWindowSessionNavigationalStates |
static java.lang.String |
PRP_SESSION_KEY
Session key for storing the PublicRenderParametersMap |
Method Summary | |
---|---|
java.lang.String |
encode()
Encodes the current navigational State into a string to be embedded within a PortalURL. |
java.lang.String |
encode(PortletWindow window,
java.util.Map<java.lang.String,java.lang.String[]> parameters,
java.lang.String actionScopeId,
boolean actionScopeRendered,
java.lang.String cacheLevel,
java.lang.String resourceId,
java.util.Map<java.lang.String,java.lang.String[]> privateRenderParameters,
java.util.Map<java.lang.String,java.lang.String[]> publicRenderParameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
boolean action)
Deprecated. |
java.lang.String |
encode(PortletWindow window,
java.util.Map<java.lang.String,java.lang.String[]> parameters,
java.lang.String actionScopeId,
boolean actionScopeRendered,
java.lang.String cacheLevel,
java.lang.String resourceId,
java.util.Map<java.lang.String,java.lang.String[]> privateRenderParameters,
java.util.Map<java.lang.String,java.lang.String[]> publicRenderParameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
PortalURL.URLType urlType)
Encodes the Navigational State with overrides for a specific PortletWindow into a string to be embedded within a PortalURL. |
java.lang.String |
encode(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. |
java.lang.String |
getActionScopeId(PortletWindow window)
|
java.lang.String |
getCacheLevel(PortletWindow window)
|
javax.portlet.PortletMode |
getMappedMode(PortletWindow window)
Gets the internal (portal) portlet mode for the given portlet window. |
javax.portlet.PortletMode |
getMappedMode(java.lang.String windowId)
Gets the internal (portal) portlet mode for the given portlet window id. |
javax.portlet.WindowState |
getMappedState(PortletWindow window)
Gets the internal (portal) window state for given portlet window. |
javax.portlet.WindowState |
getMappedState(java.lang.String windowId)
Gets the internal (portal) window state for given portlet window id. |
PortletWindow |
getMaximizedWindow()
For the current request return the (first) maximized window or return null if no windows are maximized. |
javax.portlet.PortletMode |
getMode(PortletWindow window)
Gets the portlet mode for the given portlet window. |
javax.portlet.PortletMode |
getMode(java.lang.String windowId)
Deprecated. |
java.util.Map<java.lang.String,java.lang.String[]> |
getParameterMap(PortletWindow window)
|
PortletWindow |
getPortletWindowOfAction()
|
PortletWindow |
getPortletWindowOfResource()
|
java.util.Map<java.lang.String,java.lang.String[]> |
getPrivateRenderParameterMap(PortletWindow window)
|
java.util.Map<java.lang.String,java.lang.String[]> |
getPublicRenderParameterMap(PortletWindow window)
|
java.util.Map<java.lang.String,java.lang.String[]> |
getRequestParameterMap()
Provides a "safe" copy of the client/portal request parameterMap, with the values already (re)encode in the preferred or requested character encoding |
java.lang.String |
getResourceID(PortletWindow window)
|
javax.portlet.WindowState |
getState(PortletWindow window)
Gets the window state for given portlet window. |
javax.portlet.WindowState |
getState(java.lang.String windowId)
Deprecated. |
PortalURL.URLType |
getURLType()
|
java.util.Iterator<java.lang.String> |
getWindowIdIterator()
Returns an iterator of Portlet Window ids of all the Portlet Windows within the NavigationalState. |
void |
init(java.lang.String encodedState,
java.lang.String characterEncoding)
|
boolean |
isActionScopedRequestAttributes(PortletWindow window)
|
boolean |
isActionScopeRendered(PortletWindow window)
|
boolean |
isNavigationalParameterStateFull()
|
boolean |
isRenderParameterStateFull()
|
void |
registerPortletContentCachedForPublicRenderParameters(RequestContext context,
PortletContent content)
|
boolean |
sync(RequestContext context)
Synchronize the Navigational State with saved state (if used). |
Field Detail |
---|
static final java.lang.String NAVSTATE_SESSION_KEY
static final java.lang.String PRP_SESSION_KEY
Method Detail |
---|
void init(java.lang.String encodedState, java.lang.String characterEncoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
boolean sync(RequestContext context)
context
- The RequestContext for this Navigational State
javax.portlet.WindowState getState(PortletWindow window)
window
-
javax.portlet.WindowState getMappedState(PortletWindow window)
window
-
javax.portlet.WindowState getState(java.lang.String windowId)
windowId
-
javax.portlet.WindowState getMappedState(java.lang.String windowId)
windowId
-
javax.portlet.PortletMode getMode(PortletWindow window)
window
-
javax.portlet.PortletMode getMappedMode(PortletWindow window)
window
-
javax.portlet.PortletMode getMode(java.lang.String windowId)
windowId
-
javax.portlet.PortletMode getMappedMode(java.lang.String windowId)
windowId
-
PortletWindow getMaximizedWindow()
java.util.Map<java.lang.String,java.lang.String[]> getRequestParameterMap()
This parameterMap is created early (and only once) to protect against dynamic modification by certain webcontainers like Websphere which might change the contents of the original request parametersMap during request dispatching with additional query string parameters.
Furthermore, when using parallel rendering this is even more critical to do upfront and only once while still in the initial portal request Thread.
java.util.Map<java.lang.String,java.lang.String[]> getParameterMap(PortletWindow window)
boolean isActionScopedRequestAttributes(PortletWindow window)
java.lang.String getActionScopeId(PortletWindow window)
boolean isActionScopeRendered(PortletWindow window)
java.lang.String getCacheLevel(PortletWindow window)
java.lang.String getResourceID(PortletWindow window)
java.util.Map<java.lang.String,java.lang.String[]> getPrivateRenderParameterMap(PortletWindow window)
java.util.Map<java.lang.String,java.lang.String[]> getPublicRenderParameterMap(PortletWindow window)
PortalURL.URLType getURLType()
PortletWindow getPortletWindowOfAction()
PortletWindow getPortletWindowOfResource()
java.util.Iterator<java.lang.String> getWindowIdIterator()
java.lang.String encode(PortletWindow window, java.util.Map<java.lang.String,java.lang.String[]> parameters, java.lang.String actionScopeId, boolean actionScopeRendered, java.lang.String cacheLevel, java.lang.String resourceId, java.util.Map<java.lang.String,java.lang.String[]> privateRenderParameters, java.util.Map<java.lang.String,java.lang.String[]> publicRenderParameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, boolean action) throws java.io.UnsupportedEncodingException
window
- the PortalWindowparameters
- the new request or action parameters for the PortalWindowactionScopeId
- the new action scope for the PortalWindowactionScopeRendered
- the new action scope rendered flag for the PortalWindowcacheLevel
- the new cache level for the PortalWindow resourceresourceId
- the new resource id for the PortalWindow resourceprivateRenderParameters
- the new private render parameters for the PortalWindow resourcepublicRenderParameters
- the new request, action, or resource public render 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
java.io.UnsupportedEncodingException
java.lang.String encode(PortletWindow window, java.util.Map<java.lang.String,java.lang.String[]> parameters, java.lang.String actionScopeId, boolean actionScopeRendered, java.lang.String cacheLevel, java.lang.String resourceId, java.util.Map<java.lang.String,java.lang.String[]> privateRenderParameters, java.util.Map<java.lang.String,java.lang.String[]> publicRenderParameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, PortalURL.URLType urlType) throws java.io.UnsupportedEncodingException
window
- the PortalWindowparameters
- the new request or action parameters for the PortalWindowactionScopeId
- the new action scope for the PortalWindowactionScopeRendered
- the new action scope rendered flag for the PortalWindowcacheLevel
- the new cache level for the PortalWindow resourceresourceId
- the new resource id for the PortalWindow resourceprivateRenderParameters
- the new private render parameters for the PortalWindow resourcepublicRenderParameters
- the new request, action, or resource public render parameters for the PortalWindowmode
- the new PortletMode for the PortalWindowstate
- the new WindowState for the PortalWindowurlType
- indicates if to be used in an actionURL, ResourceURL or renderURL
java.io.UnsupportedEncodingException
java.lang.String encode(PortletWindow window, javax.portlet.PortletMode mode, javax.portlet.WindowState state) throws java.io.UnsupportedEncodingException
window
- the PortalWindowmode
- the new PortletMode for the PortalWindowstate
- the new WindowState for the PortalWindow
java.io.UnsupportedEncodingException
java.lang.String encode() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
boolean isNavigationalParameterStateFull()
boolean isRenderParameterStateFull()
void registerPortletContentCachedForPublicRenderParameters(RequestContext context, PortletContent content)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |