Package org.wicketstuff.shiro.annotation
Class AnnotationsShiroAuthorizationStrategy
- java.lang.Object
-
- org.wicketstuff.shiro.annotation.AnnotationsShiroAuthorizationStrategy
-
- All Implemented Interfaces:
IAuthorizationStrategy
public class AnnotationsShiroAuthorizationStrategy extends Object implements IAuthorizationStrategy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.wicket.authorization.IAuthorizationStrategy
IAuthorizationStrategy.AllowAllAuthorizationStrategy
-
-
Field Summary
-
Fields inherited from interface org.apache.wicket.authorization.IAuthorizationStrategy
ALLOW_ALL
-
-
Constructor Summary
Constructors Constructor Description AnnotationsShiroAuthorizationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ShiroSecurityConstraintcheckInvalidInstantiation(Annotation[] annotations, ShiroAction action)<T extends IRequestableComponent>
ShiroSecurityConstraintcheckInvalidInstantiation(Class<T> componentClass)booleanisActionAuthorized(Component component, Action action)<T extends IRequestableComponent>
booleanisInstantiationAuthorized(Class<T> componentClass)booleanisResourceAuthorized(IResource resource, PageParameters parameters)
-
-
-
Method Detail
-
checkInvalidInstantiation
protected ShiroSecurityConstraint checkInvalidInstantiation(Annotation[] annotations, ShiroAction action)
- Returns:
- null if ok, or the Annotation that failed
-
checkInvalidInstantiation
public <T extends IRequestableComponent> ShiroSecurityConstraint checkInvalidInstantiation(Class<T> componentClass)
-
isActionAuthorized
public boolean isActionAuthorized(Component component, Action action)
- Specified by:
isActionAuthorizedin interfaceIAuthorizationStrategy
-
isResourceAuthorized
public boolean isResourceAuthorized(IResource resource, PageParameters parameters)
- Specified by:
isResourceAuthorizedin interfaceIAuthorizationStrategy
-
isInstantiationAuthorized
public <T extends IRequestableComponent> boolean isInstantiationAuthorized(Class<T> componentClass)
- Specified by:
isInstantiationAuthorizedin interfaceIAuthorizationStrategy
-
-