Package org.gatein.pc.controller
Interface ControllerContext
-
- All Known Implementing Classes:
AbstractControllerContext
public interface ControllerContextThe context provided to call the portlet controller.- Version:
- $Revision: 1.1 $
- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.gatein.pc.api.spi.PortletInvocationContextcreatePortletInvocationContext(String windowId, PageNavigationalState pageNavigationalState)Create a portlet invocation context for the specified window id.EventControllerContextgetEventControllerContext()org.gatein.pc.api.info.PortletInfogetPortletInfo(String windowId)Returns the portet info for a specified window.StateControllerContextgetStateControllerContext()org.gatein.pc.api.invocation.response.PortletInvocationResponseinvoke(String windowId, List<javax.servlet.http.Cookie> requestCookies, org.gatein.pc.api.invocation.EventInvocation eventInvocation)org.gatein.pc.api.invocation.response.PortletInvocationResponseinvoke(String windowId, List<javax.servlet.http.Cookie> requestCookies, org.gatein.pc.api.invocation.RenderInvocation renderInvocation)org.gatein.pc.api.invocation.response.PortletInvocationResponseinvoke(String windowId, org.gatein.pc.api.invocation.ActionInvocation actionInvocation)org.gatein.pc.api.invocation.response.PortletInvocationResponseinvoke(String windowId, org.gatein.pc.api.invocation.ResourceInvocation resourceInvocation)
-
-
-
Method Detail
-
getEventControllerContext
EventControllerContext getEventControllerContext()
-
getStateControllerContext
StateControllerContext getStateControllerContext()
-
getPortletInfo
org.gatein.pc.api.info.PortletInfo getPortletInfo(String windowId)
Returns the portet info for a specified window.- Parameters:
windowId- the window id- Returns:
- the portlet info or null if none can be found
-
createPortletInvocationContext
org.gatein.pc.api.spi.PortletInvocationContext createPortletInvocationContext(String windowId, PageNavigationalState pageNavigationalState)
Create a portlet invocation context for the specified window id.- Parameters:
windowId- the window idpageNavigationalState- the page navigational state- Returns:
- the portlet invocation context
-
invoke
org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(String windowId, org.gatein.pc.api.invocation.ActionInvocation actionInvocation) throws org.gatein.pc.api.PortletInvokerException
- Throws:
org.gatein.pc.api.PortletInvokerException
-
invoke
org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(String windowId, List<javax.servlet.http.Cookie> requestCookies, org.gatein.pc.api.invocation.EventInvocation eventInvocation) throws org.gatein.pc.api.PortletInvokerException
- Throws:
org.gatein.pc.api.PortletInvokerException
-
invoke
org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(String windowId, List<javax.servlet.http.Cookie> requestCookies, org.gatein.pc.api.invocation.RenderInvocation renderInvocation) throws org.gatein.pc.api.PortletInvokerException
- Throws:
org.gatein.pc.api.PortletInvokerException
-
invoke
org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(String windowId, org.gatein.pc.api.invocation.ResourceInvocation resourceInvocation) throws org.gatein.pc.api.PortletInvokerException
- Throws:
org.gatein.pc.api.PortletInvokerException
-
-