|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Permission>
org.ogf.saga.permissions.Permission
public enum Permission
Enumerates all permission values. These flags are meant to be or-ed together, resulting in an integer, so methods are added to test for presence and or-ing.
Enum Constant Summary | |
---|---|
ALL
|
|
EXEC
|
|
NONE
|
|
OWNER
|
|
QUERY
|
|
READ
|
|
WRITE
|
Method Summary | |
---|---|
int |
getValue()
Returns the integer value of this permission. |
boolean |
isSet(int val)
Tests for the presence of this flag in the specified value. |
int |
or(int val)
Returns the result of or-ing this flag into an integer. |
int |
or(Permission val)
Returns the result of or-ing this flag into another. |
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Permission[] |
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 Permission NONE
public static final Permission QUERY
public static final Permission READ
public static final Permission WRITE
public static final Permission EXEC
public static final Permission OWNER
public static final Permission ALL
Method Detail |
---|
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission 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 getValue()
public int or(int val)
val
- the value to OR this enumeration value into.
public int or(Permission val)
val
- the value to OR this enumeration value into.
public boolean isSet(int val)
val
- the value.
true
if this flag is present.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |