# Uses of Class
org.apache.sling.jcr.jackrabbit.accessmanager.LocalPrivilege

Packages that use LocalPrivilege
Package
Description
org.apache.sling.jcr.jackrabbit.accessmanager
org.apache.sling.jcr.jackrabbit.accessmanager.post

## Uses of LocalPrivilege in org.apache.sling.jcr.jackrabbit.accessmanager

Method parameters in org.apache.sling.jcr.jackrabbit.accessmanager with type arguments of type LocalPrivilege
Modifier and Type
Method
Description
`default void`
ModifyAce.`modifyAce(javax.jcr.Session jcrSession, String resourcePath, String principalId, Collection<LocalPrivilege> localPrivileges, String order, boolean autoSave)`
Add or modify the access control entry for the specified user or group.
`void`
ModifyPrincipalAce.`modifyPrincipalAce(javax.jcr.Session jcrSession, String resourcePath, String principalId, Collection<LocalPrivilege> localPrivileges, boolean autoSave)`
Add or modify the access control entry for the specified user or group.

## Uses of LocalPrivilege in org.apache.sling.jcr.jackrabbit.accessmanager.post

Methods in org.apache.sling.jcr.jackrabbit.accessmanager.post that return types with arguments of type LocalPrivilege
Modifier and Type
Method
Description
`protected @NotNull Map<javax.jcr.security.Privilege,LocalPrivilege>`
ModifyAceServlet.`loadStoredAce(@NotNull javax.jcr.security.AccessControlManager acm, @NotNull String resourcePath, @NotNull Principal forPrincipal, @NotNull Map<String,org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinition> srMap)`
Loads the state for the currently stored ACE for the specified principal.
Method parameters in org.apache.sling.jcr.jackrabbit.accessmanager.post with type arguments of type LocalPrivilege
Modifier and Type
Method
Description
`protected void`
ModifyAceServlet.`addAces(@NotNull String resourcePath, @NotNull Principal principal, @NotNull Map<Set<LocalRestriction>,List<LocalPrivilege>> restrictionsToLocalPrivilegesMap, boolean isAllow, @NotNull org.apache.jackrabbit.api.security.JackrabbitAccessControlList acl, Map<javax.jcr.security.Privilege,Integer> privilegeLongestDepthMap)`
Add ACEs for the specified principal to the ACL.
`protected void`
ModifyPrincipalAceServlet.`addAces(@NotNull String resourcePath, @NotNull Principal principal, @NotNull Map<Set<LocalRestriction>,List<LocalPrivilege>> restrictionsToLocalPrivilegesMap, boolean isAllow, @NotNull org.apache.jackrabbit.api.security.JackrabbitAccessControlList acl, Map<javax.jcr.security.Privilege,Integer> privilegeLongestDepthMap)`
Override to ensure we do not add enty that denies privileges which is not allowed in a principal ACE
`protected void`
ModifyAceServlet.`applyPrivilegeAndRestrictions(@NotNull Map<javax.jcr.security.Privilege,LocalPrivilege> privilegeToLocalPrivilegesMap, @NotNull javax.jcr.security.Privilege p, boolean allow, @NotNull Set<LocalRestriction> allowRestrictions, boolean deny, @NotNull Set<LocalRestriction> denyRestrictions)`
Apply the privilege and restrictions to the local privileges
`protected jakarta.json.JsonObjectBuilder`
AbstractGetAclServlet.`convertToJson(List<Map.Entry<Principal,Map<javax.jcr.security.Privilege,LocalPrivilege>>> entrySetList, Map<Principal,Map<DeclarationType,Set<String>>> declaredAtPaths)`
`void`
ModifyAceServlet.`modifyAce(javax.jcr.Session jcrSession, String resourcePath, String principalId, Collection<LocalPrivilege> localPrivileges, String order, boolean autoSave)`
`protected void`
ModifyAceServlet.`modifyAce(javax.jcr.Session jcrSession, String resourcePath, String principalId, Collection<LocalPrivilege> localPrivileges, String order, boolean autoSave, List<org.apache.sling.servlets.post.Modification> changes)`
`void`
ModifyPrincipalAceServlet.`modifyPrincipalAce(javax.jcr.Session jcrSession, String resourcePath, String principalId, Collection<LocalPrivilege> localPrivileges, boolean autoSave)`
`protected void`
ModifyAceServlet.`processPostedPrivilegeDeleteParams(@NotNull javax.jcr.security.AccessControlManager acm, @NotNull org.apache.sling.api.SlingJakartaHttpServletRequest request, @NotNull Map<javax.jcr.security.Privilege,LocalPrivilege> privilegeToLocalPrivilegesMap)`
Merge into the privilegeToLocalPrivilegesMap the changes requested in privilege delete request parameters.