public interface ModifyAce
ModifyAce service api.
This interface is not intended to be implemented by bundles. It is implemented by this bundle and may be used by client bundles.
| Modifier and Type | Method and Description |
|---|---|
void |
modifyAce(javax.jcr.Session jcrSession,
String resourcePath,
String principalId,
Map<String,String> privileges,
String order)
Add or modify the access control entry for the specified user
or group.
|
default void |
modifyAce(javax.jcr.Session jcrSession,
String resourcePath,
String principalId,
Map<String,String> privileges,
String order,
Map<String,javax.jcr.Value> restrictions,
Map<String,javax.jcr.Value[]> mvRestrictions,
Set<String> removeRestrictionNames)
Add or modify the access control entry for the specified user
or group.
|
void modifyAce(javax.jcr.Session jcrSession,
String resourcePath,
String principalId,
Map<String,String> privileges,
String order)
throws javax.jcr.RepositoryException
jcrSession - the JCR session of the user updating the userresourcePath - The absolute path of the resource to apply the ACE to (required)principalId - The name of the user/group to provision (required)privileges - Map of privileges to apply. (optional)order - where the access control entry should go in the list.
Value should be one of these:
| null | If the ACE for the principal doesn't exist add at the end, otherwise leave the ACE at it's current position. |
| first | Place the target ACE as the first amongst its siblings |
| last | Place the target ACE as the last amongst its siblings |
| before xyz | Place the target ACE immediately before the sibling whose name is xyz |
| after xyz | Place the target ACE immediately after the sibling whose name is xyz |
| numeric | Place the target ACE at the specified numeric index |
javax.jcr.RepositoryExceptiondefault void modifyAce(javax.jcr.Session jcrSession,
String resourcePath,
String principalId,
Map<String,String> privileges,
String order,
Map<String,javax.jcr.Value> restrictions,
Map<String,javax.jcr.Value[]> mvRestrictions,
Set<String> removeRestrictionNames)
throws javax.jcr.RepositoryException
jcrSession - the JCR session of the user updating the userresourcePath - The absolute path of the resource to apply the ACE to (required)principalId - The name of the user/group to provision (required)privileges - Map of privileges to apply. (optional)order - where the access control entry should go in the list.
Value should be one of these:
| null | If the ACE for the principal doesn't exist add at the end, otherwise leave the ACE at it's current position. |
| first | Place the target ACE as the first amongst its siblings |
| last | Place the target ACE as the last amongst its siblings |
| before xyz | Place the target ACE immediately before the sibling whose name is xyz |
| after xyz | Place the target ACE immediately after the sibling whose name is xyz |
| numeric | Place the target ACE at the specified numeric index |
restrictions - Map of single-value restrictions to apply. (optional)mvRestrictions - Map of multi-value restrictions to apply. (optional)removeRestrictionNames - Set of existing restriction names to remove (optional)javax.jcr.RepositoryExceptionCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.