public final class PrivilegeBitsProvider extends java.lang.Object implements PrivilegeConstants
AGGREGATE_PRIVILEGES, JCR_ADD_CHILD_NODES, JCR_ALL, JCR_LIFECYCLE_MANAGEMENT, JCR_LOCK_MANAGEMENT, JCR_MODIFY_ACCESS_CONTROL, JCR_MODIFY_PROPERTIES, JCR_NAMESPACE_MANAGEMENT, JCR_NODE_TYPE_DEFINITION_MANAGEMENT, JCR_NODE_TYPE_MANAGEMENT, JCR_READ, JCR_READ_ACCESS_CONTROL, JCR_REMOVE_CHILD_NODES, JCR_REMOVE_NODE, JCR_RETENTION_MANAGEMENT, JCR_VERSION_MANAGEMENT, JCR_WORKSPACE_MANAGEMENT, JCR_WRITE, NON_AGGREGATE_PRIVILEGES, NT_REP_PRIVILEGE, NT_REP_PRIVILEGES, PRIVILEGE_NODETYPE_NAMES, PRIVILEGE_PROPERTY_NAMES, PRIVILEGES_PATH, REP_ADD_PROPERTIES, REP_AGGREGATES, REP_ALTER_PROPERTIES, REP_BITS, REP_INDEX_DEFINITION_MANAGEMENT, REP_IS_ABSTRACT, REP_NEXT, REP_PRIVILEGE_MANAGEMENT, REP_PRIVILEGES, REP_READ_NODES, REP_READ_PROPERTIES, REP_REMOVE_PROPERTIES, REP_USER_MANAGEMENT, REP_WRITE
Constructor and Description |
---|
PrivilegeBitsProvider(Root root) |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<java.lang.String> |
getAggregatedPrivilegeNames(java.lang.String... privilegeNames)
Return the names of the non-aggregate privileges corresponding to the
specified
privilegeNames . |
PrivilegeBits |
getBits(java.lang.Iterable<java.lang.String> privilegeNames)
Returns the bits for the given privilege names
|
PrivilegeBits |
getBits(Privilege[] privileges,
NameMapper nameMapper)
Returns the bits for the given privileges
|
PrivilegeBits |
getBits(java.lang.String... privilegeNames)
Returns the bits for the given privilege names
|
java.util.Set<java.lang.String> |
getPrivilegeNames(PrivilegeBits privilegeBits)
Resolve the given privilege bits to a set of privilege names.
|
Tree |
getPrivilegesTree()
Returns the root tree for all privilege definitions stored in the content
repository.
|
public PrivilegeBitsProvider(Root root)
public Tree getPrivilegesTree()
public PrivilegeBits getBits(java.lang.String... privilegeNames)
privilegeNames
- the namespublic PrivilegeBits getBits(java.lang.Iterable<java.lang.String> privilegeNames)
privilegeNames
- the namespublic PrivilegeBits getBits(Privilege[] privileges, NameMapper nameMapper)
privileges
- the privilegesnameMapper
- the name mapperpublic java.util.Set<java.lang.String> getPrivilegeNames(PrivilegeBits privilegeBits)
privilegeBits
- An instance of privilege bits.public java.lang.Iterable<java.lang.String> getAggregatedPrivilegeNames(java.lang.String... privilegeNames)
privilegeNames
.privilegeNames
- The privilege names to be converted.privilegeNames
."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"