public abstract class AbstractGetAclServlet extends SlingAllMethodsServlet
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
KEY_DENIED |
protected static java.lang.String |
KEY_GRANTED |
protected static java.lang.String |
KEY_ORDER |
Constructor and Description |
---|
AbstractGetAclServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called by the
SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP GET request. |
protected abstract javax.jcr.security.AccessControlEntry[] |
getAccessControlEntries(javax.jcr.Session session,
java.lang.String absPath) |
protected javax.json.JsonObject |
internalGetAcl(javax.jcr.Session jcrSession,
java.lang.String resourcePath) |
doDelete, doPost, doPut, getAllowedRequestMethods, isMethodValid, mayService
doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
protected static final java.lang.String KEY_ORDER
protected static final java.lang.String KEY_DENIED
protected static final java.lang.String KEY_GRANTED
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
SlingSafeMethodsServlet
SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse)
method to
handle an HTTP GET request.
This default implementation reports back to the client that the method is not supported.
Implementations of this class should overwrite this method with their implementation for the HTTP GET method support.
doGet
in class SlingSafeMethodsServlet
request
- The HTTP requestresponse
- The HTTP responsejavax.servlet.ServletException
- Not thrown by this implementation.java.io.IOException
- If the error status cannot be reported back to the
client.protected javax.json.JsonObject internalGetAcl(javax.jcr.Session jcrSession, java.lang.String resourcePath) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected abstract javax.jcr.security.AccessControlEntry[] getAccessControlEntries(javax.jcr.Session session, java.lang.String absPath) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2022 The Apache Software Foundation. All rights reserved.