All Classes Files Functions Variables Pages
UserStatistics.idl
Go to the documentation of this file.
1 /**
2  * @file UserStatistics.idl
3  * @brief User Statistics API
4  * @version 2
5  */
6 
7 #import <Users.idl>
8 #import <common.idl>
9 
10 module webadmin {
11 
12 enum UserStatisticType {
13  UserStatisticAll,
14  UserStatisticUser,
15  UserStatisticOther,
16  UserStatisticGuest
17 };
18 
19 struct UserStatistic {
20  kerio::web::KId id;
21  string userName;
22  UserStatisticType type;
23  string fullName;
24  long quota;
25  DataStatistic data;
26 };
27 
28 typedef sequence<UserStatistic> UserStatisticList;
29 
30 interface UserStatistics {
31 
32  /**
33  * Returns User Statistics data
34  *
35  * @param list - output data
36  * @param totalItems - all data count
37  * @param query - filter/sort query
38  * @param refresh - true in case, that data snapshot have to be refreshed
39  * @throws kerio::web::ApiException \n
40  * -32001 Session expired. - "The user is not logged in." \n
41  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
42  */
43  void get(out UserStatisticList list, out long totalItems, in kerio::web::SearchQuery query, in boolean refresh);
44 
45  /**
46  * Deletes user traffic counters
47  *
48  * @param ids - list of user ids returned in user member by get
49  * @throws kerio::web::ApiException \n
50  * -32001 Session expired. - "The user is not logged in." \n
51  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
52  */
53  void remove(in kerio::web::KIdList ids);
54 
55 };
56 
57 }; //webadmin
Common Kerio Control structures, enums and types.
Definition: SharedStructures.idl:139
API for Kerio Control Users.
Definition: UserStatistics.idl:19
Definition: UserStatistics.idl:30
Definition: common.idl:41
Definition: Accounting.idl:11