public enum AclState extends Enum<AclState>
| Enum Constant and Description |
|---|
ACTIVERepresents the active state of an ACL. |
ANYUsed in delete/describe requests when we want to work with ACLs independent of their state |
DELETEDRepresents the inactive state of an ACL When an ACL is soft-deleted, it's state changes to this. |
UNKNOWNRepresents any AclOperation which this client cannot understand, perhaps because this client is too old. |
| Modifier and Type | Method and Description |
|---|---|
byte | code()Return the code of this operation. |
static AclState | fromCode(byte code)Returns the AclState with the provided code. |
boolean | isActive()Returns true if the ACL is an active ACL. |
boolean | isDeleted()Returns true if the ACL is deleted and is in inactive state. |
boolean | isUnknown()Returns true if the ACL is in Unknown State |
static AclState | valueOf(String name)Returns the enum constant of this type with the specified name. |
static AclState[] | values()Returns an array containing the constants of this enum type, in the order they are declared. |
public static final AclState UNKNOWN
public static final AclState ACTIVE
public static final AclState DELETED
public static final AclState ANY
public static AclState[] values()
for (AclState c : AclState.values()) System.out.println(c);
public static AclState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic byte code()
public static AclState fromCode(byte code)
public boolean isActive()
public boolean isDeleted()
public boolean isUnknown()