org.dspace.app.webui.submit.step
Class JSPInitialQuestionsStep

java.lang.Object
  extended by org.dspace.app.webui.submit.JSPStep
      extended by org.dspace.app.webui.submit.step.JSPInitialQuestionsStep

public class JSPInitialQuestionsStep
extends JSPStep

Initial Submission servlet for DSpace JSP-UI. Handles the initial questions which are asked to users to gather information regarding what metadata needs to be gathered.

This JSPStep class works with the SubmissionController servlet for the JSP-UI The following methods are called in this order:

Version:
$Revision: 5845 $
Author:
Tim Donohue
See Also:
SubmissionController, JSPStep, InitialQuestionsStep

Field Summary
 
Fields inherited from class org.dspace.app.webui.submit.JSPStep
NO_JSP
 
Constructor Summary
JSPInitialQuestionsStep()
           
 
Method Summary
 void doPostProcessing(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SubmissionInfo subInfo, int status)
          Do any pre-processing to determine which JSP (if any) is used to generate the UI for this step.
 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.
 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
 

Constructor Detail

JSPInitialQuestionsStep

public JSPInitialQuestionsStep()
Method Detail

doPreProcessing

public 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
Do any pre-processing to determine which JSP (if any) is used to generate the UI for this step. This method should include the gathering and validating of all data required by the JSP. In addition, if the JSP requires any variable to passed to it on the Request, this method should set those variables.

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.

Specified by:
doPreProcessing in class JSPStep
Parameters:
context - current DSpace context
request - current servlet request object
response - current servlet response object
subInfo - submission info object
Throws:
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
AuthorizeException

doPostProcessing

public 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
Do any pre-processing to determine which JSP (if any) is used to generate the UI for this step. This method should include the gathering and validating of all data required by the JSP. In addition, if the JSP requires any variable to passed to it on the Request, this method should set those variables.

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.

Specified by:
doPostProcessing in class JSPStep
Parameters:
context - current DSpace context
request - current servlet request object
response - current servlet response object
subInfo - submission info object
status - any status/errors reported by doProcessing() method
Throws:
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
AuthorizeException

getReviewJSP

public java.lang.String getReviewJSP(Context context,
                                     javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response,
                                     SubmissionInfo subInfo)
Return the URL path (e.g. /submit/review-metadata.jsp) of the JSP which will review the information that was gathered in this Step.

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.

Specified by:
getReviewJSP in class JSPStep
Parameters:
context - current DSpace context
request - current servlet request object
response - current servlet response object
subInfo - submission info object


Copyright © 2010 DuraSpace. All Rights Reserved.