Package org.dspace.administer
Class RegistryLoader
java.lang.Object
org.dspace.administer.RegistryLoader
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 -metadata dc-types.xml
- Version:
- $Revision$
- Author:
- Robert Tansley
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidloadBitstreamFormats(Context context, String filename) Load Bitstream Format metadatastatic voidFor invoking via the command line
-
Field Details
-
bitstreamFormatService
-
-
Method Details
-
main
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
-