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.ActionFormThe main form, using for editing constraints- Author:
- Mark Woodbridge
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringpasswordprotected java.lang.StringreturnToStringprotected java.lang.Stringusername
-
Constructor Summary
Constructors Constructor Description LoginForm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPassword()Gets the value of passwordjava.lang.StringgetReturnToString()Return the returnToString set by setReturnToURL().java.lang.StringgetUsername()Gets the value of username The user name is always returned in LOWER CASE.voidreset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)voidsetPassword(java.lang.String password)Sets the value of passwordvoidsetReturnToString(java.lang.String returnToString)Sets the URL to return to if the login is successful.voidsetUsername(java.lang.String username)Sets the value of usernameorg.apache.struts.action.ActionErrorsvalidate(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:
validatein classorg.apache.struts.action.ActionForm
-
reset
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)- Overrides:
resetin classorg.apache.struts.action.ActionForm
-
-