edu.whoi.ursa.argoDatabase.web
Class UserPage

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by edu.whoi.ursa.argoDatabase.web.UserPage
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@WebServlet(value="/user/user.html")
public class UserPage
extends javax.servlet.http.HttpServlet

Servlet implementation class UserPage

See Also:
Serialized Form

Nested Class Summary
private static class UserPage._ChangePassword
          change password form
private static class UserPage._ChangePasswordHandler
          change password form
private static class UserPage._NewUser
          new user form
private static class UserPage._NewUserHandler
          handle POST submission of new user
private static class UserPage._UserHomePage
          user home page
private static class UserPage._UserPage
          User summary page
 
Field Summary
private static long serialVersionUID
           
 
Constructor Summary
UserPage()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
private static java.util.List<java.lang.Object[]> getFlagsByUser(User user)
          get flags by user id
private static java.util.List<java.lang.Object[]> getFlagsByUserId(java.lang.Integer id)
          get flags by user
private static org.w3c.dom.Element printFlagsByUser(org.w3c.dom.Element element, User user)
          print flags by user
private static org.w3c.dom.Element printFlagsByUserId(org.w3c.dom.Element element, java.lang.Integer id)
          print flags by user id
private static org.w3c.dom.Element printUserInfo(org.w3c.dom.Element element, java.lang.Integer id)
          print user info by id
private static org.w3c.dom.Element printUserInfo(org.w3c.dom.Element element, User user)
          print user info
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

UserPage

public UserPage()
Method Detail

getFlagsByUser

private static java.util.List<java.lang.Object[]> getFlagsByUser(User user)
get flags by user id

Parameters:
user -
Returns:

getFlagsByUserId

private static java.util.List<java.lang.Object[]> getFlagsByUserId(java.lang.Integer id)
get flags by user

Parameters:
user -
Returns:

printFlagsByUser

private static org.w3c.dom.Element printFlagsByUser(org.w3c.dom.Element element,
                                                    User user)
print flags by user

Parameters:
element -
user -
Returns:

printFlagsByUserId

private static org.w3c.dom.Element printFlagsByUserId(org.w3c.dom.Element element,
                                                      java.lang.Integer id)
print flags by user id

Parameters:
element -
user -
Returns:

printUserInfo

private static org.w3c.dom.Element printUserInfo(org.w3c.dom.Element element,
                                                 java.lang.Integer id)
print user info by id

Parameters:
element -
id -
Returns:

printUserInfo

private static org.w3c.dom.Element printUserInfo(org.w3c.dom.Element element,
                                                 User user)
print user info

Parameters:
element -
user -
Returns:

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.doGet(HttpServletRequest request, HttpServletResponse response)

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
See Also:
HttpServlet.doPost(HttpServletRequest request, HttpServletResponse response)