Class PortletRequestContext

java.lang.Object
org.exoplatform.web.application.RequestContext
org.exoplatform.webui.application.WebuiRequestContext
org.exoplatform.webui.application.portlet.PortletRequestContext

public class PortletRequestContext extends WebuiRequestContext
todo (julien) : there is an issue here (small) as the PRC seems to be stored in http session and keep a pointer on request and response object. The request context of a portlet
  • Constructor Details

    • PortletRequestContext

      public PortletRequestContext(org.exoplatform.web.application.RequestContext parentAppRequestContext, WebuiApplication app, Writer writer, javax.portlet.PortletRequest req, javax.portlet.PortletResponse res)
  • Method Details

    • newURL

      public <R, U extends org.exoplatform.web.url.PortalURL<R, U>> U newURL(org.exoplatform.web.url.ResourceType<R,U> resourceType, org.exoplatform.web.url.URLFactory urlFactory)
      Specified by:
      newURL in class org.exoplatform.web.application.RequestContext
    • init

      public void init(Writer writer, javax.portlet.PortletRequest req, javax.portlet.PortletResponse res)
    • setUIApplication

      public void setUIApplication(UIApplication uiApplication) throws Exception
      Overrides:
      setUIApplication in class WebuiRequestContext
      Throws:
      Exception
    • getRequestParameter

      public final String getRequestParameter(String name)
      Specified by:
      getRequestParameter in class org.exoplatform.web.application.RequestContext
    • getRequestParameterValues

      public final String[] getRequestParameterValues(String name)
      Specified by:
      getRequestParameterValues in class org.exoplatform.web.application.RequestContext
    • getOrientation

      public org.exoplatform.services.resources.Orientation getOrientation()
      Specified by:
      getOrientation in class org.exoplatform.web.application.RequestContext
    • getRequestContextPath

      public String getRequestContextPath()
      Specified by:
      getRequestContextPath in class WebuiRequestContext
    • getPortalContextPath

      public String getPortalContextPath()
      Description copied from class: WebuiRequestContext
      Returns the context path of the portal or null if it does not execute in the context of an aggregated portal request.
      Specified by:
      getPortalContextPath in class WebuiRequestContext
      Returns:
      the portal context path
    • getRequest

      public javax.portlet.PortletRequest getRequest()
      Specified by:
      getRequest in class WebuiRequestContext
    • getResponse

      public javax.portlet.PortletResponse getResponse()
      Specified by:
      getResponse in class WebuiRequestContext
    • getURLFactory

      public org.exoplatform.web.url.URLFactory getURLFactory()
      Specified by:
      getURLFactory in class org.exoplatform.web.application.RequestContext
    • getRemoteUser

      public String getRemoteUser()
      Overrides:
      getRemoteUser in class org.exoplatform.web.application.RequestContext
    • isUserInRole

      public final boolean isUserInRole(String roleUser)
      Overrides:
      isUserInRole in class org.exoplatform.web.application.RequestContext
    • getApplicationMode

      public javax.portlet.PortletMode getApplicationMode()
    • setApplicationMode

      public void setApplicationMode(javax.portlet.PortletMode mode) throws javax.portlet.PortletModeException
      Throws:
      javax.portlet.PortletModeException
    • getWriter

      public Writer getWriter() throws Exception
      Overrides:
      getWriter in class org.exoplatform.web.application.RequestContext
      Throws:
      Exception
    • setWriter

      public void setWriter(Writer writer)
      Overrides:
      setWriter in class org.exoplatform.web.application.RequestContext
    • useAjax

      public final boolean useAjax()
      Specified by:
      useAjax in class org.exoplatform.web.application.RequestContext
    • sendRedirect

      public void sendRedirect(String url) throws Exception
      Specified by:
      sendRedirect in class WebuiRequestContext
      Throws:
      Exception
    • getUserPortal

      public org.exoplatform.portal.mop.user.UserPortal getUserPortal()
      Specified by:
      getUserPortal in class org.exoplatform.web.application.RequestContext
    • isAppLifecycleStarted

      public boolean isAppLifecycleStarted()
    • setAppLifecycleStarted

      public void setAppLifecycleStarted(boolean b)
    • getURLBuilder

      public org.exoplatform.web.application.URLBuilder<UIComponent> getURLBuilder()
      Specified by:
      getURLBuilder in class WebuiRequestContext
    • getWindowId

      public String getWindowId()
      Puts the component to update inside the parent request context Here it will be the PortalRequestHandler and hence it will be responsible of making the distinction between 3rd parties portlets (that need a full portlet fragment refresh) and our portlets that also allow some UIComponent within the portlet to be refreshed