|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Response of a layout strategy to communicate with the strategy interceptor.
The layout strategy can create a strategy response, and send it back to the strategy interceptor. The interceptor can then modify the request's state according to the desired changes expressed in the strategy response.
Method Summary | |
void |
addNoRender(PortletContext portlet)
Add a portlet to the list of portlets that are excluded from the render process. |
void |
addPortletModeChange(PortletContext portlet,
Mode mode)
Add a portlet to the list of portlets that received a new portlet mode by the strategy. |
void |
addWindowStateChange(PortletContext portlet,
WindowState state)
Add a portlet to the list of portlets that received a new window state by the strategy. |
java.lang.String |
getLayoutState()
Get the state for this strategy response |
java.lang.String |
getLayoutURI()
Get the URI of the layout to use. |
java.util.List |
getNoRenderList()
Get the list of portlets (portlet context) that should not be rendered by the portlet container. |
java.util.Map |
getPortletModeChangeMap()
Get a map of portlets that should change their mode, with the new mode in the value |
java.util.Map |
getWindowStateChangeMap()
Get a map of portlets that should change their window state, with the new state in the value |
void |
reset()
Reset all the state of this response. |
void |
setLayoutState(java.lang.String state)
Set the state for this strategy response. |
void |
setLayoutURI(java.lang.String layoutURI)
Set the layout URI to use |
Method Detail |
public void setLayoutURI(java.lang.String layoutURI)
layoutURI
- the layout URI to usegetLayoutURI()
public java.lang.String getLayoutURI()
PortalLayout.getURI()
,
PortalLayout.getURI(String)
,
getLayoutState()
,
setLayoutURI(java.lang.String)
public void setLayoutState(java.lang.String state)
The state is used to find a layout URI that is more atuned to this particular state
state
- the state to use when looking for a layout URIPortalLayout.getURI(String)
public java.lang.String getLayoutState()
setLayoutState(java.lang.String)
public void addWindowStateChange(PortletContext portlet, WindowState state)
portlet
- the portlet that got the new window statestate
- the new window statePortletContext
,
WindowState
,
getWindowStateChangeMap()
public java.util.Map getWindowStateChangeMap()
PortletContext
,
WindowState
,
addWindowStateChange(org.jboss.portal.theme.page.PortletContext, org.jboss.portal.WindowState)
public java.util.List getNoRenderList()
PortletContext
,
addNoRender(org.jboss.portal.theme.page.PortletContext)
public void addNoRender(PortletContext portlet)
portlet
- the portlet to excludepublic void addPortletModeChange(PortletContext portlet, Mode mode)
portlet
- the portlet that got the new portlet modemode
- the new portlet modePortletContext
,
Mode
,
getPortletModeChangeMap()
public java.util.Map getPortletModeChangeMap()
PortletContext
,
Mode
,
addPortletModeChange(org.jboss.portal.theme.page.PortletContext, org.jboss.portal.Mode)
public void reset()
After the reset, the response's state is equal to the state after it was created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |