|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wicketstuff.security.actions.AbstractWaspAction
org.wicketstuff.security.swarm.actions.SwarmAction
public class SwarmAction
Immutable 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| Constructor Summary | |
|---|---|
protected |
SwarmAction(int action,
String name,
Object key)
The default constructor for actions. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.wicketstuff.security.actions.AbstractWaspAction |
|---|
getName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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
object| Method Detail |
|---|
public 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 action
public 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 add
public 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 remove
public final org.wicketstuff.security.actions.WaspAction remove(org.wicketstuff.security.actions.WaspAction action)
action - the actions to remove
public final org.wicketstuff.security.actions.ActionFactory getActionFactory()
WaspAction.getActionFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||