Package ru.tehkode.permissions.events
Enum Class PermissionEntityEvent.Action
java.lang.Object
java.lang.Enum<PermissionEntityEvent.Action>
ru.tehkode.permissions.events.PermissionEntityEvent.Action
- All Implemented Interfaces:
Serializable,Comparable<PermissionEntityEvent.Action>,Constable
- Enclosing class:
PermissionEntityEvent
Describes the kind of change applied to a permission entity.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe default group assignment was changed.General entity information (such as display name) was changed.Parent group inheritance was changed.Prefix, suffix, or other metadata options were changed.Direct permission nodes on the entity were added, removed, or changed.The entity's rank within a ladder was changed.The entity was deleted from the backend.Entity data was persisted to the backend.A timed (temporary) permission expired and was removed.The entity's weight (priority) was changed. -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionEntityEvent.ActionReturns the enum constant of this class with the specified name.static PermissionEntityEvent.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PERMISSIONS_CHANGED
Direct permission nodes on the entity were added, removed, or changed. -
OPTIONS_CHANGED
Prefix, suffix, or other metadata options were changed. -
INHERITANCE_CHANGED
Parent group inheritance was changed. -
INFO_CHANGED
General entity information (such as display name) was changed. -
TIMEDPERMISSION_EXPIRED
A timed (temporary) permission expired and was removed. -
RANK_CHANGED
The entity's rank within a ladder was changed. -
DEFAULTGROUP_CHANGED
The default group assignment was changed. -
WEIGHT_CHANGED
The entity's weight (priority) was changed. -
SAVED
Entity data was persisted to the backend. -
REMOVED
The entity was deleted from the backend.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-