public class ActionPermission extends Permission
HiveFactory when constructing permissions. Note if you do
not wish to use actions in your permissions you should build your own permissions.| Modifier | Constructor and Description |
|---|---|
protected |
ActionPermission(String name,
org.wicketstuff.security.actions.WaspAction actions)
Creates a new ActionPermission with the specified name and actions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
ActionPermissions are only equal if they have the same class, name and actions.
|
protected org.wicketstuff.security.actions.WaspAction |
getAction()
The internal representation of this action.
|
String |
getActions()
A logically ordered comma separated string containing each action this permission has.
|
int |
hashCode()
generates a hashcode including the classname.
|
boolean |
implies(Permission permission)
Performs a logical and to see if this permission has at least all the actions as the other
permission and thus if this permission implies the other permission.
|
String |
toString() |
getNameprotected ActionPermission(String name, org.wicketstuff.security.actions.WaspAction actions)
name - non null name of the permissionactions - a logical and of all the allowed / required actions for this permissionpublic boolean implies(Permission permission)
Some basic rules about implies:
if (permission instanceof DataPermission)
return super.implies(permission);
return false;
Note that this does not prevent other subclasses from ActionPermission to imply your permission (as stated above).
implies in class PermissionPermission.implies(Permission)public boolean equals(Object obj)
equals in class Permissionobj - the object we are testing for equality with this object.Permission.equals(java.lang.Object)public int hashCode()
hashCode in class PermissionPermission.hashCode()public final String getActions()
getActions in class PermissionPermission.getActions()public String toString()
toString in class ObjectObject.toString()protected final org.wicketstuff.security.actions.WaspAction getAction()
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.