org.objectweb.easybeans.deployment.annotations.helper.bean
Class SecurityResolver

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.helper.bean.SecurityResolver

public final class SecurityResolver
extends java.lang.Object

This class adds the interceptor for the security (if required) on a given method.

Author:
Florent Benoit

Field Summary
private static java.lang.String DENYALL_INTERCEPTOR
          DenyAll interceptor.
private static JMethod EASYBEANS_INTERCEPTOR
          Signature of EasyBeans interceptors.
private static java.lang.String ROLEBASED_INTERCEPTOR
          Role based interceptor.
private static java.lang.String RUNAS_INTERCEPTOR
          RunAs interceptor.
 
Constructor Summary
private SecurityResolver()
          Helper class, no public constructor.
 
Method Summary
static void resolve(ClassAnnotationMetadata bean)
          Adds the right transaction interceptor depending of the transactional attribute set by the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EASYBEANS_INTERCEPTOR

private static final JMethod EASYBEANS_INTERCEPTOR
Signature of EasyBeans interceptors.


DENYALL_INTERCEPTOR

private static final java.lang.String DENYALL_INTERCEPTOR
DenyAll interceptor.


RUNAS_INTERCEPTOR

private static final java.lang.String RUNAS_INTERCEPTOR
RunAs interceptor.


ROLEBASED_INTERCEPTOR

private static final java.lang.String ROLEBASED_INTERCEPTOR
Role based interceptor.

Constructor Detail

SecurityResolver

private SecurityResolver()
Helper class, no public constructor.

Method Detail

resolve

public static void resolve(ClassAnnotationMetadata bean)
Adds the right transaction interceptor depending of the transactional attribute set by the user.

Parameters:
bean - the given bean on which set the transactional interceptor.