All Classes Files Functions Variables Pages
webadmin::Alerts Interface Reference

Public Member Functions

void get (out AlertRowList list, out long totalItems, in kerio::web::SearchQuery query)
 
void getContent (out string content, in kerio::web::KId id)
 
void getAlertTypes (out AlertTypeList types)
 
void getSettings (out AlertSettingList config)
 
void setSettings (out kerio::web::ErrorList errors, in AlertSettingList config)
 
void getDefaultLanguage (out string lang)
 
void setDefaultLanguage (in string lang)
 

Member Function Documentation

void webadmin::Alerts::get ( out AlertRowList  list,
out long  totalItems,
in kerio::web::SearchQuery  query 
)

Returns Alert Messages data

Parameters
list- output data
totalItems- all data count
query- paging query (sorting is not possible and it is ignored)
Exceptions
kerio::web::ApiException
-32001 Session expired. - "The user is not logged in."
1004 Access denied. - "Insufficient rights to perform the requested operation."
void webadmin::Alerts::getAlertTypes ( out AlertTypeList  types)

Returns list of possible Alerts types

Exceptions
kerio::web::ApiException
-32001 Session expired. - "The user is not logged in."
1004 Access denied. - "Insufficient rights to perform the requested operation."
void webadmin::Alerts::getContent ( out string  content,
in kerio::web::KId  id 
)

Returns content of given Alert Message as formatted HTML

Parameters
content- output data
id- ID of given alert
Exceptions
kerio::web::ApiException
-32001 Session expired. - "The user is not logged in."
1002 No such entity. - "The required record doesn't exist any more. The page will be reloaded."
1004 Access denied. - "Insufficient rights to perform the requested operation."
void webadmin::Alerts::getDefaultLanguage ( out string  lang)

Returns default language for Alert emails

Exceptions
kerio::web::ApiException
-32001 Session expired. - "The user is not logged in."
1004 Access denied. - "Insufficient rights to perform the requested operation."
void webadmin::Alerts::getSettings ( out AlertSettingList  config)

Returns list of user defined alert handling

Exceptions
kerio::web::ApiException
-32001 Session expired. - "The user is not logged in."
1004 Access denied. - "Insufficient rights to perform the requested operation."
void webadmin::Alerts::setDefaultLanguage ( in string  lang)

Stores default language for Alert emails

Exceptions
kerio::web::ApiException
-32001 Session expired. - "The user is not logged in."
1004 Access denied. - "Insufficient rights to perform the requested operation."
void webadmin::Alerts::setSettings ( out kerio::web::ErrorList  errors,
in AlertSettingList  config 
)

Stores list of user defined alert handling

Parameters
errors- list of items that cannot be changed.
8002 Database error. - "Unable to modify alert '%1' for '%2'."
8002 Database error. - "Unable to create alert '%1' for '%2'."
8002 Database error. - "Unable to remove alert '%1' for '%2'."
config- structure with complete alerts settings
Exceptions
kerio::web::ApiException
-32001 Session expired. - "The user is not logged in."
1004 Access denied. - "Insufficient rights to perform the requested operation."

The documentation for this interface was generated from the following file: