public class DeleteAcesServlet extends AbstractAccessPostServlet implements DeleteAces
Sling Post Servlet implementation for deleting the ACE for a set of principals on a JCR resource.
Delete a set of Ace's from a node, the node is identified as a resource by the request url >resource<.deleteAce.html
| Constructor and Description | 
|---|
DeleteAcesServlet()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
bindPostResponseCreator(PostResponseCreator creator,
                       java.util.Map<java.lang.String,java.lang.Object> properties)
Overridden since the @Reference annotation is not inherited from the super method 
 | 
void | 
deleteAces(javax.jcr.Session jcrSession,
          java.lang.String resourcePath,
          java.lang.String[] principalNamesToDelete)
Deletes one or more ACEs from the access control list of a resource. 
 | 
protected void | 
deleteAces(javax.jcr.Session jcrSession,
          java.lang.String resourcePath,
          java.lang.String[] principalNamesToDelete,
          java.util.List<Modification> changes)  | 
protected void | 
handleOperation(SlingHttpServletRequest request,
               PostResponse htmlResponse,
               java.util.List<Modification> changes)
Extending Servlet should implement this operation to do the work 
 | 
protected void | 
unbindPostResponseCreator(PostResponseCreator creator,
                         java.util.Map<java.lang.String,java.lang.Object> properties)
Unbind a post response creator 
 | 
createHtmlResponse, doPost, externalizePath, getAccessControlList, getAccessControlListOrNull, getItemPath, getRedirectUrl, getRedirectUrl, handleOperation, isSetStatusdoDelete, doPut, getAllowedRequestMethods, isMethodValid, mayServicedoGeneric, doGet, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, serviceprotected void bindPostResponseCreator(PostResponseCreator creator, java.util.Map<java.lang.String,java.lang.Object> properties)
bindPostResponseCreator in class AbstractAccessPostServletcreator - the response creator service referenceproperties - the component properties for the service referenceprotected void unbindPostResponseCreator(PostResponseCreator creator, java.util.Map<java.lang.String,java.lang.Object> properties)
AbstractAccessPostServletunbindPostResponseCreator in class AbstractAccessPostServletcreator - the response creator service referenceproperties - the component properties for the service referenceprotected void handleOperation(SlingHttpServletRequest request, PostResponse htmlResponse, java.util.List<Modification> changes) throws javax.jcr.RepositoryException
AbstractAccessPostServlethandleOperation in class AbstractAccessPostServletrequest - the sling http request to processhtmlResponse - the responsechanges - the changes to reportjavax.jcr.RepositoryException - if any errors applying the changespublic void deleteAces(javax.jcr.Session jcrSession,
                       java.lang.String resourcePath,
                       java.lang.String[] principalNamesToDelete)
                throws javax.jcr.RepositoryException
DeleteAcesdeleteAces in interface DeleteAcesjcrSession - the JCR session of the user updating the userresourcePath - The path of the resource to update the ACL for (required)principalNamesToDelete - An array of ace principal names to delete.. (required)javax.jcr.RepositoryException - if any errors applying the changesprotected void deleteAces(javax.jcr.Session jcrSession,
                          java.lang.String resourcePath,
                          java.lang.String[] principalNamesToDelete,
                          java.util.List<Modification> changes)
                   throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.