|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.dspace.app.webui.servlet.DSpaceServlet
org.dspace.app.webui.servlet.RegisterServlet
public class RegisterServlet
Servlet for handling user registration and forgotten passwords.
This servlet handles both forgotten passwords and initial registration of users. Which it handles depends on the initialisation parameter "register" - if it's "true", it is treated as an initial registration and the user is asked to input their personal information.
The sequence of events is this: The user clicks on "register" or "I forgot my password." This servlet then displays the relevant "enter your e-mail" form. An e-mail address is POSTed back, and if this is valid, a token is created and e-mailed, otherwise an error is displayed, with another "enter your e-mail" form.
When the user clicks on the token URL mailed to them, this servlet receives a GET with the token as the parameter "KEY". If this is a valid token, the servlet then displays the "edit profile" or "edit password" screen as appropriate.
| Field Summary | |
|---|---|
static int |
ENTER_EMAIL_PAGE
The "enter e-mail" step |
static int |
NEW_PASSWORD_PAGE
The simple "enter new password" page, for user who's forgotten p/w |
static int |
PERSONAL_INFO_PAGE
The "enter personal info" page, for a registering user |
| Constructor Summary | |
|---|---|
RegisterServlet()
|
|
| Method Summary | |
|---|---|
protected void |
doDSGet(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process an incoming HTTP GET. |
protected void |
doDSPost(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process an incoming HTTP POST. |
void |
init()
|
| Methods inherited from class org.dspace.app.webui.servlet.DSpaceServlet |
|---|
doGet, doPost |
| 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, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ENTER_EMAIL_PAGE
public static final int PERSONAL_INFO_PAGE
public static final int NEW_PASSWORD_PAGE
| Constructor Detail |
|---|
public RegisterServlet()
| Method Detail |
|---|
public void init()
init in class javax.servlet.GenericServlet
protected void doDSGet(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException,
SQLException,
AuthorizeException
DSpaceServlet
doDSGet in class DSpaceServletcontext - a DSpace Context objectrequest - the HTTP requestresponse - the HTTP response
SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
javax.servlet.ServletException
IOException
protected void doDSPost(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException,
SQLException,
AuthorizeException
DSpaceServlet
doDSPost in class DSpaceServletcontext - a DSpace Context objectrequest - the HTTP requestresponse - the HTTP response
SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
javax.servlet.ServletException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||