|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.ActionSupport
org.chorem.bow.action.BowBaseAction
org.chorem.bow.action.LoginAction
public class LoginAction
authentifie l'utilisateur et place son objet User dans la bow session
| Field Summary | |
|---|---|
protected String |
email
|
protected String |
password
|
protected javax.servlet.http.HttpServletRequest |
servletRequest
|
| Fields inherited from class org.chorem.bow.action.BowBaseAction |
|---|
log, session, UNTRANSLATED_MARKER |
| Fields inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork2.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
LoginAction()
|
|
| Method Summary | |
|---|---|
protected User |
checkLogin(String email,
String password)
|
String |
execute()
|
String |
getEmail()
|
String |
getPassword()
|
void |
setEmail(String email)
|
void |
setPassword(String password)
|
void |
setServletRequest(javax.servlet.http.HttpServletRequest request)
|
| Methods inherited from class org.chorem.bow.action.BowBaseAction |
|---|
getBowProxy, getBowSession, getSafeText, getText, getText, getText, getText, getText, getText, getText, getText, getText, setSession |
| Methods inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String email
protected String password
protected javax.servlet.http.HttpServletRequest servletRequest
| Constructor Detail |
|---|
public LoginAction()
| Method Detail |
|---|
public String getEmail()
public void setEmail(String email)
public String getPassword()
public void setPassword(String password)
public void setServletRequest(javax.servlet.http.HttpServletRequest request)
setServletRequest in interface org.apache.struts2.interceptor.ServletRequestAware
protected User checkLogin(String email,
String password)
throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic String execute()
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||