Class PortletController

java.lang.Object
org.gatein.pc.controller.PortletController

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
Version:
$Revision: 1.1 $
Author:
Julien Viet
  • Constructor Details

    • PortletController

      public PortletController()
  • Method Details

    • getDistributeNonConsumableEvents

      public 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. If the value is true, then the event will be fired whatsoever otherwise it will be discarded.
      Returns:
      true if the controller distribute a non declared event
    • setDistributeNonConsumableEvents

      public void setDistributeNonConsumableEvents(boolean distributeNonConsumableEvents)
    • getDistributeNonProduceableEvents

      public boolean getDistributeNonProduceableEvents()
      This option configures the behavior of the controller when a portlet produces an event it does not declare. If the value is true then the event will be managed by the event controller for further redistribution, otherwise it will be discarded.
      Returns:
      true if the controller distribute a non declared event
    • setDistributeNonProduceableEvents

      public void setDistributeNonProduceableEvents(boolean distributeNonProduceableEvents)
    • getProducedEventThreshold

      public int getProducedEventThreshold()
      The option configures the maximum number of events that can be produced during one interaction. A negative value means that there is no limit to the number of events that can be produced during one interaction.
      Returns:
      the maximum number of produced events
    • setProducedEventThreshold

      public void setProducedEventThreshold(int producedEventThreshold)
    • getConsumedEventThreshold

      public int getConsumedEventThreshold()
      The option configures the maximum number of events that can be consumed during one interaction. A negative value means that there is no limit to the number of events that can be consumed during one interaction.
      Returns:
      the maximum number of consumed events
    • setConsumedEventThreshold

      public void setConsumedEventThreshold(int consumedEventThreshold)
    • process

      public ControllerResponse process(ControllerContext controllerContext, ControllerRequest controllerRequest) throws org.gatein.pc.api.PortletInvokerException
      Throws:
      org.gatein.pc.api.PortletInvokerException
    • render

      public 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
      Throws:
      org.gatein.pc.api.PortletInvokerException