|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StrategyResponse
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 |
addModified(PortletContext portlet)
Add a portlet to the list of portlets that have been modified by the strategy. |
void |
addNoRender(PortletContext portlet)
Add a portlet to the list of portlets that are excluded from the render process. |
void |
addWindowStateChange(PortletContext portlet,
WindowState state)
Add a portlet to the list of portlets that received a new window state by the strategy. |
java.util.List |
getExcludedList()
Get the list of portlets (portlet context) that should not be rendered by the portlet container. |
java.lang.String |
getLayoutURI()
Get the URI of the layout to use. |
java.util.List |
getModifiedPortletContextList()
Get the list of portlet contexts that have been modified. |
java.lang.String |
getState()
Get the state for this strategy response |
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 |
setState(java.lang.String state)
Set the state for this strategy response. |
void |
setURI(java.lang.String layoutURI)
Set the layout URI to use |
Method Detail |
---|
java.lang.String getLayoutURI()
PortalLayout.getURI()
,
PortalLayout.getURI(String)
,
getState()
,
setURI(java.lang.String)
java.util.Map getWindowStateChangeMap()
PortletContext
,
WindowState
,
addWindowStateChange(org.jboss.portal.server.theme.strategy.PortletContext, org.jboss.portal.server.plugins.windowstate.WindowState)
java.util.List getExcludedList()
PortletContext
,
addNoRender(org.jboss.portal.server.theme.strategy.PortletContext)
java.util.List getModifiedPortletContextList()
The portlet context allows to change the region and order of the portlet in that region. If the strategy alters any of those values, it must propagate the change via this list.
java.util.List
of org.jboss.portal.core.theme.strategy.PortletContext
PortletContext
,
addModified(org.jboss.portal.server.theme.strategy.PortletContext)
void addNoRender(PortletContext portlet)
portlet
- the portlet to excludevoid addModified(PortletContext portlet)
portlet
- the portlet that has been modifiedPortletContext
,
getModifiedPortletContextList()
void addWindowStateChange(PortletContext portlet, WindowState state)
portlet
- the portlet that got the new window statestate
- the new window statePortletContext
,
WindowState
,
getWindowStateChangeMap()
void reset()
After the reset, the response's is equal to the state after it was created
void setURI(java.lang.String layoutURI)
layoutURI
- the layout URI to usegetLayoutURI()
void setState(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)
java.lang.String getState()
setState(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |