Enum Class BatchPermissions
- All Implemented Interfaces:
Serializable
,Comparable<BatchPermissions>
,Constable
,Permission
The set of built-in
Permissions
for Batch operations
in Camunda Platform.- Author:
- Yana Vasileva
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that all interactions are permitted.Indicates that CREATE interactions are permitted.Indicates that CREATE_BATCH_CORRELATE_MESSAGE interactions are permittedIndicates that CREATE_BATCH_DELETE_DECISION_INSTANCES interactions are permittedIndicates that CREATE_BATCH_DELETE_FINISHED_PROCESS_INSTANCES interactions are permitted.Indicates that CREATE_BATCH_DELETE_RUNNING_PROCESS_INSTANCES interactions are permittedIndicates that CREATE_BATCH_MIGRATE_PROCESS_INSTANCES interactions are permitted.Indicates that CREATE_BATCH_MODIFY_PROCESS_INSTANCES interactions are permittedIndicates that CREATE_BATCH_RESTART_PROCESS_INSTANCES interactions are permittedIndicates that CREATE_BATCH_SET_EXTERNAL_TASK_RETRIES interactions are permittedIndicates that CREATE_BATCH_SET_JOB_RETRIES interactions are permittedIndicates that CREATE_BATCH_SET_REMOVAL_TIME interactions are permittedIndicates that CREATE_BATCH_SET_VARIABLES interactions are permittedIndicates that CREATE_BATCH_UPDATE_PROCESS_INSTANCES_SUSPEND interactions are permittedIndicates that DELETE interactions are permitted.Indicates that DELETE_HISTORY interactions are permitted.The none permission means 'no action', 'doing nothing'.Indicates that READ interactions are permitted.Indicates that READ_HISTORY interactions are permitted.Indicates that UPDATE interactions are permitted. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Permission
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 BatchPermissions
Returns the enum constant of this class with the specified name.static BatchPermissions[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The none permission means 'no action', 'doing nothing'. It does not mean that no permissions are granted. -
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 UPDATE permission is revoked then the ALL permission is revoked as well, because the user is not authorized to execute all actions anymore. -
READ
Indicates that READ interactions are permitted. -
UPDATE
Indicates that UPDATE interactions are permitted. -
CREATE
Indicates that CREATE interactions are permitted. -
DELETE
Indicates that DELETE interactions are permitted. -
READ_HISTORY
Indicates that READ_HISTORY interactions are permitted. -
DELETE_HISTORY
Indicates that DELETE_HISTORY interactions are permitted. -
CREATE_BATCH_MIGRATE_PROCESS_INSTANCES
Indicates that CREATE_BATCH_MIGRATE_PROCESS_INSTANCES interactions are permitted. -
CREATE_BATCH_MODIFY_PROCESS_INSTANCES
Indicates that CREATE_BATCH_MODIFY_PROCESS_INSTANCES interactions are permitted -
CREATE_BATCH_RESTART_PROCESS_INSTANCES
Indicates that CREATE_BATCH_RESTART_PROCESS_INSTANCES interactions are permitted -
CREATE_BATCH_DELETE_RUNNING_PROCESS_INSTANCES
Indicates that CREATE_BATCH_DELETE_RUNNING_PROCESS_INSTANCES interactions are permitted -
CREATE_BATCH_DELETE_FINISHED_PROCESS_INSTANCES
Indicates that CREATE_BATCH_DELETE_FINISHED_PROCESS_INSTANCES interactions are permitted. -
CREATE_BATCH_DELETE_DECISION_INSTANCES
Indicates that CREATE_BATCH_DELETE_DECISION_INSTANCES interactions are permitted -
CREATE_BATCH_SET_JOB_RETRIES
Indicates that CREATE_BATCH_SET_JOB_RETRIES interactions are permitted -
CREATE_BATCH_SET_EXTERNAL_TASK_RETRIES
Indicates that CREATE_BATCH_SET_EXTERNAL_TASK_RETRIES interactions are permitted -
CREATE_BATCH_UPDATE_PROCESS_INSTANCES_SUSPEND
Indicates that CREATE_BATCH_UPDATE_PROCESS_INSTANCES_SUSPEND interactions are permitted -
CREATE_BATCH_SET_REMOVAL_TIME
Indicates that CREATE_BATCH_SET_REMOVAL_TIME interactions are permitted -
CREATE_BATCH_SET_VARIABLES
Indicates that CREATE_BATCH_SET_VARIABLES interactions are permitted -
CREATE_BATCH_CORRELATE_MESSAGE
Indicates that CREATE_BATCH_CORRELATE_MESSAGE interactions are permitted
-
-
Field Details
-
RESOURCES
-
name
-
id
protected int id
-
-
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
-
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
Description copied from interface:Permission
returns the resource types which are allowed for this permission- Specified by:
getTypes
in interfacePermission
-
forName
-