Package org.dspace.submit.migration
Class SubmissionFormsMigration
- java.lang.Object
-
- org.dspace.scripts.DSpaceRunnable<SubmissionFormsMigrationCliScriptConfiguration>
-
- org.dspace.submit.migration.SubmissionFormsMigration
-
- All Implemented Interfaces:
Runnable
public class SubmissionFormsMigration extends DSpaceRunnable<SubmissionFormsMigrationCliScriptConfiguration>
Script (configSubmissionFormsMigrationCliScriptConfiguration) to transform the old input-forms.xml and item-submission.xml via XSLT (xsl files in dspace/config/migration) into respectively the new submission-forms.xsl and item-submissions.xsl files- Author:
- Maria Verdonck (Atmire) on 13/11/2020
-
-
Field Summary
-
Fields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler
-
-
Constructor Summary
Constructors Constructor Description SubmissionFormsMigration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmissionFormsMigrationCliScriptConfigurationgetScriptConfiguration()This method will return the Configuration that the implementing DSpaceRunnable usesvoidinternalRun()This method has to be included in every script and this will be the main execution block for the script that'll contain all the logic neededvoidsetup()This method has to be included in every script and handles the setup of the script by parsing the CommandLine and setting the variables-
Methods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, printHelp, run, setEpersonIdentifier
-
-
-
-
Method Detail
-
internalRun
public void internalRun() throws TransformerExceptionDescription copied from class:DSpaceRunnableThis method has to be included in every script and this will be the main execution block for the script that'll contain all the logic needed- Specified by:
internalRunin classDSpaceRunnable<SubmissionFormsMigrationCliScriptConfiguration>- Throws:
TransformerException
-
setup
public void setup() throws org.apache.commons.cli.ParseExceptionDescription copied from class:DSpaceRunnableThis method has to be included in every script and handles the setup of the script by parsing the CommandLine and setting the variables- Specified by:
setupin classDSpaceRunnable<SubmissionFormsMigrationCliScriptConfiguration>- Throws:
org.apache.commons.cli.ParseException- If something goes wrong
-
getScriptConfiguration
public SubmissionFormsMigrationCliScriptConfiguration getScriptConfiguration()
Description copied from class:DSpaceRunnableThis method will return the Configuration that the implementing DSpaceRunnable uses- Specified by:
getScriptConfigurationin classDSpaceRunnable<SubmissionFormsMigrationCliScriptConfiguration>- Returns:
- The
ScriptConfigurationthat this implementing DspaceRunnable uses
-
-