Package org.intermine.web.struts
Class LoginForm
- java.lang.Object
-
- org.apache.struts.action.ActionForm
-
- org.intermine.web.struts.LoginForm
-
- All Implemented Interfaces:
java.io.Serializable
public class LoginForm extends org.apache.struts.action.ActionForm
The main form, using for editing constraints- Author:
- Mark Woodbridge
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
password
protected java.lang.String
returnToString
protected java.lang.String
username
-
Constructor Summary
Constructors Constructor Description LoginForm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPassword()
Gets the value of passwordjava.lang.String
getReturnToString()
Return the returnToString set by setReturnToURL().java.lang.String
getUsername()
Gets the value of username The user name is always returned in LOWER CASE.void
reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
void
setPassword(java.lang.String password)
Sets the value of passwordvoid
setReturnToString(java.lang.String returnToString)
Sets the URL to return to if the login is successful.void
setUsername(java.lang.String username)
Sets the value of usernameorg.apache.struts.action.ActionErrors
validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
-
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
Gets the value of username The user name is always returned in LOWER CASE.- Returns:
- the value of username
-
setUsername
public void setUsername(java.lang.String username)
Sets the value of username- Parameters:
username
- value to assign to username
-
getPassword
public java.lang.String getPassword()
Gets the value of password- Returns:
- the value of password
-
setPassword
public void setPassword(java.lang.String password)
Sets the value of password- Parameters:
password
- value to assign to password
-
setReturnToString
public void setReturnToString(java.lang.String returnToString)
Sets the URL to return to if the login is successful.- Parameters:
returnToString
- the path to return to after log in
-
getReturnToString
public java.lang.String getReturnToString()
Return the returnToString set by setReturnToURL().- Returns:
- the the path to return to after log in
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
- Overrides:
validate
in classorg.apache.struts.action.ActionForm
-
reset
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
- Overrides:
reset
in classorg.apache.struts.action.ActionForm
-
-