org.dspace.administer
Class RegistryLoader

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

public class RegistryLoader
extends Object

Loads the bitstream format and Dublin Core type registries into the database. Intended for use as a command-line tool.

Example usage:

RegistryLoader -bitstream bitstream-formats.xml

RegistryLoader -dc dc-types.xml

Version:
$Revision: 4660 $
Author:
Robert Tansley

Constructor Summary
RegistryLoader()
           
 
Method Summary
static void loadBitstreamFormats(Context context, String filename)
          Load Bitstream Format metadata
static void loadDublinCoreTypes(Context context, String filename)
          Load Dublin Core types
static void main(String[] argv)
          For invoking via the command line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryLoader

public RegistryLoader()
Method Detail

main

public static void main(String[] argv)
                 throws Exception
For invoking via the command line

Parameters:
argv - command-line arguments
Throws:
Exception

loadBitstreamFormats

public static void loadBitstreamFormats(Context context,
                                        String filename)
                                 throws SQLException,
                                        IOException,
                                        ParserConfigurationException,
                                        SAXException,
                                        TransformerException,
                                        AuthorizeException
Load Bitstream Format metadata

Parameters:
context - DSpace context object
filename - the filename of the XML file to load
Throws:
SQLException
IOException
ParserConfigurationException
SAXException
TransformerException
AuthorizeException

loadDublinCoreTypes

public static void loadDublinCoreTypes(Context context,
                                       String filename)
                                throws SQLException,
                                       IOException,
                                       ParserConfigurationException,
                                       SAXException,
                                       TransformerException,
                                       AuthorizeException,
                                       NonUniqueMetadataException
Load Dublin Core types

Parameters:
context - DSpace context object
filename - the filename of the XML file to load
Throws:
NonUniqueMetadataException
SQLException
IOException
ParserConfigurationException
SAXException
TransformerException
AuthorizeException


Copyright © 2010 DuraSpace. All Rights Reserved.