org.nuiton.web.tapestry5.services
Class AbstractAuthenticationFilter<U,A extends Annotation>

java.lang.Object
  extended by org.nuiton.web.tapestry5.services.AbstractAuthenticationFilter<U,A>
Type Parameters:
U - type of User
A - type of Annotation that manage authentication on pages/components
All Implemented Interfaces:
org.apache.tapestry5.services.ComponentRequestFilter

public abstract class AbstractAuthenticationFilter<U,A extends Annotation>
extends Object
implements org.apache.tapestry5.services.ComponentRequestFilter

AbstractAuthenticationFilter Created: 3 mai 2010

Author:
fdesbois $Id: AbstractAuthenticationFilter.java 5 2010-05-04 16:23:44Z fdesbois $

Nested Class Summary
protected static class AbstractAuthenticationFilter.AuthenticationRedirect
           
 
Field Summary
protected  Class<A> annotationClass
           
 
Constructor Summary
AbstractAuthenticationFilter(org.apache.tapestry5.services.PageRenderLinkSource renderLinkSource, org.apache.tapestry5.services.ComponentSource componentSource, org.apache.tapestry5.services.Response response, ServiceAuthentication<U> serviceAuthentication, Class<A> annotationClass)
           
 
Method Summary
protected abstract  Class<?> getRedirectPage(AbstractAuthenticationFilter.AuthenticationRedirect redirectType)
           
 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  boolean redirectUnauthorizedUser(String pageName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotationClass

protected Class<A extends Annotation> annotationClass
Constructor Detail

AbstractAuthenticationFilter

public AbstractAuthenticationFilter(org.apache.tapestry5.services.PageRenderLinkSource renderLinkSource,
                                    org.apache.tapestry5.services.ComponentSource componentSource,
                                    org.apache.tapestry5.services.Response response,
                                    ServiceAuthentication<U> serviceAuthentication,
                                    Class<A> annotationClass)
Method Detail

getRedirectPage

protected abstract Class<?> getRedirectPage(AbstractAuthenticationFilter.AuthenticationRedirect redirectType)

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

redirectUnauthorizedUser

protected boolean redirectUnauthorizedUser(String pageName)
                                    throws IOException
Throws:
IOException


Copyright © 2010 CodeLutin. All Rights Reserved.