public class UploadWithEmbargoStep extends UploadStep
This class performs all the behind-the-scenes processing that this particular step requires. This class's methods are utilized by both the JSP-UI and the Manakin XML-UI
SubmissionConfig
,
SubmissionStepConfig
,
UploadStep
,
AbstractProcessingStep
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_EDIT_POLICIES |
static int |
STATUS_EDIT_POLICIES_DUPLICATED_POLICY |
static int |
STATUS_EDIT_POLICIES_ERROR_SELECT_GROUP |
static int |
STATUS_EDIT_POLICY_DUPLICATED_POLICY |
static int |
STATUS_EDIT_POLICY_ERROR_SELECT_GROUP |
CANCEL_EDIT_BUTTON, fileRequired, STATUS_CONTAINS_VIRUS, STATUS_EDIT_BITSTREAM, STATUS_EDIT_COMPLETE, STATUS_INTEGRITY_ERROR, STATUS_NO_FILES_ERROR, STATUS_UNKNOWN_FORMAT, STATUS_UPLOAD_ERROR, STATUS_VIRUS_CHECKER_UNAVAILABLE, SUBMIT_MORE_BUTTON, SUBMIT_SKIP_BUTTON, SUBMIT_UPLOAD_BUTTON
CANCEL_BUTTON, LAST_PAGE_REACHED, NEXT_BUTTON, PREVIOUS_BUTTON, PROGRESS_BAR_PREFIX, SELECT_CHANGE, STATUS_COMPLETE
Constructor and Description |
---|
UploadWithEmbargoStep() |
Modifier and Type | Method and Description |
---|---|
int |
doProcessing(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
Do any processing of the information input by the user, and/or perform
step processing (if no user interaction required)
It is this method's job to save any data to the underlying database, as
necessary, and return error messages (if any) which can then be processed
by the appropriate user interface (JSP-UI or XML-UI)
NOTE: If this step is a non-interactive step (i.e. requires no UI), then
it should perform *all* of its processing in this method!
|
protected int |
processUploadFile(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
Process the upload of a new file!
|
backoutBitstream, getNumberOfPages, processRemoveFile, processSaveFileDescription, processSaveFileFormat
addErrorField, addErrorMessage, clearErrorFields, getCurrentPage, getErrorFields, getErrorMessage, setCurrentPage
public static final int STATUS_EDIT_POLICIES
public static final int STATUS_EDIT_POLICIES_ERROR_SELECT_GROUP
public static final int STATUS_EDIT_POLICIES_DUPLICATED_POLICY
public static final int STATUS_EDIT_POLICY_ERROR_SELECT_GROUP
public static final int STATUS_EDIT_POLICY_DUPLICATED_POLICY
public int doProcessing(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SubmissionInfo subInfo) throws javax.servlet.ServletException, IOException, SQLException, AuthorizeException
It is this method's job to save any data to the underlying database, as necessary, and return error messages (if any) which can then be processed by the appropriate user interface (JSP-UI or XML-UI)
NOTE: If this step is a non-interactive step (i.e. requires no UI), then it should perform *all* of its processing in this method!
doProcessing
in class UploadStep
context
- current DSpace contextrequest
- current servlet request objectresponse
- current servlet response objectsubInfo
- submission info objectjavax.servlet.ServletException
IOException
SQLException
AuthorizeException
protected int processUploadFile(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SubmissionInfo subInfo) throws javax.servlet.ServletException, IOException, SQLException, AuthorizeException
processUploadFile
in class UploadStep
context
- current DSpace contextrequest
- current servlet request objectresponse
- current servlet response objectsubInfo
- submission info objectjavax.servlet.ServletException
IOException
SQLException
AuthorizeException
Copyright © 2016 DuraSpace. All Rights Reserved.