Public Member Functions | |
void | get (out DomainList list, out long totalItems, in kerio::web::SearchQuery query) |
void | create (out kerio::web::ErrorList errors, out kerio::web::CreateResultList result, in DomainList domains) |
void | set (out kerio::web::ErrorList errors, in kerio::web::KIdList domainIds, in Domain pattern) |
void | remove (out kerio::web::ErrorList errors, in kerio::web::KIdList domainIds) |
void | testDomainController (out kerio::web::ErrorList errors, in kerio::web::StringList hostnames, in DirectoryServiceConfiguration directory) |
void | apply (out kerio::web::ErrorList errors) |
void | reset () |
void webadmin::Domains::apply | ( | out kerio::web::ErrorList | errors | ) |
write changes cached in manager to configuration
errors | - list of errors 8001 Invalid params. - "Unable to add/modify domain %1, wrong parameters." 8002 Database error. - "Unable to add/modify domain %1." 8002 Database error. - "Unable to delete the domain." |
kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." |
void webadmin::Domains::create | ( | out kerio::web::ErrorList | errors, |
out kerio::web::CreateResultList | result, | ||
in DomainList | domains | ||
) |
Add new domain
errors | - list of errors 1001 Already exists. - "Domain %1 already exists." 8001 Invalid params. - "Unable to add/modify domain %1, wrong parameters." |
result | - list of IDs assigned to each item |
domains | - details for new domains. field id is assigned by the manager to temporary value until apply() or reset(). |
kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." |
void webadmin::Domains::get | ( | out DomainList | list, |
out long | totalItems, | ||
in kerio::web::SearchQuery | query | ||
) |
Obtain list of domains
list | - list of domains and it's details |
totalItems | - count of all domains on server (before the start/limit applied) |
query | - conditions and limits |
kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." |
void webadmin::Domains::remove | ( | out kerio::web::ErrorList | errors, |
in kerio::web::KIdList | domainIds | ||
) |
Delete domains
errors | - list of errors 8001 Invalid params. - "Unable to remove the local domain." 8002 Database error. - "Unable to delete the domain." |
domainIds | - ids of domains that should be removed |
kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." |
void webadmin::Domains::reset | ( | ) |
discard changes cached in manager
kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." |
void webadmin::Domains::set | ( | out kerio::web::ErrorList | errors, |
in kerio::web::KIdList | domainIds, | ||
in Domain | pattern | ||
) |
Update domains' details
errors | - list of errors 1001 Already exists. - "Domain %1 already exists." 8001 Invalid params. - "Error: multiple primary domains." 8001 Invalid params. - "Unable to add/modify domain %1, wrong parameters." |
domainIds | - ids of domains to be updated. |
pattern | - details for update. Field "kerio::web::KId" is ignored. All other fields except password must be filled and they are written to all domains specified by domainIds. |
kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." |
void webadmin::Domains::testDomainController | ( | out kerio::web::ErrorList | errors, |
in kerio::web::StringList | hostnames, | ||
in DirectoryServiceConfiguration | directory | ||
) |
Test of domain accessibility
errors | - Various error messages related to given data, indexed by values in "hostnames" parameter, contains leading '.' |
hostnames | - List of servers, that will be used instead of servers in DirectoryService. Empty string means, that server should be autodetected |
directory | - domain parameters for connection test |
kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." 8001 Invalid params. - "Unable to read the stored password." |