|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.portlet.GenericPortlet
org.apache.myfaces.portlet.MyFacesGenericPortlet
org.alfresco.web.app.portlet.AlfrescoFacesPortlet
public class AlfrescoFacesPortlet
Class to extend the MyFacesGenericPortlet to provide behaviour specific to Alfresco web client. Handles upload of multi-part forms through a JSR-168 Portlet, generic error handling and session login authentication.
| Field Summary |
|---|
| Fields inherited from class org.apache.myfaces.portlet.MyFacesGenericPortlet |
|---|
CURRENT_FACES_CONTEXT, DEFAULT_VIEW, DEFAULT_VIEW_SELECTOR, defaultView, defaultViewSelector, FACES_INIT_DONE, facesContextFactory, lifecycle, portletContext, REDEPLOY_FLAG, SAVED_REQUEST_ATTRIBUTES, VIEW_ID |
| Constructor Summary | |
|---|---|
AlfrescoFacesPortlet()
|
|
| Method Summary | |
|---|---|
protected void |
facesRender(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
static java.lang.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 java.lang.Object |
getPortletSessionAttribute(javax.faces.context.FacesContext context,
java.lang.String attributeName,
boolean shared)
Gets a session attribute. |
static java.lang.String |
getRenderURL(javax.servlet.ServletRequest request,
java.util.Map parameters)
Creates a render URL from the given request and parameters |
static java.lang.String |
getResourceURL(javax.faces.context.FacesContext context,
java.lang.String path)
Creates a resource URL from the given faces context. |
static java.lang.String |
onLogOut(java.lang.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,
java.lang.String attributeName,
java.lang.Object value,
boolean shared)
Sets a session attribute. |
| Methods inherited from class org.apache.myfaces.portlet.MyFacesGenericPortlet |
|---|
destroy, doEdit, doHelp, doView, facesContext, getLifecycleId, handleExceptionFromLifecycle, init, initMyFaces, logException, makeExternalContext, nonFacesRequest, nonFacesRequest, renderCleanup, restoreRequestAttributes, saveRequestAttributes, selectDefaultView, sessionInvalidated, sessionTimedOut, setContentType, setDefaultView, setPortletRequestFlag |
| Methods inherited from class javax.portlet.GenericPortlet |
|---|
doDispatch, doHeaders, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, processEvent, render |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlfrescoFacesPortlet()
| Method Detail |
|---|
public void processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletException,
java.io.IOException
processAction in interface javax.portlet.PortletprocessAction in class org.apache.myfaces.portlet.MyFacesGenericPortletjavax.portlet.PortletException
java.io.IOException
public void serveResource(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
throws javax.portlet.PortletException,
java.io.IOException
serveResource in interface javax.portlet.ResourceServingPortletserveResource in class javax.portlet.GenericPortletjavax.portlet.PortletException
java.io.IOException
protected void facesRender(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
java.io.IOException
facesRender in class org.apache.myfaces.portlet.MyFacesGenericPortletjavax.portlet.PortletException
java.io.IOExceptionMyFacesGenericPortlet.facesRender(javax.portlet.RenderRequest, javax.portlet.RenderResponse)public static ErrorBean getErrorBean(javax.servlet.ServletRequest request)
request - the request
public static java.lang.String getRenderURL(javax.servlet.ServletRequest request,
java.util.Map parameters)
request - the requestparameters - the parameters
public static java.lang.String getActionURL(javax.servlet.ServletRequest request)
request - the request
public static java.lang.String getResourceURL(javax.faces.context.FacesContext context,
java.lang.String path)
context - the faces context
public static java.lang.Object getPortletSessionAttribute(javax.faces.context.FacesContext context,
java.lang.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,
java.lang.String attributeName,
java.lang.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 request
public static java.lang.String onLogOut(java.lang.Object req)
protected void setDefaultViewSelector()
throws javax.portlet.UnavailableException
setDefaultViewSelector in class org.apache.myfaces.portlet.MyFacesGenericPortletjavax.portlet.UnavailableExceptionMyFacesGenericPortlet.setDefaultViewSelector()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||