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, isSetStatus
doDelete, doPut, getAllowedRequestMethods, isMethodValid, mayService
doGeneric, doGet, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
protected void bindPostResponseCreator(PostResponseCreator creator, java.util.Map<java.lang.String,java.lang.Object> properties)
bindPostResponseCreator
in class AbstractAccessPostServlet
org.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)
AbstractAccessPostServlet
unbindPostResponseCreator
in class AbstractAccessPostServlet
protected void handleOperation(SlingHttpServletRequest request, PostResponse htmlResponse, java.util.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, java.lang.String resourcePath, java.lang.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 © 2018 The Apache Software Foundation. All rights reserved.