Package org.dspace.administer
Class RegistryLoader
- java.lang.Object
-
- 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.xmlRegistryLoader -dc dc-types.xml- Version:
- $Revision$
- Author:
- Robert Tansley
-
-
Field Summary
Fields Modifier and Type Field Description protected static BitstreamFormatServicebitstreamFormatService
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidloadBitstreamFormats(Context context, String filename)Load Bitstream Format metadatastatic voidmain(String[] argv)For invoking via the command line
-
-
-
Field Detail
-
bitstreamFormatService
protected static BitstreamFormatService bitstreamFormatService
-
-
Method Detail
-
main
public static void main(String[] argv) throws Exception
For invoking via the command line- Parameters:
argv- the command line arguments given- Throws:
Exception- if error
-
loadBitstreamFormats
public static void loadBitstreamFormats(Context context, String filename) throws SQLException, IOException, ParserConfigurationException, SAXException, TransformerException, AuthorizeException, XPathExpressionException
Load Bitstream Format metadata- Parameters:
context- DSpace context objectfilename- the filename of the XML file to load- Throws:
SQLException- if database errorIOException- if IO errorTransformerException- if transformer errorParserConfigurationException- if config errorAuthorizeException- if authorization errorSAXException- if parser errorXPathExpressionException
-
-