mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 21:43:11 +00:00
CST-11298 sql file renaming and junit java fix
This commit is contained in:
@@ -8,13 +8,9 @@
|
|||||||
package org.dspace.qaevent.script;
|
package org.dspace.qaevent.script;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.sql.SQLException;
|
|
||||||
|
|
||||||
import org.apache.commons.cli.Options;
|
import org.apache.commons.cli.Options;
|
||||||
import org.dspace.authorize.service.AuthorizeService;
|
|
||||||
import org.dspace.core.Context;
|
|
||||||
import org.dspace.scripts.configuration.ScriptConfiguration;
|
import org.dspace.scripts.configuration.ScriptConfiguration;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extension of {@link ScriptConfiguration} to perfom a QAEvents import from
|
* Extension of {@link ScriptConfiguration} to perfom a QAEvents import from
|
||||||
@@ -25,9 +21,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
*/
|
*/
|
||||||
public class OpenaireEventsImportScriptConfiguration<T extends OpenaireEventsImport> extends ScriptConfiguration<T> {
|
public class OpenaireEventsImportScriptConfiguration<T extends OpenaireEventsImport> extends ScriptConfiguration<T> {
|
||||||
|
|
||||||
@Autowired
|
/*
|
||||||
private AuthorizeService authorizeService;
|
private AuthorizeService authorizeService;
|
||||||
|
*/
|
||||||
private Class<T> dspaceRunnableClass;
|
private Class<T> dspaceRunnableClass;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -43,7 +39,7 @@ public class OpenaireEventsImportScriptConfiguration<T extends OpenaireEventsImp
|
|||||||
public void setDspaceRunnableClass(Class<T> dspaceRunnableClass) {
|
public void setDspaceRunnableClass(Class<T> dspaceRunnableClass) {
|
||||||
this.dspaceRunnableClass = dspaceRunnableClass;
|
this.dspaceRunnableClass = dspaceRunnableClass;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
@Override
|
@Override
|
||||||
public boolean isAllowedToExecute(Context context) {
|
public boolean isAllowedToExecute(Context context) {
|
||||||
try {
|
try {
|
||||||
@@ -52,7 +48,7 @@ public class OpenaireEventsImportScriptConfiguration<T extends OpenaireEventsImp
|
|||||||
throw new RuntimeException("SQLException occurred when checking if the current user is an admin", e);
|
throw new RuntimeException("SQLException occurred when checking if the current user is an admin", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Options getOptions() {
|
public Options getOptions() {
|
||||||
if (options == null) {
|
if (options == null) {
|
||||||
|
Reference in New Issue
Block a user