1
|
package eu.dnetlib.repo.manager.client.services;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.RemoteService;
|
4
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
5
|
import eu.dnetlib.domain.functionality.validator.JobForValidation;
|
6
|
import eu.dnetlib.domain.functionality.validator.RuleSet;
|
7
|
import eu.dnetlib.domain.functionality.validator.StoredJob;
|
8
|
import eu.dnetlib.repo.manager.shared.InterfaceInformation;
|
9
|
import eu.dnetlib.repo.manager.shared.JobsOfUser;
|
10
|
import eu.dnetlib.repo.manager.shared.Tuple;
|
11
|
import eu.dnetlib.repo.manager.shared.ValidationServiceException;
|
12
|
|
13
|
import java.util.List;
|
14
|
|
15
|
/**
|
16
|
* Created by nikonas on 22/12/15.
|
17
|
*/
|
18
|
@RemoteServiceRelativePath("springGwtServices/validationService")
|
19
|
public interface ValidationService extends RemoteService {
|
20
|
|
21
|
List<String> getSets(String baseUrl) throws ValidationServiceException;
|
22
|
|
23
|
Boolean identifyRepository(String baseUrl) throws ValidationServiceException;
|
24
|
|
25
|
InterfaceInformation getInterfaceInformation(String baseUrl) throws ValidationServiceException;
|
26
|
|
27
|
List<RuleSet> getRuleSets(String validationMode) throws ValidationServiceException;
|
28
|
|
29
|
RuleSet getRuleSet(String acronym) throws ValidationServiceException;
|
30
|
|
31
|
void submitValidationJob(JobForValidation job) throws ValidationServiceException;
|
32
|
|
33
|
void reSubmitValidationJob(int jobId)
|
34
|
throws ValidationServiceException;
|
35
|
|
36
|
StoredJob getJobSummary(int jobId, String groupBy) throws ValidationServiceException;
|
37
|
|
38
|
List<StoredJob> getJobsOfUser(String user, String jobType, Integer offset, Integer limit, String dateFrom, String dateTo, String validationStatus) throws ValidationServiceException;
|
39
|
|
40
|
int getJobsTotalNumberOfUser(String user, String jobType, String validationStatus) throws ValidationServiceException;
|
41
|
|
42
|
JobsOfUser getJobsOfUser(String user, String jobType, Integer offset, Integer limit, String dateFrom, String dateTo, String validationStatus, boolean includeJobsTotal) throws ValidationServiceException;
|
43
|
}
|