org.appfuse.service
Class UserSecurityAdvice
java.lang.Object
org.appfuse.service.UserSecurityAdvice
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, AfterReturningAdvice, BeforeAdvice, MethodBeforeAdvice
public class UserSecurityAdvice
- extends Object
- implements MethodBeforeAdvice, AfterReturningAdvice
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACCESS_DENIED
public static final String ACCESS_DENIED
- See Also:
- Constant Field Values
log
protected final org.apache.commons.logging.Log log
UserSecurityAdvice
public UserSecurityAdvice()
setUserCache
public void setUserCache(org.acegisecurity.providers.dao.UserCache userCache)
before
public void before(Method method,
Object[] args,
Object target)
throws Throwable
- Method to enforce security and only allow administrators to modify users. Regular
users are allowed to modify themselves.
- Specified by:
before
in interface MethodBeforeAdvice
- Throws:
Throwable
afterReturning
public void afterReturning(Object returnValue,
Method method,
Object[] args,
Object target)
throws Throwable
- Specified by:
afterReturning
in interface AfterReturningAdvice
- Throws:
Throwable
Copyright � 2002-2006