All Classes Files Functions Variables Pages
ProductInfo.idl
Go to the documentation of this file.
1 /**
2  * @file ProductInfo.idl
3  * @brief API for obtaining information about product version, registration, etc.
4  * @version 2
5  */
6 
7 #import <kerio/web/idl/SharedStructures.idl>
8 #import <common.idl>
9 
10 module webadmin {
11 
12 enum WarningType {
13  WarnBetaVersion,
14  WarnUpdateFailed,
15  WarnConfigurationReverted
16 };
17 
18 typedef sequence<WarningType> WarningTypeList;
19 
20 struct WarningInfo {
21  WarningType type;
22  boolean suppressable;
23  string property;
24 };
25 
26 typedef sequence<WarningInfo> WarningInfoList;
27 
28 const string tinyBox1 = "HWANG100";
29 const string smallBox1 = "HWA1000";
30 const string smallBox2 = "HWA1120";
31 const string smallBox3 = "HWANG300";
32 const string bigBox1 = "HWA3000";
33 const string bigBox2 = "HWA3120";
34 const string bigBox3 = "HWA3130";
35 const string bigBox4 = "HWANG500";
36 
38  string versionString;
39  string osDescription;
40  boolean finalVersion;
41  string boxEdition;
42  string boxName;
43  boolean wifiAvailable;
44  boolean ip6Available;
45  boolean licenseSet;
46  boolean passwordSet;
47  boolean clientStatisticsSet;
48  boolean centralManagementSet;
49 };
50 
52  long screenWidth;
53  long screenHeight;
54  string localization;
55  long loadTime;
56  long initTime;
57 };
58 
59 enum ApiEntity {
60  PolicyWizard,
61  AlertList
62 };
63 
64 interface ProductInfo {
65 
66  /**
67  * gets url of Acknowledgments file
68  * @param url - requested url
69  * @throws kerio::web::ApiException \n
70  * -32001 Session expired. - "The user is not logged in." \n
71  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
72  */
73  void getAcknowledgmentsUrl(out string url);
74 
75  /**
76  * Returns information about product
77  * @throws kerio::web::ApiException \n
78  * -32001 Session expired. - "The user is not logged in." \n
79  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
80  */
81  void get(out ProductInformation productInfo);
82 
83  /**
84  * gets warning list
85  * @param warnings - list of warnings
86  * @throws kerio::web::ApiException \n
87  * -32001 Session expired. - "The user is not logged in." \n
88  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
89  */
90  void getWarnings(out WarningInfoList warnings);
91 
92  /**
93  * disables given warning
94  * @param type - type of warning to disable
95  * @throws kerio::web::ApiException \n
96  * -32001 Session expired. - "The user is not logged in." \n
97  * 1000 Operation failed. - "Unable to disable the warning!" \n
98  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
99  */
100  void disableWarning(in WarningType type);
101 
102  /**
103  * returns WinRoute server name
104  * @throws kerio::web::ApiException \n
105  * -32001 Session expired. - "The user is not logged in." \n
106  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
107  */
108  void getSystemHostname(out string hostname);
109 
110  /**
111  * performs configuration update
112  * @throws kerio::web::ApiException \n
113  * -32001 Session expired. - "The user is not logged in." \n
114  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
115  */
116  void configUpdate();
117 
118  /**
119  * Handles license import
120  * @throws kerio::web::ApiException \n
121  * -32001 Session expired. - "The user is not logged in." \n
122  * 1000 Operation failed. - errors during license parsing \n
123  * 1002 No such entity. - "Uploaded file does not exist." \n
124  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
125  */
126  void uploadLicense(in string fileId);
127 
128  /**
129  * Accepts unregistered trial license in engine and causes, \n
130  * that engine will not launch activation wizard in case of unregistered trial anymore
131  * @throws kerio::web::ApiException \n
132  * -32001 Session expired. - "The user is not logged in." \n
133  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
134  */
135  void acceptUnregisteredTrial();
136 
137  /**
138  * Generates support info file and returns url for download
139  * @throws kerio::web::ApiException \n
140  * -32001 Session expired. - "The user is not logged in." \n
141  * 1000 Operation failed. - "Unable to create the file with information for technical support." \n
142  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
143  */
144  void getSupportInfo(out kerio::web::Download fileDownload);
145 
146  /**
147  * Returns settings of Client statistics (Enabled/Disabled)
148  * @throws kerio::web::ApiException \n
149  * -32001 Session expired. - "The user is not logged in." \n
150  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
151  */
152  void getClientStatistics(out boolean setting);
153 
154  /**
155  * Stores settings of Client statistics (Enabled/Disabled) and sets ProductInformation::clientStatisticsSet to true (returned by get)
156  * @throws kerio::web::ApiException \n
157  * -32001 Session expired. - "The user is not logged in." \n
158  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
159  */
160  void setClientStatistics(in boolean setting);
161 
162  /**
163  * Stores voluntary statistics obtained on clinet side by javascript.
164  * @throws kerio::web::ApiException \n
165  * -32001 Session expired. - "The user is not logged in." \n
166  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
167  */
168  void setStatisticsData(in StatisticsData data);
169 
170  /**
171  * Returns engine uptime in seconds
172  * @throws kerio::web::ApiException \n
173  * -32001 Session expired. - "The user is not logged in." \n
174  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
175  */
176  void getUptime(out long uptime);
177 
178  /**
179  * Returns number of used devices and accounts
180  * @throws kerio::web::ApiException \n
181  * -32001 Session expired. - "The user is not logged in." \n
182  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
183  */
184  void getUsedDevicesCount(out long devices, out long accounts);
185 
186  /**
187  * Accounts usage of ApiEntity for voluntary statistics
188  * @param apiEntity - which entity was used
189  * @throws kerio::web::ApiException \n
190  * -32001 Session expired. - "The user is not logged in." \n
191  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
192  */
193  void accountUsage(in ApiEntity apiEntity);
194 };
195 
196 }; //webadmin
Common Kerio Control structures, enums and types.
Definition: SharedStructures.idl:342
Definition: ProductInfo.idl:51
Definition: ProductInfo.idl:37
Definition: ProductInfo.idl:20
Definition: ProductInfo.idl:64
Definition: Accounting.idl:11