All Classes Files Functions Variables Pages
WebInterface.idl
Go to the documentation of this file.
1 /**
2  * @file WebInterface.idl
3  * @brief Web Interface API
4  * @version 2
5  */
6 
7 #import <common.idl>
8 
9 module webadmin {
10 
11 /**
12  * Certificates (Secured Web Interface and SSL-VPN) will be handled by CertificateManager
13  */
14 
15 /** not applicable on Linux */
16 struct SslVpnConfig {
17  boolean enabled;
18  long port;
19  IdReference certificate;
20 };
21 
23  boolean enabled; /**< use custom brand on login, deny pages and in e-mail alerts */
24  string pageTitle; /**< used as page title on login, deny pages and as a brand name on deny page */
25 };
26 
28  boolean useSsl;
29  SslVpnConfig sslConfig; /** not applicable on Linux */
31  string detectedHostname;
32  string adminPath; /** "admin" */
33  long port;
34  long sslPort;
35  IdReference certificate;
36  CustomizedBrand customizedBrand;
37 };
38 
39 interface WebInterface {
40 
41  /**
42  * Returns actual values for Web Interface and Kerio Clientless SSL-VPN configuration in WebAdmin
43  * @throws kerio::web::ApiException \n
44  * -32001 Session expired. - "The user is not logged in." \n
45  * 1004 Access denied. - "Insufficient rights to perform the requested operation." \n
46  */
47  void get(out WebInterfaceConfig config);
48 
49  /**
50  * Stores configuration
51  * @param config - structure with settings for webinterface module
52  * @param revertTimeout - If client doesn't confirm config to this timeout, configuration is reverted (0 - revert disabled)
53  * @throws kerio::web::ApiException \n
54  * -32001 Session expired. - "The user is not logged in." \n
55  * 1004 Access denied. - "Insufficient rights to perform the requested operation." \n
56  */
57  void set(in WebInterfaceConfig config, in long revertTimeout);
58 
59  /**
60  * Uploaded image which will need to be apply/reset
61  * @param fileId - according to spec 390.
62  * @param isFavicon - true = the image is favicon, false = the image is product logo
63  * @throws kerio::web::ApiException \n
64  * -32001 Session expired. - "The user is not logged in." \n
65  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
66  */
67  void uploadImage(in string fileId, in boolean isFavicon);
68 
69  /**
70  * discard uploaded images
71  * @throws kerio::web::ApiException \n
72  * -32001 Session expired. - "The user is not logged in." \n
73  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
74  */
75  void reset();
76 };
77 
78 }; //webadmin
Common Kerio Control structures, enums and types.
string pageTitle
Definition: WebInterface.idl:24
Definition: WebInterface.idl:16
Definition: WebInterface.idl:39
Definition: WebInterface.idl:27
Definition: common.idl:28
Definition: WebInterface.idl:22
long port
Definition: WebInterface.idl:33
Definition: Accounting.idl:11
boolean enabled
Definition: WebInterface.idl:23
Definition: SharedStructures.idl:289
kerio::web::OptionalString hostname
Definition: WebInterface.idl:30