[Task 72232] altered email param usage for curation scripts when being called from cli or rest

This commit is contained in:
Raf Ponsaerts
2020-08-11 09:42:07 +02:00
parent d1ee942bd4
commit 240b327bb3
12 changed files with 556 additions and 434 deletions

View File

@@ -0,0 +1,22 @@
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.curate;
import org.apache.commons.cli.Options;
public class CurationCliScriptConfiguration extends CurationScriptConfiguration<Curation> {
@Override
public Options getOptions() {
options = super.getOptions();
options.addOption("e", "eperson", true, "email address of curating eperson");
options.getOption("e").setType(String.class);
options.getOption("e").setRequired(true);
return options;
}
}