org.loom.annotation.processor
Class AbstractSecurityAnnotationProcessor

java.lang.Object
  extended by org.loom.annotation.processor.AbstractAnnotationProcessor
      extended by org.loom.annotation.processor.AbstractInjectedInterceptorAnnotationProcessor<SecurityInterceptor>
          extended by org.loom.annotation.processor.AbstractSecurityAnnotationProcessor
All Implemented Interfaces:
AnnotationProcessor, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
CommonAnnotationsProcessor, SecuredAnnotationProcessor

public abstract class AbstractSecurityAnnotationProcessor
extends AbstractInjectedInterceptorAnnotationProcessor<SecurityInterceptor>

Processes security annotations. Subclasses will provide concrete implementations for each security provider.

Author:
icoloma

Constructor Summary
AbstractSecurityAnnotationProcessor()
           
 
Method Summary
protected  SecurityInterceptor findInterceptor(Event event)
           
protected  void removeInterceptor(Event event)
          Removes the SecurityInterceptor on the supplied event
protected  void setActionRoles(ActionMapping mapping, java.lang.String[] roles)
          Set the roles that are allowed to invoke any event inside an action class.
protected  void setEventRoles(Event event, java.lang.String[] roles)
          Set the Roles that are allowed to call an event
 
Methods inherited from class org.loom.annotation.processor.AbstractInjectedInterceptorAnnotationProcessor
getApplicationContext, getInterceptor, getInterceptorBeanName, getInterceptorClass, setApplicationContext, setInterceptorBeanName
 
Methods inherited from class org.loom.annotation.processor.AbstractAnnotationProcessor
process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSecurityAnnotationProcessor

public AbstractSecurityAnnotationProcessor()
Method Detail

setActionRoles

protected void setActionRoles(ActionMapping mapping,
                              java.lang.String[] roles)
Set the roles that are allowed to invoke any event inside an action class. These roles are applied to each event in the action.


setEventRoles

protected void setEventRoles(Event event,
                             java.lang.String[] roles)
Set the Roles that are allowed to call an event


findInterceptor

protected SecurityInterceptor findInterceptor(Event event)

removeInterceptor

protected void removeInterceptor(Event event)
Removes the SecurityInterceptor on the supplied event

Parameters:
event -


The Loom Framework 1.6-SNAPSHOT.
Licensed under the Apache License, Version 2.0 by Extrema Sistemas de Informacion S.L.