org.dspace.administer
Class MetadataImporter

java.lang.Object
  extended by org.dspace.administer.MetadataImporter

public class MetadataImporter
extends Object

Author:
Richard Jones This class takes an xml document as passed in the arguments and uses it to create metadata elements in the Metadata Registry if they do not already exist The format of the XML file is as follows: icadmin status dateset the workflow status of an item [....]

Constructor Summary
MetadataImporter()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataImporter

public MetadataImporter()
Method Detail

main

public static void main(String[] args)
                 throws org.apache.commons.cli.ParseException,
                        SQLException,
                        IOException,
                        TransformerException,
                        ParserConfigurationException,
                        AuthorizeException,
                        SAXException,
                        NonUniqueMetadataException,
                        RegistryImportException
main method for reading user input from the command line

Throws:
org.apache.commons.cli.ParseException
SQLException
IOException
TransformerException
ParserConfigurationException
AuthorizeException
SAXException
NonUniqueMetadataException
RegistryImportException

loadRegistry

public static void loadRegistry(String file,
                                boolean forceUpdate)
                         throws SQLException,
                                IOException,
                                TransformerException,
                                ParserConfigurationException,
                                AuthorizeException,
                                SAXException,
                                NonUniqueMetadataException,
                                RegistryImportException
Load the data from the specified file path into the database

Parameters:
file - the file path containing the source data
Throws:
SQLException
IOException
TransformerException
ParserConfigurationException
AuthorizeException
SAXException
NonUniqueMetadataException
RegistryImportException

usage

public static void usage()
Print the usage message to stdout



Copyright © 2010 DuraSpace. All Rights Reserved.