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

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

public class ChangeUserPasswordServlet
extends AbstractUserPostServlet

Changes the password associated with a user. a new group. Maps on to nodes of resourceType sling/groups like /rep:system/rep:userManager/rep:users/ae/fd/3e/ieb mapped to a resource url /system/userManager/user/ieb. This servlet responds at /system/userManager/user/ieb.changePassword.create.html

Methods

Post Parameters

oldPwd
The current password for the user (required)
newPwd
The new password for the user (required)
newPwdConfirm
The confirm new password for the user (required)

Response

200
Sucess sent with no body
404
If the user was not found.
500
Failure, including group already exists. HTML explains the failure.

Example

curl -FoldPwd=oldpassword -FnewPwd=newpassword =FnewPwdConfirm=newpassword http://localhost:8080/system/userManager/user/ieb.changePassword.html

Notes

See Also:
Serialized Form

Constructor Summary
ChangeUserPasswordServlet()
           
 
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.AbstractUserPostServlet
activate, deactivate, digestPassword, digestPassword
 
Methods inherited from class org.apache.sling.jackrabbit.usermanager.impl.post.AbstractAuthorizablePostServlet
collectContent, createHtmlResponse, 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

ChangeUserPasswordServlet

public ChangeUserPasswordServlet()
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.