wicket.authorization
Class Action

java.lang.Object
  extended by wicket.authorization.Action
All Implemented Interfaces:
java.io.Serializable

public class Action
extends java.lang.Object
implements java.io.Serializable

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.

Since:
1.2
Author:
Eelco Hillenius, Jonathan Locke
See Also:
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

RENDER

public static final java.lang.String RENDER
RENDER action name (for consistent name and use in annotations).

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)
 

See Also:
Constant Field Values

ENABLE

public static final java.lang.String ENABLE
ENABLE action name (for consistent name and use in annotations).

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)
 

See Also:
Constant Field Values
Constructor Detail

Action

public Action(java.lang.String name)
Construct.

Parameters:
name - The name of this action for debug purposes
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getName

public java.lang.String getName()
Returns:
The name of this action

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2004-2007 Wicket developers. All Rights Reserved.