Enum Class RepositoryRole

java.lang.Object
java.lang.Enum<RepositoryRole>
com.linecorp.centraldogma.common.RepositoryRole
All Implemented Interfaces:
Serializable, Comparable<RepositoryRole>, Constable

public enum RepositoryRole extends Enum<RepositoryRole>
Roles for a repository.
  • Enum Constant Details

    • READ

      public static final RepositoryRole READ
      Able to read a file from a repository.
    • WRITE

      public static final RepositoryRole WRITE
      Able to write a file to a repository.
    • ADMIN

      public static final RepositoryRole ADMIN
      Able to manage a repository.
  • Method Details

    • values

      public static RepositoryRole[] 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 RepositoryRole 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
    • has

      public boolean has(RepositoryRole other)
      Returns true if this RepositoryRole has the specified RepositoryRole.