Uses of Class
org.apache.sling.jcr.jackrabbit.accessmanager.LocalPrivilege
Package
Description
-
Uses of LocalPrivilege in org.apache.sling.jcr.jackrabbit.accessmanager
Modifier and TypeMethodDescriptiondefault 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
Modifier and TypeMethodDescriptionprotected @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.Modifier and TypeMethodDescriptionprotected 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 ACEprotected 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 privilegesprotected 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<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 SlingHttpServletRequest request, @NotNull Map<javax.jcr.security.Privilege, LocalPrivilege> privilegeToLocalPrivilegesMap) Merge into the privilegeToLocalPrivilegesMap the changes requested in privilege delete request parameters.