Enum Permissions
- java.lang.Object
-
- java.lang.Enum<Permissions>
-
- org.camunda.bpm.engine.authorization.Permissions
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Permissions>,Permission
public enum Permissions extends java.lang.Enum<Permissions> implements Permission
The set of built-inPermissionsfor Camunda Platform.- Author:
- Daniel Meyer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESSIndicates that ACCESS interactions are permitted.ALLIndicates that all interactions are permitted.CREATEIndicates that CREATE interactions are permitted.CREATE_INSTANCEIndicates that CREATE_INSTANCE interactions are permitted.DELETEIndicates that DELETE interactions are permitted.DELETE_HISTORYIndicates that DELETE_HISTORY interactions are permitted.DELETE_INSTANCEIndicates that DELETE_INSTANCE interactions are permitted.MIGRATE_INSTANCEIndicates that MIGRATE_INSTANCE interactions are permittedNONEThe none permission means 'no action', 'doing nothing'.READIndicates that READ interactions are permitted.READ_HISTORYIndicates that READ_HISTORY interactions are permitted.READ_INSTANCEIndicates that READ_INSTANCE interactions are permitted.READ_TASKIndicates that READ_TASK interactions are permitted.TASK_ASSIGNIndicates that TASK_ASSIGN interactions are permittedTASK_WORKIndicates that TASK_WORK interactions are permittedUPDATEIndicates that UPDATE interactions are permitted.UPDATE_INSTANCEIndicates that UPDATE_INSTANCE interactions are permitted.UPDATE_TASKIndicates that UPDATE_TASK interactions are permitted.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PermissionforName(java.lang.String name)java.lang.StringgetName()returns the name of the permission, ie.Resource[]getTypes()returns the resource types which are allowed for this permissionintgetValue()returns the unique numeric value of the permission.java.lang.StringtoString()static PermissionsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Permissions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Permissions NONE
The none permission means 'no action', 'doing nothing'. It does not mean that no permissions are granted.
-
ALL
public static final Permissions 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
public static final Permissions READ
Indicates that READ interactions are permitted.
-
UPDATE
public static final Permissions UPDATE
Indicates that UPDATE interactions are permitted.
-
CREATE
public static final Permissions CREATE
Indicates that CREATE interactions are permitted.
-
DELETE
public static final Permissions DELETE
Indicates that DELETE interactions are permitted.
-
ACCESS
public static final Permissions ACCESS
Indicates that ACCESS interactions are permitted.
-
READ_TASK
public static final Permissions READ_TASK
Indicates that READ_TASK interactions are permitted.
-
UPDATE_TASK
public static final Permissions UPDATE_TASK
Indicates that UPDATE_TASK interactions are permitted.
-
CREATE_INSTANCE
public static final Permissions CREATE_INSTANCE
Indicates that CREATE_INSTANCE interactions are permitted.
-
READ_INSTANCE
public static final Permissions READ_INSTANCE
Indicates that READ_INSTANCE interactions are permitted.
-
UPDATE_INSTANCE
public static final Permissions UPDATE_INSTANCE
Indicates that UPDATE_INSTANCE interactions are permitted.
-
DELETE_INSTANCE
public static final Permissions DELETE_INSTANCE
Indicates that DELETE_INSTANCE interactions are permitted.
-
READ_HISTORY
public static final Permissions READ_HISTORY
Indicates that READ_HISTORY interactions are permitted.
There is no built-in functionality of Camunda Platform that uses the permission together with the resource
Resources.TASK
-
DELETE_HISTORY
public static final Permissions DELETE_HISTORY
Indicates that DELETE_HISTORY interactions are permitted.
-
TASK_WORK
public static final Permissions TASK_WORK
Indicates that TASK_WORK interactions are permitted
-
TASK_ASSIGN
public static final Permissions TASK_ASSIGN
Indicates that TASK_ASSIGN interactions are permitted
-
MIGRATE_INSTANCE
public static final Permissions MIGRATE_INSTANCE
Indicates that MIGRATE_INSTANCE interactions are permitted
-
-
Method Detail
-
values
public static Permissions[] 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 (Permissions c : Permissions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Permissions 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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<Permissions>
-
getName
public java.lang.String getName()
Description copied from interface:Permissionreturns the name of the permission, ie. 'UPDATE'- Specified by:
getNamein interfacePermission
-
getValue
public int getValue()
Description copied from interface:Permissionreturns 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:
getValuein interfacePermission
-
getTypes
public Resource[] getTypes()
Description copied from interface:Permissionreturns the resource types which are allowed for this permission- Specified by:
getTypesin interfacePermission
-
forName
public static Permission forName(java.lang.String name)
-
-