Enum RepositoryFilePermission
- java.lang.Object
-
- java.lang.Enum<RepositoryFilePermission>
-
- org.pentaho.platform.api.repository2.unified.RepositoryFilePermission
-
- All Implemented Interfaces:
Serializable
,Comparable<RepositoryFilePermission>
public enum RepositoryFilePermission extends Enum<RepositoryFilePermission>
Repository file permission enumeration. These are the permission "bits." Loosely based on Mac OS X File System Access Control Policy bits.Why no
EXECUTE
?See JCR-2446.
Why no
APPEND
?Some implementations of these bits may not be able to distinguish between a file create and update. In this case,
APPEND
is useless. In the case of JCR, one might reasonably map APPEND to set_property and WRITE to add_node. However, even an update on a file might involve the addition of a node.Why no
DELETE_CHILD
?DELETE_CHILD
was believed to be too technical for end users to understand.Why no
DELETE
?DELETE
mapped to jcr:removeNode which was also required forWRITE
. So if you hadWRITE
, you hadDELETE
, makingDELETE
redundant.- Author:
- mlowery
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACL_MANAGEMENT
ALL
DELETE
READ
WRITE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RepositoryFilePermission
valueOf(String name)
Returns the enum constant of this type with the specified name.static RepositoryFilePermission[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READ
public static final RepositoryFilePermission READ
-
WRITE
public static final RepositoryFilePermission WRITE
-
DELETE
public static final RepositoryFilePermission DELETE
-
ACL_MANAGEMENT
public static final RepositoryFilePermission ACL_MANAGEMENT
-
ALL
public static final RepositoryFilePermission ALL
-
-
Method Detail
-
values
public static RepositoryFilePermission[] 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 (RepositoryFilePermission c : RepositoryFilePermission.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RepositoryFilePermission 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 nameNullPointerException
- if the argument is null
-
-