public class SkipInitialQuestionsStep extends AbstractProcessingStep
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)
AbstractProcessingStep,
InitialQuestionsStep,
DescribeStepCANCEL_BUTTON, LAST_PAGE_REACHED, NEXT_BUTTON, PREVIOUS_BUTTON, PROGRESS_BAR_PREFIX, SELECT_CHANGE, STATUS_COMPLETE| Constructor and Description |
|---|
SkipInitialQuestionsStep() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addErrorField, addErrorMessage, clearErrorFields, getCurrentPage, getErrorFields, getErrorMessage, setCurrentPagepublic int doProcessing(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SubmissionInfo subInfo) throws javax.servlet.ServletException, IOException, SQLException, AuthorizeException
doProcessing in class AbstractProcessingStepcontext - current DSpace contextrequest - current servlet request objectresponse - current servlet response objectsubInfo - submission info objectjavax.servlet.ServletExceptionIOExceptionSQLExceptionAuthorizeExceptionpublic int getNumberOfPages(javax.servlet.http.HttpServletRequest request,
SubmissionInfo subInfo)
throws javax.servlet.ServletException
AbstractProcessingStepThis 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!
getNumberOfPages in class AbstractProcessingSteprequest - The HTTP RequestsubInfo - The current submission information objectjavax.servlet.ServletExceptionCopyright © 2014 DuraSpace. All Rights Reserved.