Enum Class AccessPath

java.lang.Object
java.lang.Enum<AccessPath>
com.google.gerrit.server.AccessPath
All Implemented Interfaces:
Serializable, Comparable<AccessPath>, java.lang.constant.Constable

public enum AccessPath extends Enum<AccessPath>
How the CurrentUser is accessing Gerrit.
  • Enum Constant Details

    • 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 Details

    • values

      public static AccessPath[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AccessPath valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null