Class CreateGroupServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, CreateGroup

    public class CreateGroupServlet
    extends AbstractGroupPostServlet
    implements CreateGroup

    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

    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