Revision 41946
Added by Nikon Gasparis about 8 years ago
modules/uoa-validator-service/trunk/src/main/java/eu/dnetlib/validator/service/impl/ValidatorServiceImpl.java | ||
---|---|---|
68 | 68 |
|
69 | 69 |
@Override |
70 | 70 |
public List<StoredJob> getStoredJobs(String userMail, String jobType, |
71 |
Integer offset, Integer limit, String dateFrom, String dateTo) |
|
71 |
Integer offset, Integer limit, String dateFrom, String dateTo)
|
|
72 | 72 |
throws ValidatorServiceException { |
73 | 73 |
try { |
74 | 74 |
logger.debug("received request for jobs of user " + userMail); |
... | ... | |
77 | 77 |
throw new ValidatorServiceException(e); |
78 | 78 |
} |
79 | 79 |
} |
80 |
|
|
80 |
|
|
81 | 81 |
@Override |
82 |
public List<StoredJob> getStoredJobs(String userMail, String jobType, |
|
83 |
Integer offset, Integer limit, String dateFrom, String dateTo, String jobStatus) |
|
84 |
throws ValidatorServiceException { |
|
85 |
try { |
|
86 |
logger.debug("received request for jobs of user " + userMail); |
|
87 |
return valManager.getStoredJobs(userMail, jobType, offset, limit, dateFrom, dateTo, jobStatus); |
|
88 |
} catch (ValidatorException e) { |
|
89 |
throw new ValidatorServiceException(e); |
|
90 |
} |
|
91 |
} |
|
92 |
|
|
93 |
@Override |
|
82 | 94 |
public int getStoredJobsTotalNumber(String userMail, String jobType) |
83 | 95 |
throws ValidatorServiceException { |
84 | 96 |
try { |
... | ... | |
90 | 102 |
} |
91 | 103 |
|
92 | 104 |
@Override |
105 |
public int getStoredJobsTotalNumber(String userMail, String jobType, String jobStatus) |
|
106 |
throws ValidatorServiceException { |
|
107 |
try { |
|
108 |
logger.debug("received request for total number of jobs of user " + userMail); |
|
109 |
return valManager.getStoredJobsTotalNumber(userMail, jobType, jobStatus); |
|
110 |
} catch (ValidatorException e) { |
|
111 |
throw new ValidatorServiceException(e); |
|
112 |
} |
|
113 |
} |
|
114 |
|
|
115 |
@Override |
|
93 | 116 |
public List<RuleSet> getRuleSets() throws ValidatorServiceException { |
94 | 117 |
try { |
95 | 118 |
logger.info("received request for rulesets "); |
Also available in: Unified diff
added methods to get jobs of users, and job summary
added new constants needed for jobType parameter of get*Jobs* methods