public class MetadataImporter extends Object
<dspace-dc-types>
<dc-type>
<schema>icadmin</schema>
<element>status</element>
<qualifier>dateset</qualifier>
<scope_note>the workflow status of an item</scope_note>
</dc-type>
[....]
</dspace-dc-types>
| Modifier and Type | Field and Description |
|---|---|
protected static MetadataFieldService |
metadataFieldService |
protected static MetadataSchemaService |
metadataSchemaService |
| Constructor and Description |
|---|
MetadataImporter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
loadRegistry(String file,
boolean forceUpdate)
Load the data from the specified file path into the database
|
static void |
main(String[] args)
main method for reading user input from the command line
|
static void |
usage()
Print the usage message to stdout
|
protected static MetadataSchemaService metadataSchemaService
protected static MetadataFieldService metadataFieldService
public static void main(String[] args) throws org.apache.commons.cli.ParseException, SQLException, IOException, TransformerException, ParserConfigurationException, AuthorizeException, SAXException, NonUniqueMetadataException, RegistryImportException
args - argumentsorg.apache.commons.cli.ParseException - if parse errorSQLException - if database errorIOException - if IO errorTransformerException - if transformer errorParserConfigurationException - if config errorAuthorizeException - if authorization errorSAXException - if parser errorNonUniqueMetadataException - if duplicate metadataRegistryImportException - if import failspublic static void loadRegistry(String file, boolean forceUpdate) throws SQLException, IOException, TransformerException, ParserConfigurationException, AuthorizeException, SAXException, NonUniqueMetadataException, RegistryImportException
file - the file path containing the source dataforceUpdate - whether to force updateSQLException - if database errorIOException - if IO errorTransformerException - if transformer errorParserConfigurationException - if config errorAuthorizeException - if authorization errorSAXException - if parser errorNonUniqueMetadataException - if duplicate metadataRegistryImportException - if import failspublic static void usage()
Copyright © 2022 LYRASIS. All rights reserved.