Uses of Class
org.apache.sling.jcr.jackrabbit.accessmanager.LocalRestriction
Package
Description
-
Uses of LocalRestriction in org.apache.sling.jcr.jackrabbit.accessmanager
Modifier and TypeMethodDescriptionstatic @NotNull LocalRestriction
LocalRestriction.cloneWithNewValues
(@NotNull LocalRestriction lr, @NotNull javax.jcr.Value[] newValues) Clone from an existing object and then assign the new valuesModifier and TypeMethodDescriptionLocalPrivilege.getAllowRestrictions()
LocalPrivilege.getDenyRestrictions()
protected Set<LocalRestriction>
LocalPrivilege.mergeRestrictions
(Set<LocalRestriction> currentRestrictions, Set<LocalRestriction> newRestrictions) Modifier and TypeMethodDescriptionstatic @NotNull LocalRestriction
LocalRestriction.cloneWithNewValues
(@NotNull LocalRestriction lr, @NotNull javax.jcr.Value[] newValues) Clone from an existing object and then assign the new valuesModifier and TypeMethodDescriptionprotected Set<LocalRestriction>
LocalPrivilege.mergeRestrictions
(Set<LocalRestriction> currentRestrictions, Set<LocalRestriction> newRestrictions) boolean
LocalPrivilege.sameAllowRestrictions
(Set<LocalRestriction> otherAllowRestrictions) compares if restrictions present is same as specified restrictions in the supplied argumentboolean
LocalPrivilege.sameDenyRestrictions
(Set<LocalRestriction> otherDenyRestrictions) compares if restrictions present is same as specified restrictions in the supplied argumentvoid
LocalPrivilege.setAllowRestrictions
(Set<LocalRestriction> restrictions) void
LocalPrivilege.setDenyRestrictions
(Set<LocalRestriction> restrictions) -
Uses of LocalRestriction in org.apache.sling.jcr.jackrabbit.accessmanager.post
Modifier and TypeMethodDescriptionprotected LocalRestriction
ModifyAceServlet.toLocalRestriction
(@NotNull SlingHttpServletRequest request, @NotNull Map<String, org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinition> srMap, @NotNull String restrictionName, @NotNull String paramName) Construct a LocalRestriction using data a request parameterModifier and TypeMethodDescriptionprotected Set<LocalRestriction>
ModifyAceServlet.postedRestrictionsForPrivilege
(@NotNull SlingHttpServletRequest request, @NotNull Map<String, org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinition> srMap, @NotNull javax.jcr.security.Privilege forPrivilege, @NotNull org.apache.sling.jcr.jackrabbit.accessmanager.post.ModifyAceServlet.PrivilegeValues forAllowOrDeny, @NotNull Set<LocalRestriction> generalRestrictions) Populate the restrictions that that were posted and applicable to the requested privilegeModifier 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
AbstractGetAclServlet.addRestrictions
(jakarta.json.JsonObjectBuilder privilegeObj, String key, Set<LocalRestriction> restrictions) Deprecated.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 privilegesprotected Set<LocalRestriction>
ModifyAceServlet.postedRestrictionsForPrivilege
(@NotNull SlingHttpServletRequest request, @NotNull Map<String, org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinition> srMap, @NotNull javax.jcr.security.Privilege forPrivilege, @NotNull org.apache.sling.jcr.jackrabbit.accessmanager.post.ModifyAceServlet.PrivilegeValues forAllowOrDeny, @NotNull Set<LocalRestriction> generalRestrictions) Populate the restrictions that that were posted and applicable to the requested privilege
JsonConvert.addRestrictions(JsonObjectBuilder, String, Set)
instead