public enum ChangePermission extends java.lang.Enum<ChangePermission> implements ChangePermissionOrLabel
Enum Constant and Description |
---|
ABANDON |
ADD_PATCH_SET |
DELETE |
EDIT_ASSIGNEE |
EDIT_DESCRIPTION |
EDIT_HASHTAGS |
EDIT_TOPIC_NAME |
READ |
REBASE |
REMOVE_REVIEWER |
RESTORE |
SUBMIT |
SUBMIT_AS |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describeForException() |
java.util.Optional<java.lang.String> |
permissionName() |
static ChangePermission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChangePermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChangePermission READ
public static final ChangePermission RESTORE
public static final ChangePermission DELETE
public static final ChangePermission ABANDON
public static final ChangePermission EDIT_ASSIGNEE
public static final ChangePermission EDIT_DESCRIPTION
public static final ChangePermission EDIT_HASHTAGS
public static final ChangePermission EDIT_TOPIC_NAME
public static final ChangePermission REMOVE_REVIEWER
public static final ChangePermission ADD_PATCH_SET
public static final ChangePermission REBASE
public static final ChangePermission SUBMIT
public static final ChangePermission SUBMIT_AS
public static ChangePermission[] values()
for (ChangePermission c : ChangePermission.values()) System.out.println(c);
public static ChangePermission valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.Optional<java.lang.String> permissionName()
permissionName
in interface ChangePermissionOrLabel
project.config
permissions.public java.lang.String describeForException()
describeForException
in interface ChangePermissionOrLabel