org.wicketstuff.security.hive.authorization.permissions
Class ComponentPermission

java.lang.Object
  extended by org.wicketstuff.security.hive.authorization.Permission
      extended by org.wicketstuff.security.hive.authorization.permissions.ActionPermission
          extended by org.wicketstuff.security.hive.authorization.permissions.ComponentPermission
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ComponentSubclassPermission

public class ComponentPermission
extends org.wicketstuff.security.hive.authorization.permissions.ActionPermission

Permission for certain components. Can have actions like access, render or enable.

Author:
marrink
See Also:
Serialized Form

Constructor Summary
ComponentPermission(org.apache.wicket.Component component, org.wicketstuff.security.actions.WaspAction action)
          Creates a new ComponentPermission with the specified actions.
ComponentPermission(String componentAlias, org.wicketstuff.security.actions.WaspAction actions)
          Creates a new ComponentPermission with the specified actions.
 
Method Summary
protected  boolean equals(String[] path1, String[] path2)
           
 boolean implies(org.wicketstuff.security.hive.authorization.Permission permission)
          Overrides ActionPermission.implies(Permission) to also include inheritance between several levels of parent containers.
protected  boolean implies(String[] path1, String[] path2)
           
 
Methods inherited from class org.wicketstuff.security.hive.authorization.permissions.ActionPermission
equals, getAction, getActions, hashCode, toString
 
Methods inherited from class org.wicketstuff.security.hive.authorization.Permission
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentPermission

public ComponentPermission(org.apache.wicket.Component component,
                           org.wicketstuff.security.actions.WaspAction action)
Creates a new ComponentPermission with the specified actions.

Parameters:
component - the component
action - the action(s)

ComponentPermission

public ComponentPermission(String componentAlias,
                           org.wicketstuff.security.actions.WaspAction actions)
Creates a new ComponentPermission with the specified actions.

Parameters:
componentAlias - an alias as produced by SecureComponentHelper
actions - the granted action(s)
Method Detail

implies

public boolean implies(org.wicketstuff.security.hive.authorization.Permission permission)
Overrides ActionPermission.implies(Permission) to also include inheritance between several levels of parent containers. The same rules still apply

Overrides:
implies in class org.wicketstuff.security.hive.authorization.permissions.ActionPermission
See Also:
Permission.implies(Permission)

equals

protected boolean equals(String[] path1,
                         String[] path2)

implies

protected boolean implies(String[] path1,
                          String[] path2)


Copyright © 2006–2018 Apache Software Foundation. All rights reserved.