@Service(value={javax.servlet.Servlet.class,DeleteAces.class})
@Property(name="sling.servlet.resourceTypes",value="sling/servlet/default") @Property(name="sling.servlet.methods",value="POST") @Property(name="sling.servlet.selectors",value="deleteAce")
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 |
|---|---|
void |
deleteAces(javax.jcr.Session jcrSession,
String resourcePath,
String[] principalNamesToDelete)
Deletes one or more ACEs from the access control list of a resource.
|
protected void |
handleOperation(SlingHttpServletRequest request,
AbstractPostResponse htmlResponse,
List<Modification> changes)
Extending Servlet should implement this operation to do the work
|
createHtmlResponse, doPost, externalizePath, getAccessControlList, getItemPath, getRedirectUrl, isSetStatusdoDelete, doPut, getAllowedRequestMethods, isMethodValid, mayServicedoGeneric, doGet, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, serviceprotected void handleOperation(SlingHttpServletRequest request, AbstractPostResponse htmlResponse, 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,
String resourcePath,
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 © 2014 The Apache Software Foundation. All rights reserved.