Daisy Open Source CMS

org.outerj.daisy.repository.acl
Enum AclPermission

java.lang.Object
  extended by java.lang.Enum<AclPermission>
      extended by org.outerj.daisy.repository.acl.AclPermission
All Implemented Interfaces:
Serializable, Comparable<AclPermission>

public enum AclPermission
extends Enum<AclPermission>

Enumeration of all available ACL Permissions.


Enum Constant Summary
DELETE
           
PUBLISH
           
READ
           
WRITE
           
 
Field Summary
static AclPermission[] ENUM
          Deprecated. This member will be removed in a future version. It has no purpose since moving to Java 1.5 enums.
 
Method Summary
static AclPermission fromString(String value)
           
 int getPos()
          Deprecated. This method will be removed in a future version. It has no purpose since moving to Java 1.5 enums.
 String toString()
           
static AclPermission valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AclPermission[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

READ

public static final AclPermission READ

WRITE

public static final AclPermission WRITE

PUBLISH

public static final AclPermission PUBLISH

DELETE

public static final AclPermission DELETE
Field Detail

ENUM

public static final AclPermission[] ENUM
Deprecated. This member will be removed in a future version. It has no purpose since moving to Java 1.5 enums.
Method Detail

values

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

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

valueOf

public static AclPermission valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

getPos

public int getPos()
Deprecated. This method will be removed in a future version. It has no purpose since moving to Java 1.5 enums.

Returns a number corresponding to the position in the ENUM array.


toString

public String toString()
Overrides:
toString in class Enum<AclPermission>

fromString

public static AclPermission fromString(String value)

Daisy Open Source CMS