Class AbstractGetAclServlet

All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
GetAclServlet, GetEffectiveAclServlet

public abstract class AbstractGetAclServlet extends AbstractAccessGetServlet
See Also:
  • Field Details

    • KEY_ORDER

      @Deprecated protected static final String KEY_ORDER
      Deprecated.
      since 3.0.12, To be removed when the exported package version goes to 4.0 use JsonConvert.KEY_ORDER instead
      See Also:
    • KEY_DENIED

      @Deprecated protected static final String KEY_DENIED
      Deprecated.
      since 3.0.12, To be removed when the exported package version goes to 4.0
      See Also:
    • KEY_GRANTED

      @Deprecated protected static final String KEY_GRANTED
      Deprecated.
      since 3.0.12, To be removed when the exported package version goes to 4.0
      See Also:
  • Constructor Details

    • AbstractGetAclServlet

      public AbstractGetAclServlet()
  • Method Details

    • internalJson

      protected jakarta.json.JsonObject internalJson(javax.jcr.Session session, String resourcePath, String principalId) throws javax.jcr.RepositoryException
      Specified by:
      internalJson in class AbstractAccessGetServlet
      Throws:
      javax.jcr.RepositoryException
    • internalGetAcl

      protected jakarta.json.JsonObject internalGetAcl(javax.jcr.Session jcrSession, String resourcePath) throws javax.jcr.RepositoryException
      Throws:
      javax.jcr.RepositoryException
    • convertToJson

      protected jakarta.json.JsonObjectBuilder convertToJson(List<Map.Entry<Principal,Map<javax.jcr.security.Privilege,LocalPrivilege>>> entrySetList, Map<Principal,Map<DeclarationType,Set<String>>> declaredAtPaths)
    • addExtraInfo

      protected void addExtraInfo(jakarta.json.JsonObjectBuilder principalJson, Principal principal, Map<Principal,Map<DeclarationType,Set<String>>> principalToDeclaredAtPaths)
      Override to add additional data to the principal object
      Parameters:
      principalJson - the current principal JSON builder
      principal - the current principal
      principalToDeclaredAtPaths - a map of principal the paths where ACEs are declared
    • addRestrictions

      @Deprecated protected void addRestrictions(jakarta.json.JsonObjectBuilder privilegeObj, String key, Set<LocalRestriction> restrictions)
      Deprecated.
      use JsonConvert.addRestrictions(JsonObjectBuilder, String, Set) instead
    • addTo

      @Deprecated protected jakarta.json.JsonObjectBuilder addTo(jakarta.json.JsonObjectBuilder builder, String key, Object value)
      Deprecated.
      use JsonConvert#addTo(javax.json.JsonArrayBuilder, Object) instead
    • addTo

      @Deprecated protected jakarta.json.JsonArrayBuilder addTo(jakarta.json.JsonArrayBuilder builder, Object value)
      Deprecated.
      use JsonConvert.addTo(JsonObjectBuilder, String, Object) instead
    • getAccessControlEntriesMap

      protected abstract Map<String,List<javax.jcr.security.AccessControlEntry>> getAccessControlEntriesMap(javax.jcr.Session session, String absPath, Map<Principal,Map<DeclarationType,Set<String>>> declaredAtPaths) throws javax.jcr.RepositoryException
      Throws:
      javax.jcr.RepositoryException
    • getAccessControlEntries

      @Deprecated protected javax.jcr.security.AccessControlEntry[] getAccessControlEntries(javax.jcr.Session session, String absPath) throws javax.jcr.RepositoryException
      Throws:
      javax.jcr.RepositoryException