org.outerj.daisy.repository.acl
Enum AclPermission
java.lang.Object
java.lang.Enum<AclPermission>
org.outerj.daisy.repository.acl.AclPermission
- All Implemented Interfaces:
- Serializable, Comparable<AclPermission>
public enum AclPermission
- extends Enum<AclPermission>
Enumeration of all available ACL Permissions.
|
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. |
READ
public static final AclPermission READ
WRITE
public static final AclPermission WRITE
PUBLISH
public static final AclPermission PUBLISH
DELETE
public static final AclPermission DELETE
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.
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)