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
FieldsModifier and TypeFieldDescriptionstatic final AllowableActionstatic final AllowableActionstatic final AllowableActionstatic final AllowableActionDefault actions mapped to common ACL permissions.static final AllowableAction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(AllowableAction other) booleanstatic AllowableActionConvert aStringinto anAllowableActioninstance.getId()inthashCode()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:
compareToin interfaceComparable<AllowableAction>
-
from
Convert aStringinto anAllowableActioninstance.- Parameters:
id- of the action- Returns:
- instance
-
toAllowableActions
-