public enum Permission extends Enum<Permission>
Modifier and Type | Class and Description |
---|---|
static class |
Permission.Entity |
Enum Constant and Description |
---|
ADMIN |
BUILD |
CLONE |
DEPLOY |
EDIT |
VIEW |
VIEW_CONFIGURATION |
Modifier and Type | Method and Description |
---|---|
static @NotNull Permission |
byLabel(String label,
Permission.Entity entity) |
static @NotNull Permission |
forDeploymentPermission(@NotNull com.atlassian.bamboo.specs.api.builders.permission.PermissionType permissionType) |
static @NotNull Permission |
forPermission(@NotNull com.atlassian.bamboo.specs.api.builders.permission.PermissionType permissionType) |
String |
getLabel() |
boolean |
supports(Permission.Entity entity) |
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 VIEW
public static final Permission EDIT
public static final Permission DEPLOY
public static final Permission BUILD
public static final Permission CLONE
public static final Permission ADMIN
public static final Permission VIEW_CONFIGURATION
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 null@NotNull public static @NotNull Permission byLabel(String label, Permission.Entity entity)
@NotNull public static @NotNull Permission forDeploymentPermission(@NotNull @NotNull com.atlassian.bamboo.specs.api.builders.permission.PermissionType permissionType)
@NotNull public static @NotNull Permission forPermission(@NotNull @NotNull com.atlassian.bamboo.specs.api.builders.permission.PermissionType permissionType)
public String getLabel()
public boolean supports(Permission.Entity entity)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.