public enum ChangePermission extends java.lang.Enum<ChangePermission> implements ChangePermissionOrLabel
Enum Constant and Description |
---|
ABANDON
The change can't be abandoned if its current patch set is locked.
|
ADD_PATCH_SET
A new patch set can't be added if the patch set is locked for the change.
|
DELETE |
EDIT_ASSIGNEE |
EDIT_DESCRIPTION |
EDIT_HASHTAGS |
EDIT_TOPIC_NAME |
READ |
REBASE
The change can't be rebased if its current patch set is locked.
|
REMOVE_REVIEWER |
RESTORE
The change can't be restored if its current patch set is locked.
|
SUBMIT |
SUBMIT_AS |
TOGGLE_WORK_IN_PROGRESS_STATE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describeForException()
A description in the context of an exception message.
|
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
describeEnumValue
public static final ChangePermission READ
public static final ChangePermission RESTORE
Before checking this permission, the caller should first verify the current patch set of the
change is not locked by calling PatchSetUtil.isPatchSetLocked
.
public static final ChangePermission DELETE
public static final ChangePermission ABANDON
Before checking this permission, the caller should first verify the current patch set of the
change is not locked by calling PatchSetUtil.isPatchSetLocked
.
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
Before checking this permission, the caller should first verify the current patch set of the
change is not locked by calling PatchSetUtil.isPatchSetLocked
.
public static final ChangePermission REBASE
Before checking this permission, the caller should first verify the current patch set of the
change is not locked by calling PatchSetUtil.isPatchSetLocked
.
public static final ChangePermission SUBMIT
public static final ChangePermission SUBMIT_AS
public static final ChangePermission TOGGLE_WORK_IN_PROGRESS_STATE
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.lang.String describeForException()
GerritPermission
Should be grammatical when used in the construction "not permitted: [description] on
[resource]", although individual PermissionBackend
implementations may vary the
wording.
describeForException
in interface GerritPermission