Class PortletRequestContext
java.lang.Object
org.exoplatform.web.application.RequestContext
org.exoplatform.webui.application.WebuiRequestContext
org.exoplatform.webui.application.portlet.PortletRequestContext
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
-
Field Summary
Fields inherited from class org.exoplatform.webui.application.WebuiRequestContext
appRes_, NAME_DELIMITER, sessionId_, uiApplication_Fields inherited from class org.exoplatform.web.application.RequestContext
ACTION, parentAppRequestContext_ -
Constructor Summary
ConstructorsConstructorDescriptionPortletRequestContext(org.exoplatform.web.application.RequestContext parentAppRequestContext, WebuiApplication app, Writer writer, javax.portlet.PortletRequest req, javax.portlet.PortletResponse res) -
Method Summary
Modifier and TypeMethodDescriptionjavax.portlet.PortletModeorg.exoplatform.services.resources.OrientationReturns the context path of the portal or null if it does not execute in the context of an aggregated portal request.javax.portlet.PortletRequestfinal StringgetRequestParameter(String name) final String[]javax.portlet.PortletResponseorg.exoplatform.web.application.URLBuilder<UIComponent> org.exoplatform.web.url.URLFactoryorg.exoplatform.portal.mop.user.UserPortalPuts 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 refreshedvoidbooleanfinal booleanisUserInRole(String roleUser) <R,U extends org.exoplatform.web.url.PortalURL<R, U>>
UnewURL(org.exoplatform.web.url.ResourceType<R, U> resourceType, org.exoplatform.web.url.URLFactory urlFactory) voidsendRedirect(String url) voidsetApplicationMode(javax.portlet.PortletMode mode) voidsetAppLifecycleStarted(boolean b) voidsetUIApplication(UIApplication uiApplication) voidfinal booleanuseAjax()Methods inherited from class org.exoplatform.webui.application.WebuiRequestContext
addUIComponentToUpdateByAjax, generateUUID, getActionParameterName, getApplicationResourceBundle, getJavascriptManager, getProcessRender, getResourceResolver, getSessionId, getStateManager, getUIApplication, getUIComponentIdParameterName, getUIComponentToUpdateByAjax, isResponseComplete, setProcessRender, setResponseComplete, setSessionId, setStateManager, stripUUIDSuffixMethods inherited from class org.exoplatform.web.application.RequestContext
createURL, createURL, getApplication, getApplicationSession, getAttribute, getAttribute, getCurrentInstance, getFullRender, getLocale, getParentAppRequestContext, setAttribute, setAttribute, setCurrentInstance
-
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 newURLU>> (org.exoplatform.web.url.ResourceType<R, U> resourceType, org.exoplatform.web.url.URLFactory urlFactory) - Specified by:
newURLin classorg.exoplatform.web.application.RequestContext
-
init
public void init(Writer writer, javax.portlet.PortletRequest req, javax.portlet.PortletResponse res) -
setUIApplication
- Overrides:
setUIApplicationin classWebuiRequestContext- Throws:
Exception
-
getRequestParameter
- Specified by:
getRequestParameterin classorg.exoplatform.web.application.RequestContext
-
getRequestParameterValues
- Specified by:
getRequestParameterValuesin classorg.exoplatform.web.application.RequestContext
-
getOrientation
public org.exoplatform.services.resources.Orientation getOrientation()- Specified by:
getOrientationin classorg.exoplatform.web.application.RequestContext
-
getRequestContextPath
- Specified by:
getRequestContextPathin classWebuiRequestContext
-
getPortalContextPath
Description copied from class:WebuiRequestContextReturns the context path of the portal or null if it does not execute in the context of an aggregated portal request.- Specified by:
getPortalContextPathin classWebuiRequestContext- Returns:
- the portal context path
-
getRequest
public javax.portlet.PortletRequest getRequest()- Specified by:
getRequestin classWebuiRequestContext
-
getResponse
public javax.portlet.PortletResponse getResponse()- Specified by:
getResponsein classWebuiRequestContext
-
getURLFactory
public org.exoplatform.web.url.URLFactory getURLFactory()- Specified by:
getURLFactoryin classorg.exoplatform.web.application.RequestContext
-
getRemoteUser
- Overrides:
getRemoteUserin classorg.exoplatform.web.application.RequestContext
-
isUserInRole
- Overrides:
isUserInRolein classorg.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
- Overrides:
getWriterin classorg.exoplatform.web.application.RequestContext- Throws:
Exception
-
setWriter
- Overrides:
setWriterin classorg.exoplatform.web.application.RequestContext
-
useAjax
public final boolean useAjax()- Specified by:
useAjaxin classorg.exoplatform.web.application.RequestContext
-
sendRedirect
- Specified by:
sendRedirectin classWebuiRequestContext- Throws:
Exception
-
getUserPortal
public org.exoplatform.portal.mop.user.UserPortal getUserPortal()- Specified by:
getUserPortalin classorg.exoplatform.web.application.RequestContext
-
isAppLifecycleStarted
public boolean isAppLifecycleStarted() -
setAppLifecycleStarted
public void setAppLifecycleStarted(boolean b) -
getURLBuilder
- Specified by:
getURLBuilderin classWebuiRequestContext
-
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
-