Package org.dspace.app.util
Class InitializeEntities
- java.lang.Object
-
- org.dspace.app.util.InitializeEntities
-
public class InitializeEntities extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static org.apache.commons.cli.OptionscreateCommandLineOptions()static voidmain(String[] argv)The main method for this script
-
-
-
Method Detail
-
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()
-
-