public class SubmissionConfig extends Object implements Serializable
SubmissionConfigReader,
SubmissionStepConfig,
Serialized Form| Constructor and Description |
|---|
SubmissionConfig(String submissionName,
List<Map<String,String>> steps,
boolean isWorkflowProcess)
Constructs a new Submission Configuration object, based on the XML
configuration file (item-submission.xml)
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfSteps()
Return the number of steps in this submission process
|
SubmissionStepConfig |
getStep(int stepNum)
Retrieve a particular Step configuration in this Item Submission Process
configuration.
|
String |
getSubmissionName()
Return the name of the item submission process definition
|
boolean |
hasMoreSteps(int stepNum)
Returns whether or not there are more steps which follow the specified
"stepNum".
|
boolean |
isWorkflow()
Return whether or not this submission process is being used in a
workflow!
|
public SubmissionConfig(String submissionName, List<Map<String,String>> steps, boolean isWorkflowProcess)
submissionName - the submission process namesteps - the vector listing of step information to build
SubmissionStepConfig objects for this submission processisWorkflowProcess - whether this submission process is being used in a workflow or
not. If it is a workflow process this may limit the steps that
are available for editing.public String getSubmissionName()
public int getNumberOfSteps()
public boolean isWorkflow()
public SubmissionStepConfig getStep(int stepNum)
If you want to retrieve the step after the "select collection" step, you should retrieve step #1. If the specified step isn't found, null is returned.
stepNum - desired step to retrievepublic boolean hasMoreSteps(int stepNum)
stepNum - the current step.Copyright © 2017 DuraSpace. All rights reserved.