| javax.jcr.security.Privilege
Privilege | public interface Privilege (Code) | | A privilege represents the capability of performing a particular set
of operations on items in the JCR repository. Each privilege is identified
by a NAME that is unique across the set of privileges supported by a
repository. JCR defines a set of standard privileges in the jcr
namespace. Implementations may add additional privileges in namespaces other
than jcr .
A privilege may be an aggregate privilege. Aggregate privileges are sets of
other privileges. Granting, denying, or testing an aggregate privilege is
equivalent to individually granting, denying, or testing each privilege it
contains. The privileges contained by an aggregate privilege may themselves
be aggregate privileges if the resulting privilege graph is acyclic.
A privilege may be an abstract privilege. Abstract privileges cannot
themselves be granted or denied, but can be composed into aggregate privileges
which are granted or denied.
A privilege can be both aggregate and abstract.
since: JCR 2.0 |
Field Summary | |
final public static String | ADD_CHILD_NODES A constant representing ADD_CHILD_NODES , the privilege
to create child nodes of a node. | final public static String | ALL | final public static String | GET_ACCESS_CONTROL_POLICY A constant representing GET_ACCESS_CONTROL_POLICY , the privilege
to get the access control policy of a node. | final public static String | MODIFY_ACCESS_CONTROL_POLICY A constant representing MODIFY_ACCESS_CONTROL_POLICY , the privilege
to modify the access control policies of a node. | final public static String | MODIFY_PROPERTIES A constant representing MODIFY_PROPERTIES , the privilege
to create, remove and modify the values of the properties of a node. | final public static String | READ A constant representing READ , the privilege to retrieve
a node and get its properties and their values. | final public static String | REMOVE_CHILD_NODES A constant representing REMOVE_CHILD_NODES , the privilege
to remove child nodes of a node. | final public static String | WRITE |
Method Summary | |
Privilege[] | getAggregatePrivileges() If this privilege is an aggregate privilege, returns the privileges it
contains, the privileges contained by any aggregate privileges among
those, and so on (the transitive closure of privileges contained by this
privilege). | Privilege[] | getDeclaredAggregatePrivileges() If this privilege is an aggregate privilege, returns the privileges directly
contained by the aggregate privilege. | String | getDescription() Returns a description of this privilege. | String | getName() Returns the name of this privilege. | boolean | isAbstract() Returns whether this privilege is an abstract privilege. | boolean | isAggregate() Returns whether this privilege is an aggregate privilege. |
ADD_CHILD_NODES | final public static String ADD_CHILD_NODES(Code) | | A constant representing ADD_CHILD_NODES , the privilege
to create child nodes of a node.
|
ALL | final public static String ALL(Code) | | A constant representing ALL , an aggregate privilege that contains:
- READ
- WRITE
- GET_ACCESS_CONTROL
- MODIFY_ACCESS_CONTROL
|
GET_ACCESS_CONTROL_POLICY | final public static String GET_ACCESS_CONTROL_POLICY(Code) | | A constant representing GET_ACCESS_CONTROL_POLICY , the privilege
to get the access control policy of a node.
|
MODIFY_ACCESS_CONTROL_POLICY | final public static String MODIFY_ACCESS_CONTROL_POLICY(Code) | | A constant representing MODIFY_ACCESS_CONTROL_POLICY , the privilege
to modify the access control policies of a node.
|
MODIFY_PROPERTIES | final public static String MODIFY_PROPERTIES(Code) | | A constant representing MODIFY_PROPERTIES , the privilege
to create, remove and modify the values of the properties of a node.
|
READ | final public static String READ(Code) | | A constant representing READ , the privilege to retrieve
a node and get its properties and their values.
|
REMOVE_CHILD_NODES | final public static String REMOVE_CHILD_NODES(Code) | | A constant representing REMOVE_CHILD_NODES , the privilege
to remove child nodes of a node.
|
WRITE | final public static String WRITE(Code) | | A constant representing WRITE , an aggregate privilege that contains:
- MODIFY_PROPERTIES
- ADD_CHILD_NODES
- REMOVE_CHILD_NODES
|
getAggregatePrivileges | Privilege[] getAggregatePrivileges()(Code) | | If this privilege is an aggregate privilege, returns the privileges it
contains, the privileges contained by any aggregate privileges among
those, and so on (the transitive closure of privileges contained by this
privilege). Otherwise returns an empty array.
an array of Privilege s |
getDeclaredAggregatePrivileges | Privilege[] getDeclaredAggregatePrivileges()(Code) | | If this privilege is an aggregate privilege, returns the privileges directly
contained by the aggregate privilege. Otherwise returns an empty array.
an array of Privilege s |
getDescription | String getDescription()(Code) | | Returns a description of this privilege.
a description of this privilege. |
getName | String getName()(Code) | | Returns the name of this privilege.
the name of this privilege. |
isAbstract | boolean isAbstract()(Code) | | Returns whether this privilege is an abstract privilege.
true if this privilege is an abstract privilege;false otherwise. |
isAggregate | boolean isAggregate()(Code) | | Returns whether this privilege is an aggregate privilege.
true if this privilege is an aggregate privilege;false otherwise. |
|
|