|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.util.SubmissionInfo
public class SubmissionInfo
Information about an item being editing with the submission UI
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public 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 for
javax.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 object
javax.servlet.ServletException - if an error occurs
public SubmissionStepConfig getStepConfig(String stepID)
throws javax.servlet.ServletException
Global step definitions are those defined in the
stepID - step's identifier
javax.servlet.ServletException - if no default submission process configuration defined
public 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 page
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||