org.apache.sling.jackrabbit.usermanager.impl.post
Class CreateGroupServlet
java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.api.servlets.SlingAllMethodsServlet
org.apache.sling.jackrabbit.usermanager.impl.post.AbstractAuthorizablePostServlet
org.apache.sling.jackrabbit.usermanager.impl.post.AbstractGroupPostServlet
org.apache.sling.jackrabbit.usermanager.impl.post.CreateGroupServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class CreateGroupServlet
- extends AbstractGroupPostServlet
Sling Post Servlet implementation for creating a group in the jackrabbit UserManager.
Rest Service Description
Creates a new group. Maps on to nodes of resourceType sling/groups
like
/rep:system/rep:userManager/rep:groups
mapped to a resource url
/system/userManager/group
. This servlet responds at
/system/userManager/group.create.html
Methods
Post Parameters
- :name
- The name of the new group (required)
- *
- Any additional parameters become properties of the group node (optional)
Response
- 200
- Success, a redirect is sent to the group resource locator. The redirect comes with
HTML describing the status.
- 500
- Failure, including group already exists. HTML explains the failure.
Example
curl -F:name=newGroupA -Fproperty1=value1 http://localhost:8080/system/userManager/group.create.html
Notes
- See Also:
- Serialized Form
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 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 |
CreateGroupServlet
public CreateGroupServlet()
handleOperation
protected void handleOperation(SlingHttpServletRequest request,
HtmlResponse response,
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 processresponse
- the response
- Throws:
javax.jcr.RepositoryException
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.