1
|
package eu.dnetlib.repo.manager.service;
|
2
|
|
3
|
import eu.dnetlib.api.functionality.ValidatorServiceException;
|
4
|
import eu.dnetlib.domain.functionality.validator.JobForValidation;
|
5
|
import eu.dnetlib.domain.functionality.validator.RuleSet;
|
6
|
import eu.dnetlib.domain.functionality.validator.StoredJob;
|
7
|
import eu.dnetlib.repo.manager.domain.InterfaceInformation;
|
8
|
import eu.dnetlib.repo.manager.domain.ValidationServiceException;
|
9
|
import eu.dnetlib.repo.manager.exception.ResourceNotFoundException;
|
10
|
import org.json.JSONException;
|
11
|
import org.springframework.http.ResponseEntity;
|
12
|
|
13
|
import java.util.List;
|
14
|
|
15
|
|
16
|
|
17
|
public interface ValidatorService {
|
18
|
|
19
|
|
20
|
JobForValidation submitJobForValidation(JobForValidation jobForValidation) throws ValidatorServiceException;
|
21
|
|
22
|
ResponseEntity<Object> reSubmitJobForValidation(String email, String jobId) throws JSONException, ValidatorServiceException;
|
23
|
|
24
|
List<RuleSet> getRuleSets(String mode);
|
25
|
|
26
|
List<String> getSetsOfRepository(String url);
|
27
|
|
28
|
boolean identifyRepo(String url);
|
29
|
|
30
|
RuleSet getRuleSet(String acronym);
|
31
|
|
32
|
List<StoredJob> getStoredJobsNew(String user,
|
33
|
String jobType,
|
34
|
String offset,
|
35
|
String limit,
|
36
|
String dateFrom,
|
37
|
String dateTo,
|
38
|
String validationStatus) throws ValidatorServiceException;
|
39
|
|
40
|
int getStoredJobsTotalNumberNew(String user, String jobType, String validationStatus) throws ValidatorServiceException;
|
41
|
|
42
|
InterfaceInformation getInterfaceInformation(String baseUrl) throws ValidationServiceException;
|
43
|
|
44
|
List<StoredJob> getJobsSummary(String repoId, int limit) throws ValidatorServiceException, ResourceNotFoundException, JSONException;
|
45
|
}
|