public class MetadataExporter extends Object
<metadata-schemas>
<schema>
<name>dc</name>
<namespace>http://dublincore.org/documents/dcmi-terms/</namespace>
</schema>
</metadata-schemas>
| Modifier and Type | Field and Description |
|---|---|
protected static MetadataFieldService |
metadataFieldService |
protected static MetadataSchemaService |
metadataSchemaService |
| Constructor and Description |
|---|
MetadataExporter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static void |
saveRegistry(String file,
String schema)
Save a registry to a filepath
|
static void |
saveSchema(Context context,
org.apache.xml.serialize.XMLSerializer xmlSerializer,
String schema)
Serialize the schema registry.
|
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, SAXException, RegistryExportException
args - commandline argumentsorg.apache.commons.cli.ParseException - if parser errorSAXException - if XML parse errorIOException - if IO errorSQLException - if database errorRegistryExportException - if export errorpublic static void saveRegistry(String file, String schema) throws SQLException, IOException, SAXException, RegistryExportException
file - filepathschema - schema definition to saveSQLException - if database errorIOException - if IO errorSAXException - if XML errorRegistryExportException - if export errorpublic static void saveSchema(Context context, org.apache.xml.serialize.XMLSerializer xmlSerializer, String schema) throws SQLException, SAXException, RegistryExportException
context - DSpace ContextxmlSerializer - XML serializerschema - schema (may be null to save all)SQLException - if database errorSAXException - if XML errorRegistryExportException - if export errorpublic static void usage()
Copyright © 2016 DuraSpace. All rights reserved.