public enum AccessTokenPermission extends Enum<AccessTokenPermission>
Enum Constant and Description |
---|
READ
Grants read-only access to the token.
|
TRIGGER
Grants permission to trigger builds and deployments in Bamboo.
|
USER
Grants all the permissions that the granting user has.
|
Modifier and Type | Method and Description |
---|---|
static AccessTokenPermission |
forName(String name)
Return an access token permission type for the given name.
|
List<AccessTokenPermission> |
getDependencies()
A list of permissions which must also be granted to grant this permission.
|
int |
getMask()
Bits that represents this permission.
|
static AccessTokenPermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessTokenPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessTokenPermission READ
public static final AccessTokenPermission TRIGGER
public static final AccessTokenPermission USER
public static AccessTokenPermission[] values()
for (AccessTokenPermission c : AccessTokenPermission.values()) System.out.println(c);
public static AccessTokenPermission 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 null@Nullable public static AccessTokenPermission forName(@NotNull String name)
name
- name of the permission typepublic int getMask()
public List<AccessTokenPermission> getDependencies()
This is not an effective list - to obtain a full list of dependent permissions, the result must be traversed and subsequent dependencies must be recursively included.
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.