public enum TaskPermissions extends Enum<TaskPermissions> implements Permission
Permissions
for Task
in Camunda BPM.Enum Constant and Description |
---|
ALL
Indicates that all interactions are permitted.
|
CREATE
Indicates that CREATE interactions are permitted.
|
DELETE
Indicates that DELETE interactions are permitted.
|
NONE
The none permission means 'no action', 'doing nothing'.
|
READ
Indicates that READ interactions are permitted.
|
READ_HISTORY
Indicates that READ_HISTORY interactions are permitted.
|
READ_VARIABLE
Indicates that READ_VARIABLE interactions are permitted.
|
TASK_ASSIGN
Indicates that TASK_ASSIGN interactions are permitted
|
TASK_WORK
Indicates that TASK_WORK interactions are permitted
|
UPDATE
Indicates that UPDATE interactions are permitted.
|
UPDATE_VARIABLE
Indicates that UPDATE_VARIABLE interactions are permitted.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
returns the name of the permission, ie.
|
Resource[] |
getTypes()
returns the resource types which are allowed for this permission
|
int |
getValue()
returns the unique numeric value of the permission.
|
static TaskPermissions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskPermissions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskPermissions NONE
public static final TaskPermissions ALL
public static final TaskPermissions READ
public static final TaskPermissions UPDATE
public static final TaskPermissions CREATE
public static final TaskPermissions DELETE
public static final TaskPermissions READ_HISTORY
public static final TaskPermissions TASK_WORK
public static final TaskPermissions TASK_ASSIGN
public static final TaskPermissions UPDATE_VARIABLE
public static final TaskPermissions READ_VARIABLE
public static TaskPermissions[] values()
for (TaskPermissions c : TaskPermissions.values()) System.out.println(c);
public static TaskPermissions valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
Permission
getName
in interface Permission
public int getValue()
Permission
getValue
in interface Permission
public Resource[] getTypes()
Permission
getTypes
in interface Permission
Copyright © 2022. All rights reserved.