public class SwarmAction
extends org.wicketstuff.security.actions.AbstractWaspAction
Action class based on int values to speed up inheritance checking. Each action
is assigned a power of 2 int value. Bitwise or checks provide the imply logic. These actions are
instantiated by an ActionFactory which provides both the name and the int value for the
constructor.Action| Modifier | Constructor and Description |
|---|---|
protected |
SwarmAction(int action,
String name,
Object key)
The default constructor for actions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
actions()
Returns the internal representation of this action.
|
org.wicketstuff.security.actions.WaspAction |
add(int otherActions)
Creates a new
WaspAction containing both the specified actions and the actions of
this WaspAction. |
SwarmAction |
add(org.wicketstuff.security.actions.WaspAction other)
Creates a new
WaspAction containing both the specified actions and the actions of
this WaspAction. |
boolean |
equals(Object obj)
Any SwarmAction is equal to another if there 'actions' value is the same.
|
org.wicketstuff.security.actions.ActionFactory |
getActionFactory() |
int |
hashCode() |
boolean |
implies(int otherActions)
Check if the supplied actions are implied (bitwise or) by this SwarmAction.
|
boolean |
implies(org.wicketstuff.security.actions.WaspAction other)
Check if the supplied action is implied (bitwise or) by this SwarmAction.
|
SwarmAction |
remove(int otherActions)
Creates a new
WaspAction with all the actions of this action except those specified. |
org.wicketstuff.security.actions.WaspAction |
remove(org.wicketstuff.security.actions.WaspAction action)
Creates a new WaspAction with all the actions of this action except those specified.
|
protected SwarmAction(int action,
String name,
Object key)
Access), like Render.action - a power of 2 which provides the base value for this actionname - the name of the actionkey - the key used to register the owning ActionFactory with the Actions
objectpublic final boolean implies(int otherActions)
otherActions - internal value of some other action(s)public final int actions()
public final boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object),
actions()public final int hashCode()
hashCode in class ObjectObject.hashCode()public final boolean implies(org.wicketstuff.security.actions.WaspAction other)
other - the other actionpublic final org.wicketstuff.security.actions.WaspAction add(int otherActions)
WaspAction containing both the specified actions and the actions of
this WaspAction. This method always returns a new SwarmAction.otherActions - the actions to addpublic final SwarmAction add(org.wicketstuff.security.actions.WaspAction other)
WaspAction containing both the specified actions and the actions of
this WaspAction. This method always returns a new SwarmAction.other - the other action(s)public final SwarmAction remove(int otherActions)
WaspAction with all the actions of this action except those specified.otherActions - the actions to removepublic final org.wicketstuff.security.actions.WaspAction remove(org.wicketstuff.security.actions.WaspAction action)
action - the actions to removepublic final org.wicketstuff.security.actions.ActionFactory getActionFactory()
WaspAction.getActionFactory()Copyright © 2006–2019 Apache Software Foundation. All rights reserved.