|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.webui.submit.JSPStepManager
public class JSPStepManager
Manages and processes all JSP-UI classes for DSpace Submission steps.
This manager is utilized by the SubmissionController to appropriately load each JSP-UI step, and process any information returned by each step
AbstractProcessingStep,
SubmissionController,
JSPStep| Constructor Summary | |
|---|---|
JSPStepManager()
|
|
| Method Summary | |
|---|---|
protected boolean |
completeStep(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
This method completes the processing of this "step" and forwards the request back to the SubmissionController (so that the next step can be called). |
static java.lang.String |
getLastJSPDisplayed(javax.servlet.http.HttpServletRequest request)
Retrieves the context path of the last JSP that was displayed to the user. |
static int |
getPageReached(SubmissionInfo subInfo)
Find out which page a user has reached in this particular step. |
java.lang.String |
getReviewJSP(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
Return the URL path (e.g. |
protected boolean |
hasMorePages(javax.servlet.http.HttpServletRequest request,
SubmissionInfo subInfo,
int pageNumber)
Checks to see if there are more pages in the current step after the specified page |
static JSPStepManager |
loadStep(SubmissionStepConfig stepConfig)
Initialize the current JSPStepManager object, by loading the specified step class. |
boolean |
processStep(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
Initialize the current JSPStepManager object, to prepare for processing of this step. |
static void |
showJSP(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo,
java.lang.String pathToJSP)
This method actually displays a JSP page for this "step". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSPStepManager()
| Method Detail |
|---|
public static JSPStepManager loadStep(SubmissionStepConfig stepConfig)
throws java.lang.Exception
stepConfig - the SubmissionStepConfig object which describes
this step's configuration in the item-submission.xml
java.lang.Exception - if the JSPStep cannot be loaded or the class
specified doesn't implement the JSPStep interface
public final boolean processStep(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
Once the page has been determined, this method also determines whether the user is completing this page (i.e. there is user input data that needs to be saved to the database) or beginning this page (i.e. the user needs to be sent to the JSP for this page).
context - a DSpace Context objectrequest - the HTTP requestresponse - the HTTP responsesubInfo - submission info object
javax.servlet.ServletException - if a general error occurs
java.io.IOException - if a i/o error occurs
java.sql.SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
public static final void showJSP(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo,
java.lang.String pathToJSP)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
request - current servlet request objectresponse - current servlet response objectsubInfo - submission info objectpathToJSP - context path to the JSP to display
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
protected final boolean completeStep(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
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
protected final boolean hasMorePages(javax.servlet.http.HttpServletRequest request,
SubmissionInfo subInfo,
int pageNumber)
throws javax.servlet.ServletException
request - The HTTP Request objectsubInfo - The current submission information objectpageNumber - The current page
javax.servlet.ServletException - if there are no more pages in this steppublic static final int getPageReached(SubmissionInfo subInfo)
subInfo - Submission information
public static final java.lang.String getLastJSPDisplayed(javax.servlet.http.HttpServletRequest request)
request - current servlet request object
public 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 | |||||||||