Package com.atlassian.bamboo.accesstoken
Enum Class AccessTokenPermission
- All Implemented Interfaces:
Serializable
,Comparable<AccessTokenPermission>
,Constable
Permission that is granted to the access token.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable AccessTokenPermission
Return an access token permission type for the given name.A list of permissions which must also be granted to grant this permission.int
getMask()
Bits that represents this permission.static AccessTokenPermission
Returns the enum constant of this class with the specified name.static AccessTokenPermission[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
forName
Return an access token permission type for the given name. Does a case-insensitive check.- Parameters:
name
- name of the permission type- Returns:
- the given permission or null if not found
-
getMask
public int getMask()Bits that represents this permission. Must be unique so that two permissions never have the same bits set. -
getDependencies
A list of permissions which must also be granted to grant this permission.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.
-