Package org.apache.kafka.common.acl
Enum Class AclOperation
- All Implemented Interfaces:
Serializable
,Comparable<AclOperation>
,Constable
Represents an operation which an ACL grants or denies permission to perform.
Some operations imply other operations:
ALLOW ALL
impliesALLOW
everythingDENY ALL
impliesDENY
everythingALLOW READ
impliesALLOW DESCRIBE
ALLOW WRITE
impliesALLOW DESCRIBE
ALLOW DELETE
impliesALLOW DESCRIBE
ALLOW ALTER
impliesALLOW DESCRIBE
ALLOW ALTER_CONFIGS
impliesALLOW DESCRIBE_CONFIGS
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionALL operation.ALTER operation.ALTER_CONFIGS operation.In a filter, matches any AclOperation.CLUSTER_ACTION operation.CREATE operation.CREATE_TOKENS operation.DELETE operation.DESCRIBE operation.DESCRIBE_CONFIGS operation.DESCRIBE_TOKENS operation.IDEMPOTENT_WRITE operation.READ operation.Represents any AclOperation which this client cannot understand, perhaps because this client is too old.WRITE operation. -
Method Summary
Modifier and TypeMethodDescriptionbyte
code()
Return the code of this operation.static AclOperation
fromCode
(byte code) Return the AclOperation with the provided code or `AclOperation.UNKNOWN` if one cannot be found.static AclOperation
fromString
(String str) Parse the given string as an ACL operation.boolean
Return true if this operation is UNKNOWN.static AclOperation
Returns the enum constant of this class with the specified name.static AclOperation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Represents any AclOperation which this client cannot understand, perhaps because this client is too old. -
ANY
In a filter, matches any AclOperation. -
ALL
ALL operation. -
READ
READ operation. -
WRITE
WRITE operation. -
CREATE
CREATE operation. -
DELETE
DELETE operation. -
ALTER
ALTER operation. -
DESCRIBE
DESCRIBE operation. -
CLUSTER_ACTION
CLUSTER_ACTION operation. -
DESCRIBE_CONFIGS
DESCRIBE_CONFIGS operation. -
ALTER_CONFIGS
ALTER_CONFIGS operation. -
IDEMPOTENT_WRITE
IDEMPOTENT_WRITE operation. -
CREATE_TOKENS
CREATE_TOKENS operation. -
DESCRIBE_TOKENS
DESCRIBE_TOKENS operation.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromString
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
Return the AclOperation with the provided code or `AclOperation.UNKNOWN` if one cannot be found. -
code
public byte code()Return the code of this operation. -
isUnknown
public boolean isUnknown()Return true if this operation is UNKNOWN.
-