public enum RefPermission extends java.lang.Enum<RefPermission>
Enum Constant and Description |
---|
CREATE |
CREATE_CHANGE
Create a change to code review a commit.
|
DELETE |
FORCE_UPDATE |
FORGE_AUTHOR |
FORGE_COMMITTER |
FORGE_SERVER |
MERGE |
READ |
SKIP_VALIDATION |
UPDATE |
UPDATE_BY_SUBMIT
Creates changes, then also immediately submits them during
push . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describeForException() |
java.util.Optional<java.lang.String> |
permissionName() |
static RefPermission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RefPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RefPermission READ
public static final RefPermission CREATE
public static final RefPermission DELETE
public static final RefPermission UPDATE
public static final RefPermission FORCE_UPDATE
public static final RefPermission FORGE_AUTHOR
public static final RefPermission FORGE_COMMITTER
public static final RefPermission FORGE_SERVER
public static final RefPermission MERGE
public static final RefPermission SKIP_VALIDATION
public static final RefPermission CREATE_CHANGE
public static final RefPermission UPDATE_BY_SUBMIT
push
.
This is similar to UPDATE
except it constructs changes first, then submits them
according to the submit strategy, which may include cherry-pick or rebase. By creating changes
for each commit, automatic server side rebase, and post-update review are enabled.
public static RefPermission[] values()
for (RefPermission c : RefPermission.values()) System.out.println(c);
public static RefPermission 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()
project.config
permissions.public java.lang.String describeForException()