Enum Class AclOperation

java.lang.Object
java.lang.Enum<AclOperation>
org.apache.kafka.common.acl.AclOperation
All Implemented Interfaces:
Serializable, Comparable<AclOperation>, Constable

public enum AclOperation extends Enum<AclOperation>
Represents an operation which an ACL grants or denies permission to perform. Some operations imply other operations:
  • ALLOW ALL implies ALLOW everything
  • DENY ALL implies DENY everything
  • ALLOW READ implies ALLOW DESCRIBE
  • ALLOW WRITE implies ALLOW DESCRIBE
  • ALLOW DELETE implies ALLOW DESCRIBE
  • ALLOW ALTER implies ALLOW DESCRIBE
  • ALLOW ALTER_CONFIGS implies ALLOW DESCRIBE_CONFIGS
  • Enum Constant Details Link icon

    • UNKNOWN Link icon

      public static final AclOperation UNKNOWN
      Represents any AclOperation which this client cannot understand, perhaps because this client is too old.
    • ANY Link icon

      public static final AclOperation ANY
      In a filter, matches any AclOperation.
    • ALL Link icon

      public static final AclOperation ALL
      ALL operation.
    • READ Link icon

      public static final AclOperation READ
      READ operation.
    • WRITE Link icon

      public static final AclOperation WRITE
      WRITE operation.
    • CREATE Link icon

      public static final AclOperation CREATE
      CREATE operation.
    • DELETE Link icon

      public static final AclOperation DELETE
      DELETE operation.
    • ALTER Link icon

      public static final AclOperation ALTER
      ALTER operation.
    • DESCRIBE Link icon

      public static final AclOperation DESCRIBE
      DESCRIBE operation.
    • CLUSTER_ACTION Link icon

      public static final AclOperation CLUSTER_ACTION
      CLUSTER_ACTION operation.
    • DESCRIBE_CONFIGS Link icon

      public static final AclOperation DESCRIBE_CONFIGS
      DESCRIBE_CONFIGS operation.
    • ALTER_CONFIGS Link icon

      public static final AclOperation ALTER_CONFIGS
      ALTER_CONFIGS operation.
    • IDEMPOTENT_WRITE Link icon

      public static final AclOperation IDEMPOTENT_WRITE
      IDEMPOTENT_WRITE operation.
    • CREATE_TOKENS Link icon

      public static final AclOperation CREATE_TOKENS
      CREATE_TOKENS operation.
    • DESCRIBE_TOKENS Link icon

      public static final AclOperation DESCRIBE_TOKENS
      DESCRIBE_TOKENS operation.
  • Method Details Link icon

    • values Link icon

      public static AclOperation[] 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 Link icon

      public static AclOperation 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
    • fromString Link icon

      public static AclOperation fromString(String str) throws IllegalArgumentException
      Parse the given string as an ACL operation.
      Parameters:
      str - The string to parse.
      Returns:
      The AclOperation, or UNKNOWN if the string could not be matched.
      Throws:
      IllegalArgumentException
    • fromCode Link icon

      public static AclOperation fromCode(byte code)
      Return the AclOperation with the provided code or `AclOperation.UNKNOWN` if one cannot be found.
    • code Link icon

      public byte code()
      Return the code of this operation.
    • isUnknown Link icon

      public boolean isUnknown()
      Return true if this operation is UNKNOWN.