|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<RepositoryFilePermission>
org.pentaho.platform.api.repository2.unified.RepositoryFilePermission
public 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 for WRITE. So if you had WRITE, you
had DELETE, making DELETE redundant.
| Enum Constant Summary | |
|---|---|
ALL
|
|
READ
|
|
READ_ACL
|
|
WRITE
|
|
WRITE_ACL
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, 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 RepositoryFilePermission READ
public static final RepositoryFilePermission WRITE
public static final RepositoryFilePermission READ_ACL
public static final RepositoryFilePermission WRITE_ACL
public static final RepositoryFilePermission ALL
| Method Detail |
|---|
public static RepositoryFilePermission[] values()
for (RepositoryFilePermission c : RepositoryFilePermission.values()) System.out.println(c);
public static RepositoryFilePermission 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 null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||