public class DCInputsReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_COLLECTION
The ID of the default collection.
|
| Constructor and Description |
|---|
DCInputsReader()
Parse an XML encoded submission forms template file, and create a hashmap
containing all the form information.
|
DCInputsReader(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
int |
countInputs() |
List<DCInputSet> |
getAllInputs(Integer limit,
Integer offset)
Returns all the Input forms with pagination
|
String |
getInputFormNameByCollectionAndField(Collection collection,
String field) |
List<DCInputSet> |
getInputsByCollectionHandle(String collectionHandle)
Returns the set of DC inputs used for a particular collection, or the
default set if no inputs defined for the collection
|
DCInputSet |
getInputsByFormName(String formName)
Returns the set of DC inputs used for a particular input form
|
List<DCInputSet> |
getInputsBySubmissionName(String name) |
List<String> |
getPairs(String name) |
Iterator<String> |
getPairsNameIterator() |
public static final String DEFAULT_COLLECTION
public DCInputsReader()
throws DCInputsReaderException
DCInputsReaderException - if input reader errorpublic DCInputsReader(String fileName) throws DCInputsReaderException
DCInputsReaderExceptionpublic List<DCInputSet> getInputsByCollectionHandle(String collectionHandle) throws DCInputsReaderException
collectionHandle - collection's unique HandleDCInputsReaderException - if no default set definedjavax.servlet.ServletExceptionpublic List<DCInputSet> getInputsBySubmissionName(String name) throws DCInputsReaderException
DCInputsReaderExceptionpublic DCInputSet getInputsByFormName(String formName) throws DCInputsReaderException
formName - input form unique nameDCInputsReaderException - if not foundpublic int countInputs()
public List<DCInputSet> getAllInputs(Integer limit, Integer offset) throws DCInputsReaderException
limit - max number of Input Forms to returnoffset - number of Input form to skip in the returnDCInputsReaderExceptionpublic String getInputFormNameByCollectionAndField(Collection collection, String field) throws DCInputsReaderException
DCInputsReaderExceptionCopyright © 2019 DuraSpace. All rights reserved.