org.apache.wicket.authorization
Class Action

java.lang.Object
  extended by org.apache.wicket.util.string.StringValue
      extended by org.apache.wicket.util.lang.EnumeratedType
          extended by org.apache.wicket.authorization.Action
All Implemented Interfaces:
java.io.Serializable, IClusterable

public class Action
extends EnumeratedType

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
 java.lang.String getName()
           
 
Methods inherited from class org.apache.wicket.util.lang.EnumeratedType
getValues, readResolve
 
Methods inherited from class org.apache.wicket.util.string.StringValue
afterFirst, afterLast, beforeFirst, beforeLast, isEmpty, isNull, repeat, repeat, replaceAll, to, toBoolean, toBoolean, toBooleanObject, toChar, toChar, toCharacter, toDouble, toDouble, toDoubleObject, toDuration, toDuration, toInt, toInt, toInteger, toLong, toLong, toLongObject, toOptionalBoolean, toOptionalCharacter, toOptionalDouble, toOptionalDuration, toOptionalInteger, toOptionalLong, toOptionalString, toOptionalTime, toString, toString, toTime, toTime, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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

getName

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


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.