org.eaglei.repository.servlet.admin
Class UpdateUser

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.eaglei.repository.servlet.RepositoryServlet
              extended by org.eaglei.repository.servlet.admin.UpdateUser
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class UpdateUser
extends RepositoryServlet

User Account creation and update. This servlet exists primarily to serve the user list and edit pages in the admin JSP UI. Of course it can be used by itself, but beware of weird behavior when its referrer is a .JSP URL - it will indicate success by redirecting back to the JSP. Upon fatal errors it does NOT return to the JSP, it just sends an error status response. This isn't very user friendly, but neither is the rest of the admin UI. Method: POST only. Invocation Modes: - create a new user - disable a current user - disable login credentials - reinstate - create new login credentials - update - just change user metadata REQUIRED ARGS: username - principal name of user to change, defaults to authenticated OPTIONAL only_password - if specified, do not change other user metadata password - new password password_confirm - must match new password old_password - current (old) password, required for non-admin user first - first name, can be "" last - last name, can be "" mailbox - mailbox, can be "" role - multiple values, URI of roles to apply to user

Author:
Larry Stone Started March 2011
See Also:
Serialized Form

Nested Class Summary
static class UpdateUser.Action
           
 
Constructor Summary
UpdateUser()
           
 
Method Summary
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          
 
Methods inherited from class org.eaglei.repository.servlet.RepositoryServlet
getExactParameter, getParameter, getParameterAsBoolean, getParameterAsKeyword, getParameterAsReader, getParameterAsURI, getParameterContentType, getParameters, isParameterPresent, redirectToJSP, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateUser

public UpdateUser()
Method Detail

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2009-2011 Eagle-I. All Rights Reserved.