Enum HistoricTaskPermissions
- java.lang.Object
-
- java.lang.Enum<HistoricTaskPermissions>
-
- org.camunda.bpm.engine.authorization.HistoricTaskPermissions
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HistoricTaskPermissions>
,Permission
public enum HistoricTaskPermissions extends java.lang.Enum<HistoricTaskPermissions> implements Permission
The set of built-inPermissions
forHistoric Task
in Camunda Platform.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
Indicates that all interactions are permitted.NONE
The none permission means 'no action', 'doing nothing'.READ
Indicates that READ interactions are permitted.READ_VARIABLE
Indicates that READ_VARIABLE interactions are permitted.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
returns the name of the permission, ie.Resource[]
getTypes()
returns the resource types which are allowed for this permissionint
getValue()
returns the unique numeric value of the permission.static HistoricTaskPermissions
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HistoricTaskPermissions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final HistoricTaskPermissions NONE
The none permission means 'no action', 'doing nothing'. It does not mean that no permissions are granted.
-
ALL
public static final HistoricTaskPermissions ALL
Indicates that all interactions are permitted. If ALL is revoked it means that the user is not permitted to do everything, which means that at least one permission is revoked. This does not implicate that all individual permissions are revoked. Example: If the READ permission is revoked then the ALL permission is revoked as well, because the user is not authorized to execute all actions anymore.
-
READ
public static final HistoricTaskPermissions READ
Indicates that READ interactions are permitted.
-
READ_VARIABLE
public static final HistoricTaskPermissions READ_VARIABLE
Indicates that READ_VARIABLE interactions are permitted.
-
-
Field Detail
-
RESOURCES
protected static final Resource[] RESOURCES
-
name
protected java.lang.String name
-
id
protected int id
-
-
Method Detail
-
values
public static HistoricTaskPermissions[] 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 (HistoricTaskPermissions c : HistoricTaskPermissions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HistoricTaskPermissions valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
Description copied from interface:Permission
returns the name of the permission, ie. 'UPDATE'- Specified by:
getName
in interfacePermission
-
getValue
public int getValue()
Description copied from interface:Permission
returns the unique numeric value of the permission. Must be a power of 2. ie 2^0, 2^1, 2^2, 2^3, 2^4 ...- Specified by:
getValue
in interfacePermission
-
getTypes
public Resource[] getTypes()
Description copied from interface:Permission
returns the resource types which are allowed for this permission- Specified by:
getTypes
in interfacePermission
-
-