Revision 49813
Added by Panagiotis Kanakakis over 6 years ago
MonitorApiImpl.java | ||
---|---|---|
43 | 43 |
String validationStatus, |
44 | 44 |
String includeJobsTotal) throws JSONException, ValidatorServiceException { |
45 | 45 |
|
46 |
if (jobType.equals("")) |
|
47 |
jobType = null; |
|
48 |
if(dateFrom.equals("")) |
|
49 |
dateFrom = null; |
|
50 |
if(dateTo.equals("")) |
|
51 |
dateTo = null; |
|
52 |
if(validationStatus.equals("")) |
|
53 |
validationStatus = null; |
|
54 |
|
|
55 |
|
|
46 |
LOGGER.debug("Getting jobs of user : " + user); |
|
56 | 47 |
JobsOfUser retJobs = new JobsOfUser(); |
57 | 48 |
retJobs.setJobs(getValidationService().getStoredJobsNew(user, jobType, Integer.parseInt(offset), |
58 | 49 |
Integer.parseInt(limit), dateFrom, dateTo, validationStatus)); |
... | ... | |
74 | 65 |
public int getJobsOfUserPerValidationStatus(String user, |
75 | 66 |
String jobType, |
76 | 67 |
String validationStatus) throws JSONException { |
77 |
|
|
68 |
LOGGER.debug("Getting job with validation status : " + validationStatus); |
|
78 | 69 |
try { |
79 | 70 |
return getValidationService().getStoredJobsTotalNumberNew(user, jobType, validationStatus); |
80 | 71 |
} catch (ValidatorServiceException e) { |
... | ... | |
86 | 77 |
@Override |
87 | 78 |
public StoredJob getJobSummary(String jobId, |
88 | 79 |
String groupBy) throws JSONException { |
89 |
|
|
80 |
LOGGER.debug("Getting job summary with id : " + jobId); |
|
90 | 81 |
try { |
91 | 82 |
return getValidationService().getStoredJob(Integer.parseInt(jobId), groupBy); |
92 | 83 |
} catch (ValidatorServiceException e) { |
Also available in: Unified diff
1. New method ( delete repository interface ) on repo api.
2. New method ( get ruleset with acronym ) on validator api.
3. Log messages in every api.