public class PortletController extends Object
The portlet controller which handles the page state management and the interactions between the action phase and the event phase. It really only does that and not more.
The event distribution is based on a fifo policy.
1/ introduce EventRequest so the portal can send events directly to a portlet 2/ make the event controller return a decision for a given event. Today it just returns a list of events to process. An event can be handled in various manners by the controller: - produce new events (what exists today) - make it a portal event which delivers the event to the portal| Constructor and Description |
|---|
PortletController() |
| Modifier and Type | Method and Description |
|---|---|
int |
getConsumedEventThreshold()
The option configures the maximum number of events that can be consumed during one interaction.
|
boolean |
getDistributeNonConsumableEvents()
This option configures the behavior of the controller when an event returned by the
event controller is not declared by the target receiving portlet.
|
boolean |
getDistributeNonProduceableEvents()
This option configures the behavior of the controller when a portlet produces an event it does
not declare.
|
int |
getProducedEventThreshold()
The option configures the maximum number of events that can be produced during one interaction.
|
ControllerResponse |
process(ControllerContext controllerContext,
ControllerRequest controllerRequest) |
org.gatein.pc.api.invocation.response.PortletInvocationResponse |
render(ControllerContext controllerContext,
List<javax.servlet.http.Cookie> cookies,
PageNavigationalState pageNavigationalState,
String windowId) |
void |
setConsumedEventThreshold(int consumedEventThreshold) |
void |
setDistributeNonConsumableEvents(boolean distributeNonConsumableEvents) |
void |
setDistributeNonProduceableEvents(boolean distributeNonProduceableEvents) |
void |
setProducedEventThreshold(int producedEventThreshold) |
public boolean getDistributeNonConsumableEvents()
public void setDistributeNonConsumableEvents(boolean distributeNonConsumableEvents)
public boolean getDistributeNonProduceableEvents()
public void setDistributeNonProduceableEvents(boolean distributeNonProduceableEvents)
public int getProducedEventThreshold()
public void setProducedEventThreshold(int producedEventThreshold)
public int getConsumedEventThreshold()
public void setConsumedEventThreshold(int consumedEventThreshold)
public ControllerResponse process(ControllerContext controllerContext, ControllerRequest controllerRequest) throws org.gatein.pc.api.PortletInvokerException
org.gatein.pc.api.PortletInvokerExceptionpublic org.gatein.pc.api.invocation.response.PortletInvocationResponse render(ControllerContext controllerContext, List<javax.servlet.http.Cookie> cookies, PageNavigationalState pageNavigationalState, String windowId) throws org.gatein.pc.api.PortletInvokerException
org.gatein.pc.api.PortletInvokerExceptionCopyright © 2003-2017 GateIn. All Rights Reserved.