Package io.meeds.portal.web.handler
Class PortalTemplateRequestHandler
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.web.WebRequestHandler
org.exoplatform.portal.application.PortalRequestHandler
io.meeds.portal.web.handler.PortalTemplateRequestHandler
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.exoplatform.web.controller.QualifiedNameprotected static final org.exoplatform.services.log.Logstatic final org.exoplatform.web.controller.QualifiedNamestatic final org.exoplatform.web.controller.QualifiedNameFields inherited from class org.exoplatform.portal.application.PortalRequestHandler
APPP_ROVIDER, globalPortal, metaPortal, PORTAL_PUBLIC_PAGE_NOT_FOUND, portalConfigService, REQUEST_SITE_NAME, REQUEST_SITE_TYPEFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(org.exoplatform.web.ControllerContext controllerContext) This method will handle incoming portal request.org.exoplatform.portal.mop.service.LayoutServiceorg.exoplatform.portal.config.UserACLMethods inherited from class org.exoplatform.portal.application.PortalRequestHandler
endRequestPhaseLifecycle, getRequestLocale, getRequiresLifeCycle, onInit, processRequest, processRequest, startRequestPhaseLifecycleMethods inherited from class org.exoplatform.web.WebRequestHandler
onDestroyMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
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
-
PortalTemplateRequestHandler
public PortalTemplateRequestHandler()
-
-
Method Details
-
getHandlerName
- Overrides:
getHandlerNamein classPortalRequestHandler
-
execute
Description copied from class:PortalRequestHandlerThis 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:
executein classPortalRequestHandler- Throws:
Exception
-
getLayoutService
public org.exoplatform.portal.mop.service.LayoutService getLayoutService() -
getUserAcl
public org.exoplatform.portal.config.UserACL getUserAcl()
-