public enum BasicACLPermission extends Enum<BasicACLPermission> implements BitMaskPermission
This enum defines the basic ACL permissions. Each permission defined here is represented by a unique integer mask value that is a power of 2 (that is, each permission's bitmask has only one bit on).
Modifier and Type | Method and Description |
---|---|
int |
getMaskValue()
Obtains this permission's mask value.
|
String |
toBinaryString()
Returns the binary representation of this permission.
|
static BasicACLPermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BasicACLPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicACLPermission CREATE
public static final BasicACLPermission READ
public static final BasicACLPermission UPDATE
public static final BasicACLPermission DELETE
public static BasicACLPermission[] values()
for (BasicACLPermission c : BasicACLPermission.values()) System.out.println(c);
public static BasicACLPermission 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 int getMaskValue()
Obtains this permission's mask value.
getMaskValue
in interface BitMaskPermission
int
representing the value of the bitmask.public String toBinaryString()
Returns the binary representation of this permission.
String
containing this permission's binary representation.Copyright © 2017 JBoss by Red Hat. All rights reserved.