Revision 50304
Added by Panagiotis Kanakakis over 6 years ago
modules/uoa-repository-manager-service/trunk/src/main/java/eu/dnetlib/repo/manager/service/controllers/ValidatorApi.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.repo.manager.service.controllers; |
2 | 2 |
|
3 |
import eu.dnetlib.api.functionality.ValidatorServiceException; |
|
3 | 4 |
import eu.dnetlib.domain.functionality.validator.JobForValidation; |
4 | 5 |
import eu.dnetlib.domain.functionality.validator.RuleSet; |
6 |
import eu.dnetlib.domain.functionality.validator.StoredJob; |
|
7 |
import eu.dnetlib.repo.manager.shared.ValidationServiceException; |
|
5 | 8 |
import io.swagger.annotations.Api; |
6 | 9 |
import org.json.JSONException; |
7 | 10 |
import org.springframework.http.MediaType; |
... | ... | |
39 | 42 |
@ResponseBody |
40 | 43 |
RuleSet getRuleSet(String acronym); |
41 | 44 |
|
45 |
@RequestMapping(value = "/getStoredJobsNew" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
|
46 |
@ResponseBody |
|
47 |
List<StoredJob> getStoredJobsNew(String user, String jobType, Integer offset, Integer limit, String dateFrom, |
|
48 |
String dateTo, String validationStatus) throws ValidatorServiceException; |
|
49 |
|
|
50 |
|
|
51 |
@RequestMapping(value = "/getStoredJobsTotalNumberNew" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
|
52 |
@ResponseBody |
|
53 |
int getStoredJobsTotalNumberNew(String user, String jobType, String validationStatus) throws ValidatorServiceException; |
|
54 |
|
|
42 | 55 |
} |
modules/uoa-repository-manager-service/trunk/src/main/java/eu/dnetlib/repo/manager/service/controllers/ValidatorApiImpl.java | ||
---|---|---|
164 | 164 |
} |
165 | 165 |
} |
166 | 166 |
|
167 |
@Override |
|
168 |
public List<StoredJob> getStoredJobsNew(String user, String jobType, Integer offset, Integer limit, String dateFrom, |
|
169 |
String dateTo, String validationStatus) throws ValidatorServiceException { |
|
170 |
return getValidationService().getStoredJobsNew(user, jobType, offset, limit, dateFrom, dateTo, validationStatus); |
|
171 |
} |
|
172 |
|
|
173 |
@Override |
|
174 |
public int getStoredJobsTotalNumberNew(String user, String jobType, String validationStatus) throws ValidatorServiceException { |
|
175 |
return getValidationService().getStoredJobsTotalNumberNew(user, jobType, validationStatus); |
|
176 |
} |
|
177 |
|
|
178 |
|
|
167 | 179 |
} |
modules/uoa-repository-manager-service/trunk/pom.xml | ||
---|---|---|
93 | 93 |
</exclusion> |
94 | 94 |
</exclusions> |
95 | 95 |
</dependency> |
96 |
|
|
96 |
<!-- |
|
97 | 97 |
<dependency> |
98 | 98 |
<groupId>eu.dnetlib</groupId> |
99 | 99 |
<artifactId>uoa-utils</artifactId> |
100 | 100 |
<version>[2.0.0-SNAPSHOT, 3.0.0)</version> |
101 | 101 |
</dependency> |
102 |
--> |
|
102 | 103 |
|
103 | 104 |
<dependency> |
104 | 105 |
<groupId>eu.dnetlib</groupId> |
Also available in: Unified diff
1. Update pom.xml
2. Add validator api methods.