org.openmrs.aop
Class AuthorizationAdvice
java.lang.Object
org.openmrs.aop.AuthorizationAdvice
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.springframework.aop.BeforeAdvice, org.springframework.aop.MethodBeforeAdvice
public class AuthorizationAdvice
- extends java.lang.Object
- implements org.springframework.aop.MethodBeforeAdvice
This class provides the authorization AOP advice performed before every service layer method
call.
Field Summary |
protected static org.apache.commons.logging.Log |
log
Logger for this class and subclasses |
Method Summary |
void |
before(java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object target)
Allows us to check whether a user is authorized to access a particular method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
- Logger for this class and subclasses
AuthorizationAdvice
public AuthorizationAdvice()
before
public void before(java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object target)
throws java.lang.Throwable
- Allows us to check whether a user is authorized to access a particular method.
- Specified by:
before
in interface org.springframework.aop.MethodBeforeAdvice
- Parameters:
method
- args
- target
-
- Throws:
java.lang.Throwable
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change