com.flexive.shared.security
Enum ACL.Permission

java.lang.Object
  extended by java.lang.Enum<ACL.Permission>
      extended by com.flexive.shared.security.ACL.Permission
All Implemented Interfaces:
ObjectWithLabel, java.io.Serializable, java.lang.Comparable<ACL.Permission>
Enclosing class:
ACL

public static enum ACL.Permission
extends java.lang.Enum<ACL.Permission>
implements ObjectWithLabel

ACL permissions


Enum Constant Summary
CREATE
           
DELETE
           
EDIT
           
EXPORT
           
NOT_CREATE
           
NOT_DELETE
           
NOT_EDIT
           
NOT_EXPORT
           
NOT_READ
           
NOT_RELATE
           
READ
           
RELATE
           
 
Method Summary
static boolean contains(ACL.Permission check, ACL.Permission... perms)
          Check if check is contained in perms
 FxString getLabel()
          Return the localized label of the object.
static ACL.Permission valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ACL.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

CREATE

public static final ACL.Permission CREATE

READ

public static final ACL.Permission READ

EDIT

public static final ACL.Permission EDIT

DELETE

public static final ACL.Permission DELETE

RELATE

public static final ACL.Permission RELATE

EXPORT

public static final ACL.Permission EXPORT

NOT_CREATE

public static final ACL.Permission NOT_CREATE

NOT_READ

public static final ACL.Permission NOT_READ

NOT_EDIT

public static final ACL.Permission NOT_EDIT

NOT_DELETE

public static final ACL.Permission NOT_DELETE

NOT_RELATE

public static final ACL.Permission NOT_RELATE

NOT_EXPORT

public static final ACL.Permission NOT_EXPORT
Method Detail

values

public static ACL.Permission[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ACL.Permission c : ACL.Permission.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ACL.Permission valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

contains

public static boolean contains(ACL.Permission check,
                               ACL.Permission... perms)
Check if check is contained in perms

Parameters:
check - Perm to check
perms - array of Perm's
Returns:
if check is contained in perms

getLabel

public FxString getLabel()
Return the localized label of the object.

Specified by:
getLabel in interface ObjectWithLabel
Returns:
the localized label for the object.