@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, isSetStatus
doDelete, doPut, getAllowedRequestMethods, isMethodValid, mayService
doGeneric, doGet, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
protected void handleOperation(SlingHttpServletRequest request, AbstractPostResponse htmlResponse, List<Modification> changes) throws javax.jcr.RepositoryException
AbstractAccessPostServlet
handleOperation
in class AbstractAccessPostServlet
request
- the sling http request to processhtmlResponse
- the responsejavax.jcr.RepositoryException
public void deleteAces(javax.jcr.Session jcrSession, String resourcePath, String[] principalNamesToDelete) throws javax.jcr.RepositoryException
DeleteAces
deleteAces
in interface DeleteAces
jcrSession
- 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
Copyright © 2014 The Apache Software Foundation. All rights reserved.