org.apache.sling.jcr.jackrabbit.accessmanager.post
Class ModifyAceServlet
java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.api.servlets.SlingAllMethodsServlet
org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractAccessPostServlet
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
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 |
ModifyAceServlet
public ModifyAceServlet()
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 processhtmlResponse
- the response
- Throws:
javax.jcr.RepositoryException
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.