mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +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;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.sql.SQLException;
|
||||
|
||||
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.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* 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> {
|
||||
|
||||
@Autowired
|
||||
/*
|
||||
private AuthorizeService authorizeService;
|
||||
|
||||
*/
|
||||
private Class<T> dspaceRunnableClass;
|
||||
|
||||
@Override
|
||||
@@ -43,7 +39,7 @@ public class OpenaireEventsImportScriptConfiguration<T extends OpenaireEventsImp
|
||||
public void setDspaceRunnableClass(Class<T> dspaceRunnableClass) {
|
||||
this.dspaceRunnableClass = dspaceRunnableClass;
|
||||
}
|
||||
|
||||
/*
|
||||
@Override
|
||||
public boolean isAllowedToExecute(Context context) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
@Override
|
||||
public Options getOptions() {
|
||||
if (options == null) {
|
||||
|
Reference in New Issue
Block a user