Github user ilgrosso commented on a diff in the pull request:

    https://github.com/apache/syncope/pull/6#discussion_r31246879
  
    --- Diff: 
console/src/main/java/org/apache/syncope/console/rest/ReportRestClient.java ---
    @@ -105,4 +108,24 @@ public void deleteExecution(final long reportExecId) {
         public Response exportExecutionResult(final Long executionId, final 
ReportExecExportFormat fmt) {
             return 
getService(ReportService.class).exportExecutionResult(executionId, fmt);
         }
    +
    +    @Override
    +    public boolean isJobRunning(final long reportId) {
    +        for (ReportExecTO reportExecTO : 
getService(ReportService.class).listJobs(JobStatusType.RUNNING)) {
    +            if (reportExecTO.getReport() == reportId) {
    +                return true;
    +            }
    +        }
    +        return false;
    +    }
    +
    +    @Override
    +    public void startJob(final long taskId) {
    +        getService(ReportService.class).actionJob(taskId, JobAction.START);
    +    }
    +
    +    @Override
    +    public void stopJob(final long taskId) {
    --- End diff --
    
    reportId


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to