org.loom.annotation.processor
Class AbstractSecurityAnnotationProcessor

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

@Singleton
public abstract class AbstractSecurityAnnotationProcessor
extends AbstractAnnotationProcessor

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


Constructor Summary
AbstractSecurityAnnotationProcessor()
           
 
Method Summary
protected  SecurityInterceptor createInterceptor()
           
protected  SecurityInterceptor findInterceptor(Event event)
           
protected  void removeInterceptor(Event event)
          Removes the SecurityInterceptor on the supplied event
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.AbstractAnnotationProcessor
compareTo, getOrder, 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

setEventRoles

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


createInterceptor

protected SecurityInterceptor createInterceptor()

findInterceptor

protected SecurityInterceptor findInterceptor(Event event)

removeInterceptor

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

Parameters:
event -