Class AuthorizationAttributeSourceAdvisor
java.lang.Object
org.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.StaticMethodMatcherPointcut
org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor
- All Implemented Interfaces:
Serializable,Advisor,MethodMatcher,Pointcut,PointcutAdvisor,Ordered
TODO - complete JavaDoc
- Since:
- 0.1
- See Also:
-
Field Summary
FieldsFields inherited from interface org.springframework.aop.Advisor
EMPTY_ADVICEFields inherited from interface org.springframework.aop.MethodMatcher
TRUEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new AuthorizationAttributeSourceAdvisor. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.shiro.mgt.SecurityManagerbooleanReturns true if the method or the class has any Shiro annotations, false otherwise.voidsetSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager) Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
getAdvice, getOrder, getPointcut, isPerInstance, setAdvice, setOrderMethods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilterMethods inherited from class org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
-
Field Details
-
securityManager
-
-
Constructor Details
-
AuthorizationAttributeSourceAdvisor
public AuthorizationAttributeSourceAdvisor()Create a new AuthorizationAttributeSourceAdvisor.
-
-
Method Details
-
getSecurityManager
-
setSecurityManager
-
matches
Returns true if the method or the class has any Shiro annotations, false otherwise. The annotations inspected are:RequiresAuthenticationRequiresUserRequiresGuestRequiresRolesRequiresPermissions
- Parameters:
method- the method to check for a Shiro annotationtargetClass- the class potentially declaring Shiro annotations- Returns:
- true if the method has a Shiro annotation, false otherwise.
- See Also:
-