mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
DS-3755 minor changes
This commit is contained in:
@@ -105,7 +105,7 @@ public class WorkspaceItemConverter
|
||||
Object stepInstance = stepClass.newInstance();
|
||||
|
||||
if (stepInstance instanceof AbstractProcessingStep) {
|
||||
// load the JSPStep interface for this step
|
||||
// load the interface for this step
|
||||
AbstractRestProcessingStep stepProcessing = (AbstractRestProcessingStep) stepClass
|
||||
.newInstance();
|
||||
for(ErrorRest error : stepProcessing.validate(submissionService, obj, stepConfig)) {
|
||||
@@ -115,7 +115,7 @@ public class WorkspaceItemConverter
|
||||
} else {
|
||||
throw new Exception("The submission step class specified by '"
|
||||
+ stepConfig.getProcessingClassName()
|
||||
+ "' does not extend the class org.dspace.submit.AbstractProcessingStep!"
|
||||
+ "' does not extend the class org.dspace.app.rest.submit.AbstractRestProcessingStep!"
|
||||
+ " Therefore it cannot be used by the Configurable Submission as the <processing-class>!");
|
||||
}
|
||||
|
||||
|
@@ -109,7 +109,7 @@ public class SubmissionUploadRestRepository extends DSpaceRestRepository<Submiss
|
||||
return new SubmissionUploadResource(sd, utils, rels);
|
||||
}
|
||||
|
||||
private SubmissionUploadRest convert(Context context, UploadConfiguration<SubmissionFormFieldRest> config) throws Exception {
|
||||
private SubmissionUploadRest convert(Context context, UploadConfiguration config) throws Exception {
|
||||
SubmissionUploadRest result = new SubmissionUploadRest();
|
||||
for (AccessConditionOption option : config.getOptions()) {
|
||||
AccessConditionOptionRest optionRest = new AccessConditionOptionRest();
|
||||
|
Reference in New Issue
Block a user