Class AbstractGetAceServlet

All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
GetAceServlet, GetEffectiveAceServlet, GetPrincipalAceServlet

public abstract class AbstractGetAceServlet extends AbstractAccessGetServlet
See Also:
  • Constructor Details

    • AbstractGetAceServlet

      public AbstractGetAceServlet()
  • 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
    • internalGetAce

      protected jakarta.json.JsonObject internalGetAce(javax.jcr.Session jcrSession, String resourcePath, String principalId) throws javax.jcr.RepositoryException
      Throws:
      javax.jcr.RepositoryException
    • 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
    • getAccessControlEntriesMap

      protected abstract Map<String,List<javax.jcr.security.AccessControlEntry>> getAccessControlEntriesMap(javax.jcr.Session session, String absPath, Principal principal, 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, Principal principal) throws javax.jcr.RepositoryException
      Throws:
      javax.jcr.RepositoryException