Class PortalDraftRequestHandler

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.web.WebRequestHandler
org.exoplatform.portal.application.PortalRequestHandler
io.meeds.portal.web.handler.PortalDraftRequestHandler
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class PortalDraftRequestHandler extends PortalRequestHandler
  • Field Details

    • HANDLER_NAME

      public static final String HANDLER_NAME
      See Also:
    • LOG

      protected static final org.exoplatform.services.log.Log LOG
    • REQUEST_PATH

      public static final org.exoplatform.web.controller.QualifiedName REQUEST_PATH
    • REQUEST_SITE_ID

      public static final org.exoplatform.web.controller.QualifiedName REQUEST_SITE_ID
    • LANG

      public static final org.exoplatform.web.controller.QualifiedName LANG
  • Constructor Details

    • PortalDraftRequestHandler

      public PortalDraftRequestHandler()
  • Method Details

    • getHandlerName

      public String getHandlerName()
      Overrides:
      getHandlerName in class PortalRequestHandler
    • execute

      public boolean execute(org.exoplatform.web.ControllerContext controllerContext) throws Exception
      Description copied from class: PortalRequestHandler
      This method will handle incoming portal request. It gets a reference to the WebAppController Here are the steps done in the method:
      1) Get the PortalApplication reference from the controller
      2) Create a PortalRequestContext object that is a convenient wrapper on all the request information
      3) Get the collection of ApplicationLifecycle referenced in the PortalApplication and defined in the webui-configuration.xml of the portal application
      4) Set that context in a ThreadLocal to easily access it
      5) Check if user have permission to access portal, if not, send 403 status code, if user has not login, redirect to login page
      6) dispatch to processRequest method, this is protected method, we can extend and override this method to write a new requestHandler base on PortalRequestHandler
      Overrides:
      execute in class PortalRequestHandler
      Throws:
      Exception
    • getLayoutService

      public org.exoplatform.portal.mop.service.LayoutService getLayoutService()
    • getUserAcl

      public org.exoplatform.portal.config.UserACL getUserAcl()