Class AllowableAction
java.lang.Object
com.foreach.across.modules.spring.security.actions.AllowableAction
- All Implemented Interfaces:
Comparable<AllowableAction>
An abstraction of a single action that can be performed on an item.
Because an action is in essence a simple unique string, the system can easily be extended.
- Author:
- Arne Vandamme
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AllowableAction
static final AllowableAction
static final AllowableAction
static final AllowableAction
Default actions mapped to common ACL permissions.static final AllowableAction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(AllowableAction other) boolean
static AllowableAction
Convert aString
into anAllowableAction
instance.getId()
int
hashCode()
static Collection<AllowableAction>
toAllowableActions
(String... ids)
-
Field Details
-
READ
Default actions mapped to common ACL permissions. -
UPDATE
-
CREATE
-
DELETE
-
ADMINISTER
-
-
Constructor Details
-
AllowableAction
-
-
Method Details
-
getId
- Returns:
- Unique id of the action.
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<AllowableAction>
-
from
Convert aString
into anAllowableAction
instance.- Parameters:
id
- of the action- Returns:
- instance
-
toAllowableActions
-