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 |
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, 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 AbstractAccessPostServletorg.apache.sling.jackrabbit.usermanager.impl.post.AbstractPostServlet#bindPostResponseCreator(org.apache.sling.servlets.post.PostResponseCreator, java.util.Map)protected void unbindPostResponseCreator(PostResponseCreator creator, java.util.Map<java.lang.String,java.lang.Object> properties)
AbstractAccessPostServletunbindPostResponseCreator in class AbstractAccessPostServletprotected 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 responsejavax.jcr.RepositoryExceptionpublic 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.RepositoryExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.