Enum Class Permission

java.lang.Object
java.lang.Enum<Permission>
org.apache.cassandra.auth.Permission
All Implemented Interfaces:
Serializable, Comparable<Permission>, Constable

public enum Permission extends Enum<Permission>
An enum encapsulating the set of possible permissions that an authenticated user can have on a resource. IAuthorizer implementations may encode permissions using ordinals, so the Enum order must never change order. Adding new values is ok.
  • Enum Constant Details

  • Field Details

    • ALL

      public static final Set<Permission> ALL
    • NONE

      public static final Set<Permission> NONE
    • INVALID_FOR_SYSTEM_KEYSPACES

      public static final Set<Permission> INVALID_FOR_SYSTEM_KEYSPACES
      Set of Permissions which may never be granted on any system keyspace, or table in a system keyspace, to any role. (Only SELECT, DESCRIBE and ALTER may ever be granted).
  • Method Details

    • values

      public static Permission[] 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 Permission 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