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 |
|---|---|
protected GroupService |
groupService |
protected HandleService |
handleService |
protected ResourcePolicyService |
resourcePolicyService |
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 |
bitstreamFormatService, 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_BUTTONauthorizeService, bitstreamService, bundleService, CANCEL_BUTTON, collectionService, configurationService, itemService, LAST_PAGE_REACHED, metadataFieldService, 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)
|
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, processSaveFileFormataddErrorField, addErrorMessage, clearErrorFields, getCurrentPage, getErrorFields, getErrorMessage, setCurrentPagepublic 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
protected HandleService handleService
protected GroupService groupService
protected ResourcePolicyService resourcePolicyService
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 UploadStepcontext - current DSpace contextrequest - current servlet request objectresponse - current servlet response objectsubInfo - submission info objectjavax.servlet.ServletExceptionIOExceptionSQLExceptionAuthorizeExceptionpublic 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 UploadStepcontext - current DSpace contextrequest - current servlet request objectresponse - current servlet response objectsubInfo - submission info objectjavax.servlet.ServletExceptionIOExceptionSQLExceptionAuthorizeExceptionCopyright © 2016 DuraSpace. All rights reserved.