public interface NavigationalState
MutableNavigationState
interface to cleanly define the immutable contract of this
interface.Modifier and Type | Field and Description |
---|---|
static String |
NAVSTATE_SESSION_KEY
Session key for storing the PortletWindowSessionNavigationalStates
|
static String |
PRP_SESSION_KEY
Session key for storing the PublicRenderParametersMap
|
Modifier and Type | Method and Description |
---|---|
String |
encode()
Encodes the current navigational State into a string to be embedded within a PortalURL.
|
String |
encode(PortletWindow window,
Map<String,String[]> parameters,
String actionScopeId,
boolean actionScopeRendered,
String cacheLevel,
String resourceId,
Map<String,String[]> privateRenderParameters,
Map<String,String[]> publicRenderParameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
boolean action)
Deprecated.
|
String |
encode(PortletWindow window,
Map<String,String[]> parameters,
String actionScopeId,
boolean actionScopeRendered,
String cacheLevel,
String resourceId,
Map<String,String[]> privateRenderParameters,
Map<String,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.
|
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.
|
String |
getActionScopeId(PortletWindow window) |
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(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(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(String windowId)
Deprecated.
|
Map<String,String[]> |
getParameterMap(PortletWindow window) |
PortletWindow |
getPortletWindowOfAction() |
PortletWindow |
getPortletWindowOfResource() |
Map<String,String[]> |
getPrivateRenderParameterMap(PortletWindow window) |
Map<String,String[]> |
getPublicRenderParameterMap(PortletWindow window) |
Map<String,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
|
String |
getResourceID(PortletWindow window) |
javax.portlet.WindowState |
getState(PortletWindow window)
Gets the window state for given portlet window.
|
javax.portlet.WindowState |
getState(String windowId)
Deprecated.
|
PortalURL.URLType |
getURLType() |
Iterator<String> |
getWindowIdIterator()
Returns an iterator of Portlet Window ids of all the Portlet Windows
within the NavigationalState.
|
void |
init(String encodedState,
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).
|
static final String NAVSTATE_SESSION_KEY
static final String PRP_SESSION_KEY
void init(String encodedState, String characterEncoding) throws UnsupportedEncodingException
UnsupportedEncodingException
boolean sync(RequestContext context)
context
- The RequestContext for this Navigational Statejavax.portlet.WindowState getState(PortletWindow window)
window
- javax.portlet.WindowState getMappedState(PortletWindow window)
window
- javax.portlet.WindowState getState(String windowId)
windowId
- javax.portlet.WindowState getMappedState(String windowId)
windowId
- javax.portlet.PortletMode getMode(PortletWindow window)
window
- javax.portlet.PortletMode getMappedMode(PortletWindow window)
window
- javax.portlet.PortletMode getMode(String windowId)
windowId
- javax.portlet.PortletMode getMappedMode(String windowId)
windowId
- PortletWindow getMaximizedWindow()
Map<String,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.
Map<String,String[]> getParameterMap(PortletWindow window)
boolean isActionScopedRequestAttributes(PortletWindow window)
String getActionScopeId(PortletWindow window)
boolean isActionScopeRendered(PortletWindow window)
String getCacheLevel(PortletWindow window)
String getResourceID(PortletWindow window)
Map<String,String[]> getPrivateRenderParameterMap(PortletWindow window)
Map<String,String[]> getPublicRenderParameterMap(PortletWindow window)
PortalURL.URLType getURLType()
PortletWindow getPortletWindowOfAction()
PortletWindow getPortletWindowOfResource()
Iterator<String> getWindowIdIterator()
String encode(PortletWindow window, Map<String,String[]> parameters, String actionScopeId, boolean actionScopeRendered, String cacheLevel, String resourceId, Map<String,String[]> privateRenderParameters, Map<String,String[]> publicRenderParameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, boolean action) throws 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 renderURLUnsupportedEncodingException
String encode(PortletWindow window, Map<String,String[]> parameters, String actionScopeId, boolean actionScopeRendered, String cacheLevel, String resourceId, Map<String,String[]> privateRenderParameters, Map<String,String[]> publicRenderParameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, PortalURL.URLType urlType) throws 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 renderURLUnsupportedEncodingException
String encode(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 PortalWindowUnsupportedEncodingException
String encode() throws UnsupportedEncodingException
UnsupportedEncodingException
boolean isNavigationalParameterStateFull()
boolean isRenderParameterStateFull()
void registerPortletContentCachedForPublicRenderParameters(RequestContext context, PortletContent content)
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.