public class AlfrescoFacesPortlet
extends org.apache.myfaces.portlet.MyFacesGenericPortlet
| Constructor and Description |
|---|
AlfrescoFacesPortlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
facesRender(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response) |
static String |
getActionURL(javax.servlet.ServletRequest request)
Creates an action url from the given request.
|
static ErrorBean |
getErrorBean(javax.servlet.ServletRequest request)
Gets the error bean from a request
|
static javax.faces.context.FacesContext |
getFacesContext(javax.servlet.ServletRequest request)
Initializes a new faces context using the portlet objects from a 'wrapped' servlet request.
|
static Object |
getPortletSessionAttribute(javax.faces.context.FacesContext context,
String attributeName,
boolean shared)
Gets a session attribute.
|
static String |
getRenderURL(javax.servlet.ServletRequest request,
Map<String,String[]> parameters)
Creates a render URL from the given request and parameters
|
static String |
getResourceURL(javax.faces.context.FacesContext context,
String path)
Creates a resource URL from the given faces context.
|
static String |
onLogOut(Object req) |
void |
processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Called by the portlet container to allow the portlet to process an action request.
|
void |
serveResource(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response) |
protected void |
setDefaultViewSelector() |
static void |
setPortletSessionAttribute(javax.faces.context.FacesContext context,
String attributeName,
Object value,
boolean shared)
Sets a session attribute.
|
destroy, doEdit, doHelp, doView, facesContext, getLifecycleId, handleExceptionFromLifecycle, init, initMyFaces, logException, makeExternalContext, nonFacesRequest, nonFacesRequest, renderCleanup, restoreRequestAttributes, saveRequestAttributes, selectDefaultView, sessionInvalidated, sessionTimedOut, setContentType, setDefaultView, setPortletRequestFlagdoDispatch, doHeaders, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, processEvent, renderpublic void processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletException,
IOException
processAction in interface javax.portlet.PortletprocessAction in class org.apache.myfaces.portlet.MyFacesGenericPortletjavax.portlet.PortletExceptionIOExceptionpublic void serveResource(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
throws javax.portlet.PortletException,
IOException
serveResource in interface javax.portlet.ResourceServingPortletserveResource in class javax.portlet.GenericPortletjavax.portlet.PortletExceptionIOExceptionprotected void facesRender(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
facesRender in class org.apache.myfaces.portlet.MyFacesGenericPortletjavax.portlet.PortletExceptionIOExceptionMyFacesGenericPortlet.facesRender(javax.portlet.RenderRequest, javax.portlet.RenderResponse)public static ErrorBean getErrorBean(javax.servlet.ServletRequest request)
request - the requestpublic static String getRenderURL(javax.servlet.ServletRequest request, Map<String,String[]> parameters)
request - the requestparameters - the parameterspublic static String getActionURL(javax.servlet.ServletRequest request)
request - the requestpublic static String getResourceURL(javax.faces.context.FacesContext context, String path)
context - the faces contextpublic static Object getPortletSessionAttribute(javax.faces.context.FacesContext context, String attributeName, boolean shared)
context - the faces contextattributeName - the attribute nameshared - get the attribute from shared (application) scope?public static void setPortletSessionAttribute(javax.faces.context.FacesContext context,
String attributeName,
Object value,
boolean shared)
context - the faces contextattributeName - the attribute namevalue - the valueshared - set the attribute with shared (application) scope?public static javax.faces.context.FacesContext getFacesContext(javax.servlet.ServletRequest request)
request - the servlet requestprotected void setDefaultViewSelector()
throws javax.portlet.UnavailableException
setDefaultViewSelector in class org.apache.myfaces.portlet.MyFacesGenericPortletjavax.portlet.UnavailableExceptionMyFacesGenericPortlet.setDefaultViewSelector()Copyright © 2005–2018 Alfresco Software. All rights reserved.