Reporting interface adjusted
authorAlex Kirhenshtein <alk@netxms.org>
Wed, 10 Jul 2013 11:17:46 +0000 (11:17 +0000)
committerAlex Kirhenshtein <alk@netxms.org>
Wed, 10 Jul 2013 11:17:46 +0000 (11:17 +0000)
src/java/netxms-client-api/src/main/java/org/netxms/api/client/constants/ScheduleType.java [deleted file]
src/java/netxms-client-api/src/main/java/org/netxms/api/client/reporting/ReportingServerManager.java

diff --git a/src/java/netxms-client-api/src/main/java/org/netxms/api/client/constants/ScheduleType.java b/src/java/netxms-client-api/src/main/java/org/netxms/api/client/constants/ScheduleType.java
deleted file mode 100644 (file)
index f6d8446..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-package org.netxms.api.client.constants;
-
-public enum ScheduleType
-{
-       Once(0), Daily(1), Weekly(2), Monthly(3);
-
-       private final int code;
-
-       ScheduleType(int code)
-       {
-               this.code = code;
-       }
-
-       public int getCode()
-       {
-               return code;
-       }
-}
index d1ea9d8..8144dfe 100644 (file)
@@ -7,7 +7,6 @@ import java.util.List;
 import java.util.Map;
 import java.util.UUID;
 import org.netxms.api.client.NetXMSClientException;
-import org.netxms.api.client.constants.ScheduleType;
 
 public interface ReportingServerManager
 {
@@ -17,8 +16,10 @@ public interface ReportingServerManager
 
        UUID executeReport(UUID reportId, Map<String, String> parameters) throws NetXMSClientException, IOException;
 
-       void scheduleReport(UUID reportId, ScheduleType scheduleType, Date startTime, int daysOfWeek, int daysOfMonth,
-                       Map<String, String> parameters) throws NetXMSClientException, IOException;
+       void scheduleReport(UUID reportId, Date startTime, int daysOfWeek, int daysOfMonth, Map<String, String> parameters)
+                       throws NetXMSClientException, IOException;
+
+       List<ReportingJob> listScheduledJobs();
 
        List<ReportResult> listReportResults(UUID reportId) throws NetXMSClientException, IOException;