public class SubmissionInfo extends HashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
Bitstream |
getBitstream()
Return the current bitstream we're working with (This is used during
upload processes, or user interfaces that are dealing with bitstreams)
|
Bundle |
getBundle()
Return the current bundle we're working with (This is used during upload
processes, or user interfaces that are dealing with bundles/bitstreams)
|
String |
getCollectionHandle()
Gets the handle of the collection to which this item is being submitted
|
String |
getJumpToField()
Return metadata field which JSP should "jump to" (i.e.
|
List<String> |
getMissingFields()
Return form related indices of the required fields which were not filled
out by the user.
|
String |
getMoreBoxesFor()
Return metadata field which user has requested more input boxes be
displayed (by pressing "Add More" on one of the "Describe" pages)
|
Map<String,String> |
getProgressBarInfo()
Return the information used to build the progress bar (this includes all
the steps in this submission, as well as the ordering and names of the
steps).
|
SubmissionStepConfig |
getStepConfig(String stepID)
Returns a particular global step definition based on its ID.
|
SubmissionConfig |
getSubmissionConfig()
Return the current submission process config (which includes all steps
which need to be completed for the submission to be successful)
|
InProgressSubmission |
getSubmissionItem()
Return the current in progress submission
|
String |
getSubmissionLogInfo()
Return text information suitable for logging.
|
boolean |
isInWorkflow()
Is this submission in the workflow process?
|
static SubmissionInfo |
load(javax.servlet.http.HttpServletRequest request,
InProgressSubmission subItem)
Loads all known submission information based on the given in progress
submission and request object.
|
void |
reloadSubmissionConfig(javax.servlet.http.HttpServletRequest request)
Causes the SubmissionConfig to be completely reloaded from the XML
configuration file (item-submission.xml).
|
void |
setBitstream(Bitstream bits)
Sets the current bitstream we're working with (This is used during upload
processes, or user interfaces that are dealing with bitstreams)
|
void |
setBundle(Bundle bund)
Sets the current bundle we're working with (This is used during upload
processes, or user interfaces that are dealing with bundles/bitstreams)
|
void |
setCollectionHandle(String handle)
Sets the handle of the collection to which this item is being submitted
|
void |
setJumpToField(String fieldname)
Sets metadata field which JSP should "jump to" (i.e.
|
void |
setMissingFields(List<String> missing)
Sets the form related indices of the required fields which were not
filled out by the user.
|
void |
setMoreBoxesFor(String fieldname)
Sets the metadata field which user has requested more input boxes be
displayed (by pressing "Add More" on one of the "Describe" pages)
|
void |
setSubmissionItem(InProgressSubmission subItem)
Updates the current in progress submission item
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic static SubmissionInfo load(javax.servlet.http.HttpServletRequest request, InProgressSubmission subItem) throws javax.servlet.ServletException
If subItem is null, then just loads the default submission information for a new submission.
request - The HTTP Servlet Request objectsubItem - The in-progress submission we are loading information forjavax.servlet.ServletException - if an error occurspublic boolean isInWorkflow()
public InProgressSubmission getSubmissionItem()
public void setSubmissionItem(InProgressSubmission subItem)
subItem - the new InProgressSubmission objectpublic SubmissionConfig getSubmissionConfig()
public void reloadSubmissionConfig(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
Note: This also reloads the progress bar info, since the progress bar depends entirely on the submission process (and its steps).
request - The HTTP Servlet Request objectjavax.servlet.ServletException - if an error occurspublic SubmissionStepConfig getStepConfig(String stepID) throws javax.servlet.ServletException
Global step definitions are those defined in the <step-definitions>
section of the configuration file.
stepID - step's identifierjavax.servlet.ServletException - if no default submission process configuration definedpublic String getSubmissionLogInfo()
This method is used by several of the Step classes to log major events during the submission process (e.g. when license agreement was accepted, when item was submitted, when it was available in DSpace, etc.)
public String getCollectionHandle()
public void setCollectionHandle(String handle)
handle - the new collection handlepublic Map<String,String> getProgressBarInfo()
Returns a Hashmap, with the following specifics:
Keys are the number of the step, followed by the number of the page within the step
(e.g. "2.1" = The first page of Step 2)
(e.g. "5.2" = The second page of Step 5)
Values are the Headings to display for each step (e.g. "Describe")
public Bitstream getBitstream()
public void setBitstream(Bitstream bits)
bits - the bitstreampublic Bundle getBundle()
public void setBundle(Bundle bund)
bund - the bundlepublic List<String> getMissingFields()
public void setMissingFields(List<String> missing)
missing - the List of empty fields which are requiredpublic String getMoreBoxesFor()
public void setMoreBoxesFor(String fieldname)
fieldname - the name of the field element on the pagepublic String getJumpToField()
public void setJumpToField(String fieldname)
fieldname - the name of the field on the pageCopyright © 2022 LYRASIS. All rights reserved.