1
|
package eu.dnetlib.clients.functionality.validator.ws;
|
2
|
|
3
|
import java.util.List;
|
4
|
|
5
|
import eu.dnetlib.api.functionality.ValidatorService;
|
6
|
import eu.dnetlib.api.functionality.ValidatorServiceException;
|
7
|
import eu.dnetlib.clients.ws.BaseWebServiceClient;
|
8
|
import eu.dnetlib.domain.functionality.validator.JobForValidation;
|
9
|
import eu.dnetlib.domain.functionality.validator.JobResultEntry;
|
10
|
import eu.dnetlib.domain.functionality.validator.RuleSet;
|
11
|
import eu.dnetlib.domain.functionality.validator.StoredJob;
|
12
|
import org.apache.log4j.Logger;
|
13
|
|
14
|
public class ValidatorWebServiceClient extends
|
15
|
BaseWebServiceClient<ValidatorWebService> implements ValidatorService {
|
16
|
|
17
|
private Logger logger = Logger.getLogger(ValidatorWebServiceClient.class);
|
18
|
|
19
|
@Override
|
20
|
public StoredJob getStoredJob(int jobId, String groupBy)
|
21
|
throws ValidatorServiceException {
|
22
|
return this.webService.getStoredJob(jobId, groupBy);
|
23
|
}
|
24
|
|
25
|
@Override
|
26
|
public List<StoredJob> getJobSummary(List<String> baseUrl, int size)
|
27
|
throws ValidatorServiceException {
|
28
|
return this.webService.getJobSummary(baseUrl, size);
|
29
|
}
|
30
|
|
31
|
@Override
|
32
|
public List<StoredJob> getStoredJobs(String userMail, String jobType, Integer offset, Integer limit, String dateFrom, String dateTo)
|
33
|
throws ValidatorServiceException {
|
34
|
return this.webService.getStoredJobs(userMail, jobType, offset, limit, dateFrom, dateTo);
|
35
|
}
|
36
|
|
37
|
@Override
|
38
|
public List<StoredJob> getStoredJobsNew(String userMail, String jobType, Integer offset, Integer limit, String dateFrom, String dateTo, String jobStatus)
|
39
|
throws ValidatorServiceException {
|
40
|
return this.webService.getStoredJobsNew(userMail, jobType, offset, limit, dateFrom, dateTo, jobStatus);
|
41
|
}
|
42
|
|
43
|
@Override
|
44
|
public int getStoredJobsTotalNumber(String userMail, String jobType)
|
45
|
throws ValidatorServiceException {
|
46
|
return this.webService.getStoredJobsTotalNumber(userMail, jobType);
|
47
|
}
|
48
|
|
49
|
@Override
|
50
|
public int getStoredJobsTotalNumberNew(String userMail, String jobType, String jobStatus)
|
51
|
throws ValidatorServiceException {
|
52
|
return this.webService.getStoredJobsTotalNumberNew(userMail, jobType, jobStatus);
|
53
|
}
|
54
|
|
55
|
@Override
|
56
|
public List<RuleSet> getRuleSets() throws ValidatorServiceException {
|
57
|
return this.webService.getRuleSets();
|
58
|
}
|
59
|
|
60
|
@Override
|
61
|
public void submitValidationJob(JobForValidation job)
|
62
|
throws ValidatorServiceException {
|
63
|
this.webService.submitValidationJob(job);
|
64
|
}
|
65
|
|
66
|
|
67
|
|
68
|
}
|