Class AllPermissions
- java.lang.Object
-
- org.wicketstuff.security.hive.authorization.Permission
-
- org.wicketstuff.security.hive.authorization.permissions.ActionPermission
-
- org.wicketstuff.security.hive.authorization.permissions.AllPermissions
-
- All Implemented Interfaces:
Serializable
public class AllPermissions extends ActionPermission
Permission that implies all other permissions, when created with the "all" action. If any other action then the "all" action is used onlyActionPermissions implying those actions are implied. Permissions that do not subclass theActionPermissionare always implied. Note that actions registered with theActionFactoryafter this permission was created are not automatically implied.- Author:
- marrink
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AllPermissions(String name, org.wicketstuff.security.actions.ActionFactory factory)Preferred constructor.AllPermissions(String name, org.wicketstuff.security.actions.WaspAction actions)Creates a new AllPermissions that does not imply all other permissions but only those who's actions it can imply.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanimplies(Permission permission)Implies every other permission, but the other way around is not necessarily true.-
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
-
-
-
-
Constructor Detail
-
AllPermissions
public AllPermissions(String name, org.wicketstuff.security.actions.ActionFactory factory)
Preferred constructor. All other permissions are implied by this permission. Equal to usingnew AllPermissions(name,factory.getAction(AllAction.class));or not specifying the action part in the policy file.- Parameters:
name- the name of this permission.factory- a factory capable of creating SwarmActions
-
AllPermissions
public AllPermissions(String name, org.wicketstuff.security.actions.WaspAction actions)
Creates a new AllPermissions that does not imply all other permissions but only those who's actions it can imply. Thus when supplied with aRenderaction only render actions are implied notEnableactions.- Parameters:
name-actions-- See Also:
implies(Permission)
-
-
Method Detail
-
implies
public boolean implies(Permission permission)
Implies every other permission, but the other way around is not necessarily true. One exception, if this action was not initiated with theAllActionsaction it only implies otherActionPermissions who's actions are implied by this permission's actions.- Overrides:
impliesin classActionPermission- Returns:
- true if this implies the permission, false otherwise.
- See Also:
ActionPermission.implies(org.wicketstuff.security.hive.authorization.Permission)
-
-