org.dspace.submit.step
Class SkipInitialQuestionsStep
java.lang.Object
org.dspace.submit.AbstractProcessingStep
org.dspace.submit.step.SkipInitialQuestionsStep
public class SkipInitialQuestionsStep
- extends AbstractProcessingStep
This is a Simple Step class that need to be used when you want skip the
initial questions step!
At the moment this step is required because part of the behaviour of the
InitialQuestionStep is required to be managed also in the DescribeStep (see
JIRA [DS-83] Hardcoded behaviour of Initial question step in the submission)
- Version:
- $Revision: 5844 $
- Author:
- Andrea Bollini
- See Also:
AbstractProcessingStep,
InitialQuestionStep,
DescribeStep
|
Method Summary |
int |
doProcessing(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
Simply we flags the submission as the user had checked both multi-title,
multi-files and published before so that the input-form configuration
will be used as is |
int |
getNumberOfPages(javax.servlet.http.HttpServletRequest request,
SubmissionInfo subInfo)
Retrieves the number of pages that this "step" extends over. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SkipInitialQuestionsStep
public SkipInitialQuestionsStep()
doProcessing
public int doProcessing(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
throws javax.servlet.ServletException,
IOException,
SQLException,
AuthorizeException
- Simply we flags the submission as the user had checked both multi-title,
multi-files and published before so that the input-form configuration
will be used as is
- Specified by:
doProcessing in class AbstractProcessingStep
- Parameters:
context - current DSpace contextrequest - current servlet request objectresponse - current servlet response objectsubInfo - submission info object
- Returns:
- Status or error flag which will be processed by
doPostProcessing() below! (if STATUS_COMPLETE or 0 is returned,
no errors occurred!)
- Throws:
javax.servlet.ServletException
IOException
SQLException
AuthorizeException
getNumberOfPages
public int getNumberOfPages(javax.servlet.http.HttpServletRequest request,
SubmissionInfo subInfo)
throws javax.servlet.ServletException
- Description copied from class:
AbstractProcessingStep
- Retrieves the number of pages that this "step" extends over. This method
is used by the SubmissionController to build the progress bar.
This method may just return 1 for most steps (since most steps consist of
a single page). But, it should return a number greater than 1 for any
"step" which spans across a number of HTML pages. For example, the
configurable "Describe" step (configured using input-forms.xml) overrides
this method to return the number of pages that are defined by its
configuration file.
Steps which are non-interactive (i.e. they do not display an interface to
the user) should return a value of 1, so that they are only processed
once!
- Specified by:
getNumberOfPages in class AbstractProcessingStep
- Parameters:
request - The HTTP RequestsubInfo - The current submission information object
- Returns:
- the number of pages in this step
- Throws:
javax.servlet.ServletException
Copyright © 2011 DuraSpace. All Rights Reserved.