|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.webui.submit.JSPStep
public abstract class JSPStep
Abstract 'binding' class for DSpace Submission Steps which use the JSP-UI.
These methods revolve around the following: (1) pre-processing of data to prepare for display, (2) displaying the JSP, and (3) post-processing of any user input (or alternatively backend processing, for non-interactive steps).
For the JSP UI, the job of this class is to maintain the context of where the user is within the current "step" of the submission process. Each "step" can consist of multiple "pages" (which roughly correspond to HTML displays), so this class helps manage which page the user should see next.
The methods of the JSPStepManager are called in this order:
AbstractProcessingStep,
SubmissionController,
SubmissionConfig,
SubmissionStepConfig| Field Summary | |
|---|---|
static java.lang.String |
NO_JSP
Value to return from doPreProcessing to specify not to load any JSP Page (equal to "") * |
| Constructor Summary | |
|---|---|
JSPStep()
|
|
| Method Summary | |
|---|---|
abstract void |
doPostProcessing(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo,
int status)
Do any post-processing after the step's backend processing occurred (in the doProcessing() method). |
abstract void |
doPreProcessing(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
Do any pre-processing to determine which JSP (if any) is used to generate the UI for this step. |
abstract java.lang.String |
getReviewJSP(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
Return the URL path (e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NO_JSP
| Constructor Detail |
|---|
public JSPStep()
| Method Detail |
|---|
public abstract void doPreProcessing(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException,
AuthorizeException
If this step requires user interaction, then this method must call the JSP to display, using the "showJSP()" method of the JSPStepManager class.
If this step doesn't require user interaction OR you are solely using Manakin for your user interface, then this method may be left EMPTY, since all step processing should occur in the doProcessing() method.
context - current DSpace contextrequest - current servlet request objectresponse - current servlet response objectsubInfo - submission info object
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
AuthorizeException
public abstract void doPostProcessing(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo,
int status)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException,
AuthorizeException
It is this method's job to determine whether processing completed successfully, or display another JSP informing the users of any potential problems/errors.
If this step doesn't require user interaction OR you are solely using Manakin for your user interface, then this method may be left EMPTY, since all step processing should occur in the doProcessing() method.
context - current DSpace contextrequest - current servlet request objectresponse - current servlet response objectsubInfo - submission info objectstatus - any status/errors reported by doProcessing() method
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
AuthorizeException
public abstract java.lang.String getReviewJSP(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
This Review JSP is loaded by the 'Verify' Step, in order to dynamically generate a submission verification page consisting of the information gathered in all the enabled submission steps.
context - current DSpace contextrequest - current servlet request objectresponse - current servlet response objectsubInfo - submission info object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||