Project

General

Profile

« Previous | Next » 

Revision 57215

Added method getting job summary

View differences:

modules/uoa-clients/trunk/src/main/java/eu/dnetlib/clients/functionality/validator/ws/ValidatorWebServiceClient.java
6 6
import eu.dnetlib.api.functionality.ValidatorServiceException;
7 7
import eu.dnetlib.clients.ws.BaseWebServiceClient;
8 8
import eu.dnetlib.domain.functionality.validator.JobForValidation;
9
import eu.dnetlib.domain.functionality.validator.JobResultEntry;
9 10
import eu.dnetlib.domain.functionality.validator.RuleSet;
10 11
import eu.dnetlib.domain.functionality.validator.StoredJob;
12
import org.apache.log4j.Logger;
11 13

  
12 14
public class ValidatorWebServiceClient extends
13 15
		BaseWebServiceClient<ValidatorWebService> implements ValidatorService {
14 16

  
17
	private Logger logger = Logger.getLogger(ValidatorWebServiceClient.class);
18

  
15 19
	@Override
16 20
	public StoredJob getStoredJob(int jobId, String groupBy)
17 21
			throws ValidatorServiceException {
......
19 23
	}
20 24

  
21 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
22 32
	public List<StoredJob> getStoredJobs(String userMail, String jobType, Integer offset, Integer limit, String dateFrom, String dateTo)
23 33
			throws ValidatorServiceException {
24 34
		return this.webService.getStoredJobs(userMail, jobType, offset, limit, dateFrom, dateTo);
modules/uoa-clients/trunk/src/main/java/eu/dnetlib/clients/functionality/validator/ws/ValidatorWebService.java
10 10
import eu.dnetlib.api.functionality.ValidatorServiceException;
11 11
import eu.dnetlib.clients.ws.DriverWebService;
12 12
import eu.dnetlib.domain.functionality.validator.JobForValidation;
13
import eu.dnetlib.domain.functionality.validator.JobResultEntry;
13 14
import eu.dnetlib.domain.functionality.validator.RuleSet;
14 15
import eu.dnetlib.domain.functionality.validator.StoredJob;
15 16

  
......
19 20
	@WebMethod(operationName = "getStoredJob")
20 21
	StoredJob getStoredJob(@WebParam(name = "jobId") int jobId, @WebParam(name = "groupBy") String groupBy) throws ValidatorServiceException;
21 22

  
23
	@WebMethod(operationName = "getJobSummary")
24
	List<StoredJob> getJobSummary(@WebParam(name = "baseUrl") List<String> baseUrl, @WebParam(name = "limit") int limit) throws ValidatorServiceException;
25

  
22 26
	@WebMethod(operationName = "getStoredJobs")
23 27
	List<StoredJob> getStoredJobs(@WebParam(name = "userMail") String userMail, @WebParam(name = "jobType") String jobType, @WebParam(name = "offset") Integer offset, @WebParam(name = "limit") Integer limit, @WebParam(name = "dateFrom") String dateFrom, @WebParam(name = "dateTo") String dateTo) throws ValidatorServiceException;
24 28

  
modules/uoa-clients/trunk/src/main/java/eu/dnetlib/clients/functionality/validator/ws/ValidatorWebServiceImpl.java
4 4
import eu.dnetlib.api.functionality.ValidatorServiceException;
5 5
import eu.dnetlib.clients.ws.BaseDriverWebService;
6 6
import eu.dnetlib.domain.functionality.validator.JobForValidation;
7
import eu.dnetlib.domain.functionality.validator.JobResultEntry;
7 8
import eu.dnetlib.domain.functionality.validator.RuleSet;
8 9
import eu.dnetlib.domain.functionality.validator.StoredJob;
9 10

  
......
25 26
	}
26 27

  
27 28
	@Override
29
	public List<StoredJob> getJobSummary(List<String> baseUrl, int limit) throws ValidatorServiceException {
30
		return service.getJobSummary(baseUrl,limit);
31
	}
32

  
33
	@Override
28 34
	public List<StoredJob> getStoredJobs(String userMail, String jobType,
29 35
			Integer offset, Integer limit, String dateFrom, String dateTo) throws ValidatorServiceException {
30 36
		return service.getStoredJobs(userMail, jobType, offset, limit, dateFrom, dateTo);

Also available in: Unified diff