Package org.xwiki.resource.entity
Class EntityResourceAction
- java.lang.Object
-
- org.xwiki.resource.entity.EntityResourceAction
-
public class EntityResourceAction extends Object
Represents the action to be executed on an Entity Resource (eg "view", "delete", "get", etc).- Since:
- 6.1M2
- Version:
- $Id: 656d0d614c488276966e592939311e32ec008c3f $
-
-
Field Summary
Fields Modifier and Type Field Description static EntityResourceAction
VIEW
The View Action.
-
Constructor Summary
Constructors Constructor Description EntityResourceAction(String actionName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
static EntityResourceAction
fromString(String actionName)
Converts a string to anEntityResourceAction
instance.String
getActionName()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
VIEW
public static final EntityResourceAction VIEW
The View Action.
-
-
Constructor Detail
-
EntityResourceAction
public EntityResourceAction(String actionName)
- Parameters:
actionName
- seegetActionName()
-
-
Method Detail
-
fromString
public static EntityResourceAction fromString(String actionName)
Converts a string to anEntityResourceAction
instance.- Parameters:
actionName
- seegetActionName()
- Returns:
- the object representing the action passed as a string
-
getActionName
public String getActionName()
- Returns:
- the action name (eg "view")
-
-