org.tynamo.security.services
Class SecurityModule

java.lang.Object
  extended by org.tynamo.security.services.SecurityModule

public class SecurityModule
extends java.lang.Object

The main entry point for Security integration.


Constructor Summary
SecurityModule()
           
 
Method Summary
static void adviseRequestExceptionHandler(org.apache.tapestry5.ioc.MethodAdviceReceiver receiver, org.apache.tapestry5.internal.services.PageResponseRenderer renderer, org.apache.tapestry5.internal.services.RequestPageCache pageCache, org.slf4j.Logger logger, org.apache.tapestry5.services.RequestGlobals requestGlobals, org.apache.tapestry5.services.Response response, SecurityService securityService, ShiroExceptionHandler handler)
          Advise current RequestExceptionHandler for we can catch ShiroException exceptions and handle this.
static void adviseSecurityAssert(org.apache.tapestry5.ioc.MethodAdviceReceiver receiver)
          Secure all service methods that are marked with authorization annotations.
static void bind(org.apache.tapestry5.ioc.ServiceBinder binder)
           
 void contributeApplicationInitializer(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ApplicationInitializerFilter> configuration, org.apache.tapestry5.services.ComponentClassResolver componentClassResolver, ClassInterceptorsCache classInterceptorsCache)
          Create ClassInterceptorsCache through annotations on the class page, which then will use SecurityFilter.
static void contributeClasspathAssetAliasManager(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)
           
static void contributeComponentClassResolver(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration)
           
static void contributeComponentClassTransformWorker(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ComponentClassTransformWorker> configuration)
           
static void contributeComponentRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ComponentRequestFilter> configuration, org.apache.tapestry5.services.ComponentRequestFilter filter)
           
static void contributeFactoryDefaults(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)
           
static void contributeHttpServletRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.HttpServletRequestFilter> configuration, org.apache.tapestry5.services.HttpServletRequestFilter securityRequestFilter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityModule

public SecurityModule()
Method Detail

bind

public static void bind(org.apache.tapestry5.ioc.ServiceBinder binder)

contributeFactoryDefaults

public static void contributeFactoryDefaults(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)

contributeApplicationInitializer

public void contributeApplicationInitializer(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ApplicationInitializerFilter> configuration,
                                             org.apache.tapestry5.services.ComponentClassResolver componentClassResolver,
                                             ClassInterceptorsCache classInterceptorsCache)
Create ClassInterceptorsCache through annotations on the class page, which then will use SecurityFilter.


contributeComponentRequestHandler

public static void contributeComponentRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ComponentRequestFilter> configuration,
                                                     @Local
                                                     org.apache.tapestry5.services.ComponentRequestFilter filter)

contributeComponentClassTransformWorker

public static void contributeComponentClassTransformWorker(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ComponentClassTransformWorker> configuration)

contributeComponentClassResolver

public static void contributeComponentClassResolver(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration)

contributeClasspathAssetAliasManager

public static void contributeClasspathAssetAliasManager(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)

adviseSecurityAssert

@Match(value="*")
@Order(value="before:*")
public static void adviseSecurityAssert(org.apache.tapestry5.ioc.MethodAdviceReceiver receiver)
Secure all service methods that are marked with authorization annotations.

Restriction: Only service interfaces can be annotated.


adviseRequestExceptionHandler

public static void adviseRequestExceptionHandler(org.apache.tapestry5.ioc.MethodAdviceReceiver receiver,
                                                 org.apache.tapestry5.internal.services.PageResponseRenderer renderer,
                                                 org.apache.tapestry5.internal.services.RequestPageCache pageCache,
                                                 org.slf4j.Logger logger,
                                                 org.apache.tapestry5.services.RequestGlobals requestGlobals,
                                                 org.apache.tapestry5.services.Response response,
                                                 SecurityService securityService,
                                                 ShiroExceptionHandler handler)
Advise current RequestExceptionHandler for we can catch ShiroException exceptions and handle this.

See Also:
ShiroExceptionHandler

contributeHttpServletRequestHandler

public static void contributeHttpServletRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.HttpServletRequestFilter> configuration,
                                                       @InjectService(value="SecurityRequestFilter")
                                                       org.apache.tapestry5.services.HttpServletRequestFilter securityRequestFilter)


Copyright © 2004-2011. All Rights Reserved.