All Classes Files Functions Variables Pages
StarReports.idl
Go to the documentation of this file.
1 /**
2  * @file StarReports.idl
3  * @brief StaR reports API
4  * @version 1
5  */
6 
7 #import <Users.idl>
8 
9 module webadmin {
10 
11 struct ReportConfig {
12  boolean dailyEnabled;
13  boolean weeklyEnabled;
14  boolean monthlyEnabled;
15  boolean onlineAccess;
16 };
17 
18 struct StarReport {
19  kerio::web::KId id;
20  boolean enabled;
21  Addressee addressee;
22 
23  UserReferenceList users;
24  boolean allData;
25 
26  ReportConfig reportConfig;
27 };
28 
29 typedef sequence<StarReport> StarReportList;
30 
31 interface StarReports {
32 
33  /**
34  * Returns list of StaR reports entries
35  * @param list - list of entries
36  * @param allUsers - Structure telling whether to send individual reports to each person reularly and wheter to allow them to see their reposrt online.
37  * @throws kerio::web::ApiException \n
38  * -32001 Session expired. - "The user is not logged in." \n
39  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
40  */
41  void get(out StarReportList list, out ReportConfig allUsers);
42 
43  /**
44  * Stores StaR reports entries
45  *
46  * @param errors - list of errors \n
47  * 8002 Database error. - "Unable to modify StaR report entry for '%1'." \n
48  * 8002 Database error. - "Unable to create StaR report entry for '%1'." \n
49  * 8002 Database error. - "Unable to remove StaR report entry for '%1'."
50  * @param reports - list of report configurations to be send regularly.
51  * @param allUsers - Structure telling whether to send individual reports to each person reularly and wheter to allow them to see their reposrt online.
52  * @throws kerio::web::ApiException \n
53  * -32001 Session expired. - "The user is not logged in." \n
54  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
55  */
56  void set(out kerio::web::ErrorList errors, in StarReportList reports, in ReportConfig allUsers);
57 
58  /**
59  * Immediately enqueues StaR report for send
60  *
61  * @param errors - list of errors \n
62  * 1002 No such entity. - "Unable to send weekly report, data for previous week are missing." \n
63  * 1002 No such entity. - "Unable to send monthly report, data for previous month are missing."
64  * @param reports - list of addressees and types of the report
65  * @param language - language of the report
66  * @throws kerio::web::ApiException \n
67  * -32001 Session expired. - "The user is not logged in." \n
68  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
69  */
70  void send(out kerio::web::ErrorList errors, in StarReportList reports, in string language);
71 
72 };
73 
74 }; //webadmin
API for Kerio Control Users.
Definition: StarReports.idl:31
Definition: Users.idl:105
Definition: StarReports.idl:18
Definition: StarReports.idl:11
Definition: Accounting.idl:11