org.apache.wicket.authroles.authorization.strategies.role.annotations
Class AnnotationsRoleAuthorizationStrategy

java.lang.Object
  extended by org.apache.wicket.authroles.authorization.strategies.role.AbstractRoleAuthorizationStrategy
      extended by org.apache.wicket.authroles.authorization.strategies.role.annotations.AnnotationsRoleAuthorizationStrategy
All Implemented Interfaces:
IAuthorizationStrategy

public class AnnotationsRoleAuthorizationStrategy
extends AbstractRoleAuthorizationStrategy

Strategy that checks the AuthorizeInstantiation annotation.

Author:
Eelco Hillenius

Field Summary
 
Fields inherited from interface org.apache.wicket.authorization.IAuthorizationStrategy
ALLOW_ALL
 
Constructor Summary
AnnotationsRoleAuthorizationStrategy(IRoleCheckingStrategy roleCheckingStrategy)
          Construct.
 
Method Summary
protected  boolean isActionAuthorized(Class<?> componentClass, Action action)
           
 boolean isActionAuthorized(Component component, Action action)
           
<T extends IRequestableComponent>
boolean
isInstantiationAuthorized(Class<T> componentClass)
           
 
Methods inherited from class org.apache.wicket.authroles.authorization.strategies.role.AbstractRoleAuthorizationStrategy
hasAny, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationsRoleAuthorizationStrategy

public AnnotationsRoleAuthorizationStrategy(IRoleCheckingStrategy roleCheckingStrategy)
Construct.

Parameters:
roleCheckingStrategy - the authorizer delegate
Method Detail

isInstantiationAuthorized

public <T extends IRequestableComponent> boolean isInstantiationAuthorized(Class<T> componentClass)
See Also:
IAuthorizationStrategy.isInstantiationAuthorized(java.lang.Class)

isActionAuthorized

public boolean isActionAuthorized(Component component,
                                  Action action)
See Also:
IAuthorizationStrategy.isActionAuthorized(org.apache.wicket.Component, org.apache.wicket.authorization.Action)

isActionAuthorized

protected boolean isActionAuthorized(Class<?> componentClass,
                                     Action action)


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.