Package com.google.gerrit.server
Enum AccessPath
- java.lang.Object
-
- java.lang.Enum<AccessPath>
-
- com.google.gerrit.server.AccessPath
-
- All Implemented Interfaces:
Serializable
,Comparable<AccessPath>
public enum AccessPath extends Enum<AccessPath>
How theCurrentUser
is accessing Gerrit.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GIT
Access from a Git client using any Git protocol.REST_API
Access through the REST API.SSH_COMMAND
Access through an SSH command that is not invoked by Git.UNKNOWN
An unknown access path, probably should not be special.WEB_BROWSER
Access by a web cookie.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AccessPath
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccessPath[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final AccessPath UNKNOWN
An unknown access path, probably should not be special.
-
REST_API
public static final AccessPath REST_API
Access through the REST API.
-
WEB_BROWSER
public static final AccessPath WEB_BROWSER
Access by a web cookie. This path is not protected like REST_API.
-
SSH_COMMAND
public static final AccessPath SSH_COMMAND
Access through an SSH command that is not invoked by Git.
-
GIT
public static final AccessPath GIT
Access from a Git client using any Git protocol.
-
-
Method Detail
-
values
public static AccessPath[] 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 (AccessPath c : AccessPath.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessPath 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
-
-