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

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

public class JSPVerifyStep
extends JSPStep

Verify step for DSpace. Presents the user with a verification screen for all information entered about the item being submitted.

This JSPStepManager class works with the SubmissionController servlet for the JSP-UI

The following methods are called in this order:

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

Field Summary
static String VERIFY_JSP
          JSP which displays initial questions *
 
Fields inherited from class org.dspace.app.webui.submit.JSPStep
NO_JSP
 
Constructor Summary
JSPVerifyStep()
           
 
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.
 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

VERIFY_JSP

public static final String VERIFY_JSP
JSP which displays initial questions *

See Also:
Constant Field Values
Constructor Detail

JSPVerifyStep

public JSPVerifyStep()
Method Detail

doPreProcessing

public void doPreProcessing(Context context,
                            javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            SubmissionInfo subInfo)
                     throws javax.servlet.ServletException,
                            IOException,
                            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
IOException
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,
                             IOException,
                             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
IOException
SQLException
AuthorizeException

getReviewJSP

public 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 © 2013 DuraSpace. All Rights Reserved.