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 ALLimplies- ALLOWeverything
- DENY ALLimplies- DENYeverything
- ALLOW READimplies- ALLOW DESCRIBE
- ALLOW WRITEimplies- ALLOW DESCRIBE
- ALLOW DELETEimplies- ALLOW DESCRIBE
- ALLOW ALTERimplies- ALLOW DESCRIBE
- ALLOW ALTER_CONFIGSimplies- ALLOW DESCRIBE_CONFIGS
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionbytecode()Return the code of this operation.static AclOperationfromCode(byte code) Return the AclOperation with the provided code or `AclOperation.UNKNOWN` if one cannot be found.static AclOperationfromString(String str) Parse the given string as an ACL operation.booleanReturn true if this operation is UNKNOWN.static AclOperationReturns 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.Methods inherited from class java.lang.EnumcompareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
- 
Enum Constant Details- 
UNKNOWNRepresents any AclOperation which this client cannot understand, perhaps because this client is too old.
- 
ANYIn a filter, matches any AclOperation.
- 
ALLALL operation.
- 
READREAD operation.
- 
WRITEWRITE operation.
- 
CREATECREATE operation.
- 
DELETEDELETE operation.
- 
ALTERALTER operation.
- 
DESCRIBEDESCRIBE operation.
- 
CLUSTER_ACTIONCLUSTER_ACTION operation.
- 
DESCRIBE_CONFIGSDESCRIBE_CONFIGS operation.
- 
ALTER_CONFIGSALTER_CONFIGS operation.
- 
IDEMPOTENT_WRITEIDEMPOTENT_WRITE operation.
- 
CREATE_TOKENSCREATE_TOKENS operation.
- 
DESCRIBE_TOKENSDESCRIBE_TOKENS operation.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
fromStringParse 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
 
- 
fromCodeReturn the AclOperation with the provided code or `AclOperation.UNKNOWN` if one cannot be found.
- 
codepublic byte code()Return the code of this operation.
- 
isUnknownpublic boolean isUnknown()Return true if this operation is UNKNOWN.
 
-