Enum PermissionAction
- java.lang.Object
-
- java.lang.Enum<PermissionAction>
-
- de.xima.fc.certificate.ms.impl.authorization.PermissionAction
-
- All Implemented Interfaces:
Serializable,Comparable<PermissionAction>
public enum PermissionAction extends Enum<PermissionAction>
Enum representing various permission actions that can be performed on entities.This enum is used to define the types of actions that can be checked for user permissions.
- Since:
- 8.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PermissionActionvalueOf(String name)Returns the enum constant of this type with the specified name.static PermissionAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READ
public static final PermissionAction READ
Permission to read or view the entity. This includes exporting data or viewing details.
-
CREATE
public static final PermissionAction CREATE
Permission to create a new entity.
-
UPDATE
public static final PermissionAction UPDATE
Permission to update an existing entity.
-
DELETE
public static final PermissionAction DELETE
Permission to delete an existing entity.
-
-
Method Detail
-
values
public static PermissionAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PermissionAction c : PermissionAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionAction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-