Package org.dspace.app.util
Class InitializeEntities
java.lang.Object
org.dspace.app.util.InitializeEntities
This script is used to initialize the database with a set of relationship types that are written
in an xml file that is given to this script.
This XML file needs to have a proper XML structure and needs to define the variables of the RelationshipType object.
-
Method Summary
Modifier and TypeMethodDescriptionprotected static org.apache.commons.cli.OptionsCreate the command-line optionsstatic voidThe main method for this script
-
Method Details
-
main
public static void main(String[] argv) throws SQLException, AuthorizeException, org.apache.commons.cli.ParseException The main method for this script- Parameters:
argv- The command line arguments given with this command- Throws:
SQLException- If something goes wrong with the databaseAuthorizeException- If something goes wrong with permissionsorg.apache.commons.cli.ParseException- If something goes wrong with the parsing
-
createCommandLineOptions
protected static org.apache.commons.cli.Options createCommandLineOptions()Create the command-line options- Returns:
- the command-line options
-