org.apache.sling.jcr.jackrabbit.accessmanager.post
Class ModifyAceServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by org.apache.sling.api.servlets.SlingSafeMethodsServlet
          extended by org.apache.sling.api.servlets.SlingAllMethodsServlet
              extended by org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractAccessPostServlet
                  extended by org.apache.sling.jcr.jackrabbit.accessmanager.post.ModifyAceServlet
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

Methods

Post Parameters

principalId
The principal of the ACEs to modify in the ACL specified by the path.
privilege@*
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.

Response

200
Success.
404
The resource was not found.
500
Failure. HTML explains the failure.

Notes

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
ModifyAceServlet()
           
 
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 org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractAccessPostServlet
createHtmlResponse, doPost, externalizePath, getAccessControlList, getItemPath, getRedirectUrl, isSetStatus
 
Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet
doDelete, doPut, getAllowedRequestMethods, isMethodValid, mayService
 
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
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

ModifyAceServlet

public ModifyAceServlet()
Method Detail

handleOperation

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
Parameters:
request - the sling http request to process
htmlResponse - the response
Throws:
javax.jcr.RepositoryException


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