Package de.xima.fc.persistence.driver
Enum DriverPermissionAction
- java.lang.Object
-
- java.lang.Enum<DriverPermissionAction>
-
- de.xima.fc.persistence.driver.DriverPermissionAction
-
- All Implemented Interfaces:
Serializable,Comparable<DriverPermissionAction>
public enum DriverPermissionAction extends Enum<DriverPermissionAction>
Defines actions for which permissions can be checked regarding driver management.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DriverPermissionActionvalueOf(String name)Returns the enum constant of this type with the specified name.static DriverPermissionAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READ
public static final DriverPermissionAction READ
Permission to read or view a driver or its settings.
-
CREATE
public static final DriverPermissionAction CREATE
Permission to create / upload a driver.
-
DELETE
public static final DriverPermissionAction DELETE
Permission to delete an existing driver.
-
-
Method Detail
-
values
public static DriverPermissionAction[] 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 (DriverPermissionAction c : DriverPermissionAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DriverPermissionAction 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
-
-