Class PortletApplicationController

java.lang.Object
javax.portlet.GenericPortlet
org.exoplatform.webui.application.portlet.PortletApplicationController
All Implemented Interfaces:
javax.portlet.EventPortlet, javax.portlet.Portlet, javax.portlet.PortletConfig, javax.portlet.ResourceServingPortlet

public class PortletApplicationController extends javax.portlet.GenericPortlet
Created by The eXo Platform SAS May 8, 2006 This class is just the main entry point and act as an adapter on eXo web framework. Hence every call is delegated to the PortletApplication which extends the WebuiApplication
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static org.exoplatform.services.log.Log
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    When the portlet is destroyed by the portlet container, the onDestroy() method of the PortletApplication is called and then the PortletApplication is removed from the cache inside th WebController
    void
    init(javax.portlet.PortletConfig config)
    This method is called when the portlet is initialised, in eXo this is a lazy loading mechanism the main goal of this method is to generate an application ID applicationId_ = portlet-application-name + "/" + portlet-name
    void
    processAction(javax.portlet.ActionRequest req, javax.portlet.ActionResponse res)
    Delegate the action to the PortletApplication object
    void
    processEvent(javax.portlet.EventRequest req, javax.portlet.EventResponse res)
    Delegate the action to the PortletApplication object
    void
    render(javax.portlet.RenderRequest req, javax.portlet.RenderResponse res)
    Delegate the render to the PortletApplication object
    void
    serveResource(javax.portlet.ResourceRequest req, javax.portlet.ResourceResponse res)
    Delegate the action to the PortletApplication object

    Methods inherited from class javax.portlet.GenericPortlet

    doDispatch, doEdit, doHeaders, doHelp, doView, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected static org.exoplatform.services.log.Log log
  • Constructor Details

    • PortletApplicationController

      public PortletApplicationController()
  • Method Details

    • init

      public void init(javax.portlet.PortletConfig config) throws javax.portlet.PortletException
      This method is called when the portlet is initialised, in eXo this is a lazy loading mechanism the main goal of this method is to generate an application ID applicationId_ = portlet-application-name + "/" + portlet-name
      Specified by:
      init in interface javax.portlet.Portlet
      Overrides:
      init in class javax.portlet.GenericPortlet
      Throws:
      javax.portlet.PortletException
    • processAction

      public void processAction(javax.portlet.ActionRequest req, javax.portlet.ActionResponse res) throws javax.portlet.PortletException, IOException
      Delegate the action to the PortletApplication object
      Specified by:
      processAction in interface javax.portlet.Portlet
      Overrides:
      processAction in class javax.portlet.GenericPortlet
      Throws:
      javax.portlet.PortletException
      IOException
    • processEvent

      public void processEvent(javax.portlet.EventRequest req, javax.portlet.EventResponse res)
      Delegate the action to the PortletApplication object
      Specified by:
      processEvent in interface javax.portlet.EventPortlet
      Overrides:
      processEvent in class javax.portlet.GenericPortlet
    • serveResource

      public void serveResource(javax.portlet.ResourceRequest req, javax.portlet.ResourceResponse res) throws javax.portlet.PortletException, IOException
      Delegate the action to the PortletApplication object
      Specified by:
      serveResource in interface javax.portlet.ResourceServingPortlet
      Overrides:
      serveResource in class javax.portlet.GenericPortlet
      Throws:
      javax.portlet.PortletException
      IOException
    • render

      public void render(javax.portlet.RenderRequest req, javax.portlet.RenderResponse res) throws javax.portlet.PortletException, IOException
      Delegate the render to the PortletApplication object
      Specified by:
      render in interface javax.portlet.Portlet
      Overrides:
      render in class javax.portlet.GenericPortlet
      Throws:
      javax.portlet.PortletException
      IOException
    • destroy

      public void destroy()
      When the portlet is destroyed by the portlet container, the onDestroy() method of the PortletApplication is called and then the PortletApplication is removed from the cache inside th WebController
      Specified by:
      destroy in interface javax.portlet.Portlet
      Overrides:
      destroy in class javax.portlet.GenericPortlet