Enum SpaceScope
- java.lang.Object
-
- java.lang.Enum<SpaceScope>
-
- jetbrains.buildServer.serverSide.oauth.space.SpaceScope
-
- All Implemented Interfaces:
Serializable
,Comparable<SpaceScope>
public enum SpaceScope extends Enum<SpaceScope>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PROFILE_VIEW
PROJECT_ADMIN
PROJECT_VIEW
VCS_REPOSITORY_READ
VCS_REPOSITORY_WRITE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<SpaceScope>
find(String value)
String
getApiValue()
static String
toScopeList(Set<SpaceScope> scopes)
static SpaceScope
valueOf(String name)
Returns the enum constant of this type with the specified name.static SpaceScope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROFILE_VIEW
public static final SpaceScope PROFILE_VIEW
-
PROJECT_VIEW
public static final SpaceScope PROJECT_VIEW
-
PROJECT_ADMIN
public static final SpaceScope PROJECT_ADMIN
-
VCS_REPOSITORY_READ
public static final SpaceScope VCS_REPOSITORY_READ
-
VCS_REPOSITORY_WRITE
public static final SpaceScope VCS_REPOSITORY_WRITE
-
-
Method Detail
-
values
public static SpaceScope[] 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 (SpaceScope c : SpaceScope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpaceScope valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
find
@NotNull public static Optional<SpaceScope> find(@NotNull String value)
-
toScopeList
@NotNull public static String toScopeList(@NotNull Set<SpaceScope> scopes)
-
getApiValue
@NotNull public String getApiValue()
-
-