|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<BasicACLPermission>
org.jboss.security.acl.BasicACLPermission
public enum BasicACLPermission
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).
Enum Constant Summary | |
---|---|
CREATE
|
|
DELETE
|
|
READ
|
|
UPDATE
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BasicACLPermission CREATE
public static final BasicACLPermission READ
public static final BasicACLPermission UPDATE
public static final BasicACLPermission DELETE
Method Detail |
---|
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 name
NullPointerException
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |