Class UpdateUserServlet

All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, UpdateUser

public class UpdateUserServlet extends AbstractAuthorizablePostServlet implements UpdateUser

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

Rest Service Description

Updates a users properties. Maps on to nodes of resourceType sling/users like /rep:system/rep:userManager/rep:users mapped to a resource url /system/userManager/user/ieb. This servlet responds at /system/userManager/user/ieb.update.html

Methods

  • POST

Post Parameters

*
Any additional parameters become properties of the user node (optional)
*@Delete
Delete the property eg prop3@Delete means prop3 will be deleted (optional)

Response

200
Success, a redirect is sent to the users 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/user/ieb.update.html
See Also: