fr.ifremer.wao.ui.services
Class RequiresAuthenticationFilter

java.lang.Object
  extended by fr.ifremer.wao.ui.services.RequiresAuthenticationFilter
All Implemented Interfaces:
org.apache.tapestry5.services.ComponentRequestFilter

public class RequiresAuthenticationFilter
extends Object
implements org.apache.tapestry5.services.ComponentRequestFilter

RequiresLoginFilter Created: 3 mai 2010

Author:
fdesbois $Id: RequiresAuthenticationFilter.java 650 2010-10-03 15:14:48Z fdesbois $

Constructor Summary
RequiresAuthenticationFilter(org.apache.tapestry5.services.PageRenderLinkSource renderLinkSource, org.apache.tapestry5.services.ComponentSource componentSource, org.apache.tapestry5.services.Response response, ServiceAuthentication serviceAuthentication)
           
 
Method Summary
 void handleComponentEvent(org.apache.tapestry5.services.ComponentEventRequestParameters parameters, org.apache.tapestry5.services.ComponentRequestHandler handler)
           
 void handlePageRender(org.apache.tapestry5.services.PageRenderRequestParameters parameters, org.apache.tapestry5.services.ComponentRequestHandler handler)
           
protected  Object[] prepareContext(String pageName, org.apache.tapestry5.EventContext activationContext)
          Prepare the context for redirect page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequiresAuthenticationFilter

public RequiresAuthenticationFilter(org.apache.tapestry5.services.PageRenderLinkSource renderLinkSource,
                                    org.apache.tapestry5.services.ComponentSource componentSource,
                                    org.apache.tapestry5.services.Response response,
                                    ServiceAuthentication serviceAuthentication)
Method Detail

handleComponentEvent

public void handleComponentEvent(org.apache.tapestry5.services.ComponentEventRequestParameters parameters,
                                 org.apache.tapestry5.services.ComponentRequestHandler handler)
                          throws IOException
Specified by:
handleComponentEvent in interface org.apache.tapestry5.services.ComponentRequestFilter
Throws:
IOException

handlePageRender

public void handlePageRender(org.apache.tapestry5.services.PageRenderRequestParameters parameters,
                             org.apache.tapestry5.services.ComponentRequestHandler handler)
                      throws IOException
Specified by:
handlePageRender in interface org.apache.tapestry5.services.ComponentRequestFilter
Throws:
IOException

prepareContext

protected Object[] prepareContext(String pageName,
                                  org.apache.tapestry5.EventContext activationContext)
Prepare the context for redirect page.

Parameters:
pageName - the pageName to treate
activationContext - the EventContext of this page
Returns:
an array of Object for Context


Copyright © 2009-2010 Ifremer. All Rights Reserved.