org.apache.shiro.spring.security.interceptor
Class AuthorizationAttributeSourceAdvisor

java.lang.Object
  extended by org.springframework.aop.support.StaticMethodMatcher
      extended by org.springframework.aop.support.StaticMethodMatcherPointcut
          extended by org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
              extended by org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor
All Implemented Interfaces:
Serializable, Advisor, MethodMatcher, Pointcut, PointcutAdvisor, Ordered

public class AuthorizationAttributeSourceAdvisor
extends StaticMethodMatcherPointcutAdvisor

TODO - complete JavaDoc

Since:
0.1
See Also:
Serialized Form

Field Summary
protected  SecurityManager securityManager
           
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Constructor Summary
AuthorizationAttributeSourceAdvisor()
          Create a new AuthorizationAttributeSourceAdvisor.
 
Method Summary
 SecurityManager getSecurityManager()
           
 boolean matches(Method method, Class targetClass)
          Returns true if the method has any Shiro annotations, false otherwise.
 void setSecurityManager(SecurityManager securityManager)
           
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
getAdvice, getOrder, getPointcut, isPerInstance, setAdvice, setOrder
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilter
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

securityManager

protected SecurityManager securityManager
Constructor Detail

AuthorizationAttributeSourceAdvisor

public AuthorizationAttributeSourceAdvisor()
Create a new AuthorizationAttributeSourceAdvisor.

Method Detail

getSecurityManager

public SecurityManager getSecurityManager()

setSecurityManager

public void setSecurityManager(SecurityManager securityManager)

matches

public boolean matches(Method method,
                       Class targetClass)
Returns true if the method has any Shiro annotations, false otherwise. The annotations inspected are:

Parameters:
method - the method to check for a Shiro annotation
targetClass - the class potentially declaring Shiro annotations
Returns:
true if the method has a Shiro annotation, false otherwise.
See Also:
MethodMatcher.matches(java.lang.reflect.Method, Class)


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.