HiRISE

HiRISE.HiWish
Class LoginAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.actions.BaseAction
          extended by org.apache.struts.actions.DispatchAction
              extended by HiRISE.HiWish.HiWishAction
                  extended by HiRISE.HiWish.LoginAction

public class LoginAction
extends HiWishAction

Handle input from the login form by looking up the user. If a single user is matched by username and password, that user is logged in.


Field Summary
static String ID
          CVS ID
 
Fields inherited from class HiRISE.HiWish.HiWishAction
logger
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, methods, types
 
Fields inherited from class org.apache.struts.actions.BaseAction
messages
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
LoginAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping map, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          The login action looks up a user by username and password.
 void setServlet(org.apache.struts.action.ActionServlet servlet)
           
 
Methods inherited from class HiRISE.HiWish.HiWishAction
closeConnection, generateSecureToken, getConnection, getContextURL, getContextVariable, getMailSession, getWishQuota, memorizeUser, rememberUser, sendEmail, sha1hex
 
Methods inherited from class org.apache.struts.actions.DispatchAction
cancelled, dispatchMethod, getMethod, getMethodName, getParameter, unspecified
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values
Constructor Detail

LoginAction

public LoginAction()
Method Detail

setServlet

public void setServlet(org.apache.struts.action.ActionServlet servlet)
Overrides:
setServlet in class org.apache.struts.action.Action

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping map,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest req,
                                                      javax.servlet.http.HttpServletResponse res)
                                               throws Exception
The login action looks up a user by username and password. If the result is a single user, a Suggester object is put in the session for them. If not, an error is added. The user is returned to the index page.

Overrides:
execute in class org.apache.struts.actions.DispatchAction
Throws:
Exception

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona