|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.authorization.Action
public class Action
A class for constructing singleton constants that represent a given component action that needs to be authorized. The Wicket core framework defines Component.RENDER and Component.ENABLE actions, but future versions of the framework may add more actions and user defined components can define their own actions as well.
Component.RENDER,
Component.ENABLE,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
ENABLE
ENABLE action name (for consistent name and use in annotations). |
static java.lang.String |
RENDER
RENDER action name (for consistent name and use in annotations). |
| Constructor Summary | |
|---|---|
Action(java.lang.String name)
Construct. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RENDER
DO NOT use for equals on Action, like
action.equals(Action.RENDER)as you'll compare an action with a string. Rather, do:
action.equals(Component.RENDER)
public static final java.lang.String ENABLE
DO NOT use for equals on Action, like
action.equals(Action.ENABLE)as you'll compare an action with a string. Rather, do:
action.equals(Component.ENABLE)
| Constructor Detail |
|---|
public Action(java.lang.String name)
name - The name of this action for debug purposes| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.lang.String getName()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||