public enum AccessPath extends Enum<AccessPath>
CurrentUser
is accessing Gerrit.Enum Constant and Description |
---|
GIT
Access from a Git client using any Git protocol.
|
JSON_RPC
Access through the old JSON-RPC interface.
|
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.
|
Modifier and Type | Method and 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.
|
public static final AccessPath UNKNOWN
public static final AccessPath REST_API
public static final AccessPath JSON_RPC
public static final AccessPath WEB_BROWSER
public static final AccessPath SSH_COMMAND
public static final AccessPath GIT
public static AccessPath[] values()
for (AccessPath c : AccessPath.values()) System.out.println(c);
public static AccessPath 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