org.alfresco.web.app.portlet
Class AlfrescoFacesPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by org.apache.myfaces.portlet.MyFacesGenericPortlet
          extended by org.alfresco.web.app.portlet.AlfrescoFacesPortlet
All Implemented Interfaces:
javax.portlet.EventPortlet, javax.portlet.Portlet, javax.portlet.PortletConfig, javax.portlet.ResourceServingPortlet

public class AlfrescoFacesPortlet
extends org.apache.myfaces.portlet.MyFacesGenericPortlet

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 java.lang.String getRenderURL(javax.servlet.ServletRequest request, java.util.Map parameters)
          Creates a render URL from the given request and parameters
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
          Called by the portlet container to allow the portlet to process an action request.
protected  void setDefaultViewSelector()
           
 
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, serveResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlfrescoFacesPortlet

public AlfrescoFacesPortlet()
Method Detail

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse response)
                   throws javax.portlet.PortletException,
                          java.io.IOException
Called by the portlet container to allow the portlet to process an action request.

Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class org.apache.myfaces.portlet.MyFacesGenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

facesRender

protected void facesRender(javax.portlet.RenderRequest request,
                           javax.portlet.RenderResponse response)
                    throws javax.portlet.PortletException,
                           java.io.IOException
Overrides:
facesRender in class org.apache.myfaces.portlet.MyFacesGenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException
See Also:
MyFacesGenericPortlet.facesRender(javax.portlet.RenderRequest, javax.portlet.RenderResponse)

getErrorBean

public static ErrorBean getErrorBean(javax.servlet.ServletRequest request)
Gets the error bean from a request

Parameters:
request - the request
Returns:
the error bean

getRenderURL

public static java.lang.String getRenderURL(javax.servlet.ServletRequest request,
                                            java.util.Map parameters)
Creates a render URL from the given request and parameters

Parameters:
request - the request
parameters - the parameters
Returns:
the render url

getActionURL

public static java.lang.String getActionURL(javax.servlet.ServletRequest request)
Creates an action url from the given request.

Parameters:
request - the request
Returns:
the action url

setDefaultViewSelector

protected void setDefaultViewSelector()
                               throws javax.portlet.UnavailableException
Overrides:
setDefaultViewSelector in class org.apache.myfaces.portlet.MyFacesGenericPortlet
Throws:
javax.portlet.UnavailableException
See Also:
MyFacesGenericPortlet.setDefaultViewSelector()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.