public enum Permission extends Enum<Permission>
| Enum Constant and Description |
|---|
REPO_ADMIN
Allows to administer a repository.
|
REPO_READ
Allows read access to a repository.
|
REPO_WRITE
Allows write access to a repository.
|
| Modifier and Type | Method and Description |
|---|---|
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Permission REPO_READ
This allows cloning and pulling changes from a repository, adding comments and declining pull requests that target the repository. It also allows creating pull requests if the user has the permission on both the source and target repository. See com.atlassian.stash.user.Permission.REPO_READ
public static final Permission REPO_WRITE
In addition to the permissions already granted by REPO_READ, this allows pushing changes
to a repository and merging pull requests targeting the repository.
See com.atlassian.stash.user.Permission.REPO_WRITE
public static final Permission REPO_ADMIN
In addition to the permissions already granted by REPO_WRITE, this allows accessing and updating
the configuration of the repository, such as adding or revoking branch permissions, adding or revoking other
repository permissions, renaming or deleting the repository.
See com.atlassian.stash.user.Permission.REPO_ADMIN
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission 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 nullCopyright © 2020 Atlassian. All rights reserved.