Enum PermissionType
- java.lang.Object
-
- java.lang.Enum<PermissionType>
-
- com.atlassian.bamboo.specs.api.builders.permission.PermissionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PermissionType>
public enum PermissionType extends java.lang.Enum<PermissionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMINAPPROVE_RELEASEAllows approving deployment releases.BUILDCLONECREATECREATE_REPOSITORYDELETEEDITVIEWVIEW_CONFIGURATIONAllows viewing configuration of plans and deployments.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PermissionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PermissionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VIEW
public static final PermissionType VIEW
-
EDIT
public static final PermissionType EDIT
-
CREATE
public static final PermissionType CREATE
-
CREATE_REPOSITORY
public static final PermissionType CREATE_REPOSITORY
-
DELETE
public static final PermissionType DELETE
-
BUILD
public static final PermissionType BUILD
-
CLONE
public static final PermissionType CLONE
-
ADMIN
public static final PermissionType ADMIN
-
VIEW_CONFIGURATION
public static final PermissionType VIEW_CONFIGURATION
Allows viewing configuration of plans and deployments. Bamboo DC only: converts to VIEW when used on instance with Server license.
-
APPROVE_RELEASE
public static final PermissionType APPROVE_RELEASE
Allows approving deployment releases.
-
-
Method Detail
-
values
public static PermissionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PermissionType c : PermissionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-