org.apache.sling.jackrabbit.usermanager.impl.post
Class UpdateGroupServlet

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.jackrabbit.usermanager.impl.post.AbstractAuthorizablePostServlet
                  extended by org.apache.sling.jackrabbit.usermanager.impl.post.AbstractGroupPostServlet
                      extended by org.apache.sling.jackrabbit.usermanager.impl.post.UpdateGroupServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class UpdateGroupServlet
extends AbstractGroupPostServlet

Sling Post Operation implementation for updating a group in the jackrabbit UserManager.

Rest Service Description

Updates a group's properties. Maps on to nodes of resourceType sling/groups like /rep:system/rep:userManager/rep:groups/ae/3f/ed/testGroup mapped to a resource url /system/userManager/group/testGroup. This servlet responds at /system/userManager/group/testGroup.update.html

Methods

Post Parameters

*
Any additional parameters become properties of the group node (optional)
*@Delete
The property is deleted, eg prop1@Delete

Response

200
Success, a redirect is sent to the group's resource locator. The redirect comes with HTML describing the status.
404
The resource was not found
500
Failure

Example

curl -Fprop1=value2 -Fproperty1=value1 http://localhost:8080/system/userManager/group/testGroup.update.html

See Also:
Serialized Form

Constructor Summary
UpdateGroupServlet()
           
 
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.jackrabbit.usermanager.impl.post.AbstractGroupPostServlet
updateGroupMembership
 
Methods inherited from class org.apache.sling.jackrabbit.usermanager.impl.post.AbstractAuthorizablePostServlet
activate, collectContent, createHtmlResponse, deactivate, doPost, externalizePath, getItemPath, getRedirectUrl, hasItemPathPrefix, isSetStatus, processDeletes, requireItemPathPrefix, writeContent
 
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, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateGroupServlet

public UpdateGroupServlet()
Method Detail

handleOperation

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

Specified by:
handleOperation in class AbstractAuthorizablePostServlet
Parameters:
request - the sling http request to process
htmlResponse - the response
Throws:
javax.jcr.RepositoryException


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