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,
java.lang.String resourcePath,
java.lang.String principalId,
java.util.Map<java.lang.String,java.lang.String> privileges,
java.lang.String order)
Add or modify the access control entry for the specified user
or group.
|
default void |
modifyAce(javax.jcr.Session jcrSession,
java.lang.String resourcePath,
java.lang.String principalId,
java.util.Map<java.lang.String,java.lang.String> privileges,
java.lang.String order,
boolean autoSave)
Add or modify the access control entry for the specified user
or group.
|
default void |
modifyAce(javax.jcr.Session jcrSession,
java.lang.String resourcePath,
java.lang.String principalId,
java.util.Map<java.lang.String,java.lang.String> privileges,
java.lang.String order,
java.util.Map<java.lang.String,javax.jcr.Value> restrictions,
java.util.Map<java.lang.String,javax.jcr.Value[]> mvRestrictions,
java.util.Set<java.lang.String> removeRestrictionNames)
Add or modify the access control entry for the specified user
or group.
|
default void |
modifyAce(javax.jcr.Session jcrSession,
java.lang.String resourcePath,
java.lang.String principalId,
java.util.Map<java.lang.String,java.lang.String> privileges,
java.lang.String order,
java.util.Map<java.lang.String,javax.jcr.Value> restrictions,
java.util.Map<java.lang.String,javax.jcr.Value[]> mvRestrictions,
java.util.Set<java.lang.String> removeRestrictionNames,
boolean autoSave)
Add or modify the access control entry for the specified user
or group.
|
void modifyAce(javax.jcr.Session jcrSession,
java.lang.String resourcePath,
java.lang.String principalId,
java.util.Map<java.lang.String,java.lang.String> privileges,
java.lang.String order)
throws javax.jcr.RepositoryException
modifyAce(Session, String, String, Map, String, boolean) with
the autoSave parameter value equal to true.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.
| 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.RepositoryException - if any errors applying the changesdefault void modifyAce(javax.jcr.Session jcrSession,
java.lang.String resourcePath,
java.lang.String principalId,
java.util.Map<java.lang.String,java.lang.String> privileges,
java.lang.String order,
boolean autoSave)
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.
| 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 |
autoSave - true to automatically save changes to the JCR session, false otherwisejavax.jcr.RepositoryException - if any errors applying the changesdefault void modifyAce(javax.jcr.Session jcrSession,
java.lang.String resourcePath,
java.lang.String principalId,
java.util.Map<java.lang.String,java.lang.String> privileges,
java.lang.String order,
java.util.Map<java.lang.String,javax.jcr.Value> restrictions,
java.util.Map<java.lang.String,javax.jcr.Value[]> mvRestrictions,
java.util.Set<java.lang.String> removeRestrictionNames)
throws javax.jcr.RepositoryException
modifyAce(Session, String, String, Map, String, Map, Map, Set, boolean) with
the autoSave parameter value equal to true.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.
| 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.RepositoryException - if any errors applying the changesdefault void modifyAce(javax.jcr.Session jcrSession,
java.lang.String resourcePath,
java.lang.String principalId,
java.util.Map<java.lang.String,java.lang.String> privileges,
java.lang.String order,
java.util.Map<java.lang.String,javax.jcr.Value> restrictions,
java.util.Map<java.lang.String,javax.jcr.Value[]> mvRestrictions,
java.util.Set<java.lang.String> removeRestrictionNames,
boolean autoSave)
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.
| 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)autoSave - true to automatically save changes to the JCR session, false otherwisejavax.jcr.RepositoryException - if any errors applying the changesCopyright © 2022 The Apache Software Foundation. All rights reserved.