Class ModifyAceServlet

  extended by javax.servlet.GenericServlet
      extended by
          extended by
              extended by
                  extended by
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ModifyAceServlet
extends AbstractAccessPostServlet

Sling Post Servlet implementation for modifying the ACEs for a principal on a JCR resource.

Rest Service Description

Modify a principal's ACEs for the node identified as a resource by the request URL >resource<.modifyAce.html


Post Parameters

The principal of the ACEs to modify in the ACL specified by the path.
One or more privileges, either granted or denied or none, which will be applied to (or removed from) the node ACL. Any permissions that are present in an existing ACE for the principal but not in the request are left untouched.


The resource was not found.
Failure. HTML explains the failure.


The principalId is assumed to refer directly to an Authorizable, that comes direct from the UserManager. This can be a group or a user, but if its a group, denied permissions will not be added to the group. The group will only contain granted privileges.

See Also:
Serialized Form

Constructor Summary
Method Summary
protected  void handleOperation(SlingHttpServletRequest request, HtmlResponse htmlResponse, List<Modification> changes)
          Extending Servlet should implement this operation to do the work
Methods inherited from class
createHtmlResponse, doPost, externalizePath, getAccessControlList, getItemPath, getRedirectUrl, isSetStatus
Methods inherited from class
doDelete, doPut, getAllowedRequestMethods, isMethodValid, mayService
Methods inherited from class
doGeneric, doGet, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ModifyAceServlet()
Method Detail


protected void handleOperation(SlingHttpServletRequest request,
                               HtmlResponse htmlResponse,
                               List<Modification> changes)
                        throws javax.jcr.RepositoryException
Description copied from class: AbstractAccessPostServlet
Extending Servlet should implement this operation to do the work

Specified by:
handleOperation in class AbstractAccessPostServlet
request - the sling http request to process
htmlResponse - the response

Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.