org.wicketstuff.shiro.annotation
Class AnnotationsShiroAuthorizationStrategy
java.lang.Object
org.wicketstuff.shiro.annotation.AnnotationsShiroAuthorizationStrategy
- All Implemented Interfaces:
- org.apache.wicket.authorization.IAuthorizationStrategy
public class AnnotationsShiroAuthorizationStrategy
- extends java.lang.Object
- implements org.apache.wicket.authorization.IAuthorizationStrategy
| Fields inherited from interface org.apache.wicket.authorization.IAuthorizationStrategy |
ALLOW_ALL |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationsShiroAuthorizationStrategy
public AnnotationsShiroAuthorizationStrategy()
isInstantiationAuthorized
public <T extends org.apache.wicket.Component> boolean isInstantiationAuthorized(java.lang.Class<T> componentClass)
- Specified by:
isInstantiationAuthorized in interface org.apache.wicket.authorization.IAuthorizationStrategy
- See Also:
IAuthorizationStrategy.isInstantiationAuthorized(java.lang.Class)
checkInvalidInstantiation
public <T extends org.apache.wicket.Component> ShiroSecurityConstraint checkInvalidInstantiation(java.lang.Class<T> componentClass)
checkInvalidInstantiation
protected ShiroSecurityConstraint checkInvalidInstantiation(java.lang.annotation.Annotation[] annotations,
ShiroAction action)
- Type Parameters:
T - - Parameters:
clazz -
- Returns:
- null if ok, or the Annotation that failed
isActionAuthorized
public boolean isActionAuthorized(org.apache.wicket.Component component,
org.apache.wicket.authorization.Action action)
- Specified by:
isActionAuthorized in interface org.apache.wicket.authorization.IAuthorizationStrategy
Copyright © 2010. All Rights Reserved.