Enum TokenStorageQuery.UserMatchMode
- java.lang.Object
-
- java.lang.Enum<TokenStorageQuery.UserMatchMode>
-
- jetbrains.buildServer.serverSide.oauth.TokenStorageQuery.UserMatchMode
-
- All Implemented Interfaces:
Serializable
,Comparable<TokenStorageQuery.UserMatchMode>
- Enclosing class:
- TokenStorageQuery
public static enum TokenStorageQuery.UserMatchMode extends Enum<TokenStorageQuery.UserMatchMode>
Determines how the token user will be matched against the storage query.- Since:
- 2024.07
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXACTLY
The user ID of the token record must match the query's user exactly.MATCH_OR_UNKNOWN
The user ID of the token record can match the query's user or be a special value to indicate "unknown user".
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TokenStorageQuery.UserMatchMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static TokenStorageQuery.UserMatchMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXACTLY
public static final TokenStorageQuery.UserMatchMode EXACTLY
The user ID of the token record must match the query's user exactly.
-
MATCH_OR_UNKNOWN
public static final TokenStorageQuery.UserMatchMode MATCH_OR_UNKNOWN
The user ID of the token record can match the query's user or be a special value to indicate "unknown user".
-
-
Method Detail
-
values
public static TokenStorageQuery.UserMatchMode[] 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 (TokenStorageQuery.UserMatchMode c : TokenStorageQuery.UserMatchMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TokenStorageQuery.UserMatchMode 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
-
-