Skip to content

Commit

Permalink
Add createAlwaysOnCluster, alwaysOnCluster, getAllActiveServers, getA…
Browse files Browse the repository at this point in the history
…llAlwaysOnClusters, getAlwaysOnCluster, lockoutMailbox, modifyAlwaysOnCluster, refreshRegisteredAuthTokens, setLocalServerOnline, setServerOffline api methods
  • Loading branch information
nguyennv committed Mar 23, 2016
1 parent 5dcc80b commit 9f99bb4
Show file tree
Hide file tree
Showing 2 changed files with 245 additions and 21 deletions.
87 changes: 87 additions & 0 deletions AdminInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Zimbra\Admin;

use Zimbra\Admin\Struct\AttachmentIdAttrib as Attachment;
use Zimbra\Admin\Struct\AlwaysOnClusterSelector as ClusterSelector;
use Zimbra\Admin\Struct\CalendarResourceSelector as CalendarResource;
use Zimbra\Admin\Struct\CacheSelector as Cache;
use Zimbra\Admin\Struct\CosSelector as Cos;
Expand Down Expand Up @@ -48,6 +49,7 @@
use Zimbra\Admin\Struct\XmppComponentSpec as Xmpp;
use Zimbra\Admin\Struct\ZimletAclStatusPri as ZimletAcl;

use Zimbra\Struct\AccountNameSelector;
use Zimbra\Struct\AccountSelector as Account;
use Zimbra\Struct\EntrySearchFilterInfo as SearchFilter;
use Zimbra\Struct\GranteeChooser;
Expand All @@ -71,6 +73,7 @@
use Zimbra\Enum\GalSearchType;
use Zimbra\Enum\GetSessionsSortBy;
use Zimbra\Enum\IpType;
use Zimbra\Enum\LockoutOperation;
use Zimbra\Enum\QuotaSortBy;
use Zimbra\Enum\ReIndexAction;
use Zimbra\Enum\RightClass;
Expand Down Expand Up @@ -536,6 +539,15 @@ function countObjects(ObjType $type, Domain $domain = null, UcService $ucservice
*/
function createAccount($name, $password, array $attrs = []);

/**
* Create a AlwaysOnCluster
*
* @param string $name New server name.
* @param array $attrs Attributes.
* @return mix
*/
function createAlwaysOnCluster($name, array $attrs = []);

/**
* Create a calendar resource.
* Notes:
Expand Down Expand Up @@ -726,6 +738,14 @@ function delegateAuth(Account $account, $duration = null);
*/
function deleteAccount($id);

/**
* Delete a alwaysOnCluster .
*
* @param string $id Zimbra ID.
* @return mix
*/
function deleteAlwaysOnCluster($id);

/**
* Deletes the calendar resource with the given id.
* Note: this request is by default proxied to the account's home server .
Expand Down Expand Up @@ -1066,6 +1086,13 @@ function getAllAccountLoggers();
*/
function getAllAccounts(Server $server = null, Domain $domain = null);

/**
* Get all active servers.
*
* @return mix
*/
function getAllActiveServers();

/**
* Get all Admin accounts.
*
Expand All @@ -1074,6 +1101,13 @@ function getAllAccounts(Server $server = null, Domain $domain = null);
*/
function getAllAdminAccounts($applyCos = null);

/**
* Get all alwaysOnClusters.
*
* @return mix
*/
function getAllAlwaysOnClusters();

/**
* Get all calendar resources that match the selection criteria.
* Access: domain admin sufficient.
Expand Down Expand Up @@ -1216,6 +1250,15 @@ function getAllXMPPComponents();
*/
function getAllZimlets(ExcludeType $exclude = null);

/**
* Get Server.
*
* @param ClusterSelector $Cluster Specify cluster.
* @param array $attrs A list of attributes.
* @return mix
*/
function getAlwaysOnCluster(ClusterSelector $cluster = null, array $attrs = []);

/**
* Get attribute information.
* Valid entry types:
Expand Down Expand Up @@ -1752,6 +1795,15 @@ function grantRight(
RightModifier $right
);

/**
* Puts the mailbox of the specified account into maintenance lockout or removes it from maintenance lockout .
*
* @param AccountNameSelector $account Account email address.
* @param string $server op Operation. One of 'start' or 'end'
* @return mix
*/
function lockoutMailbox(AccountNameSelector $account, LockoutOperation $op = null);

/**
* Command to act on invidual queue files.
* This proxies through to postsuper.
Expand Down Expand Up @@ -1801,6 +1853,18 @@ function modifyAccount($id, array $attrs = []);
*/
function modifyAdminSavedSearches(array $searchs = []);

/**
* Modify attributes for a alwaysOnCluster.
* Notes:
* 1. an empty attribute value removes the specified attr.
* 2. his request is by default proxied to the referenced server.
*
* @param string $id Zimbra ID.
* @param array $attrs Attributes.
* @return mix
*/
function modifyAlwaysOnCluster($id, array $attrs = []);

/**
* Modify a calendar resource.
* Notes:
Expand Down Expand Up @@ -2021,6 +2085,14 @@ function queryWaitSet($waitSet = null);
*/
function recalculateMailboxCounts(MailboxId $mbox);

/**
* Deregister authtokens that have been deregistered on the sending server.
*
* @param array $tokens Auth tokens.
* @return mix
*/
function refreshRegisteredAuthTokens(array $tokens);

/**
* ReIndex.
* Access: domain admin sufficient.
Expand Down Expand Up @@ -2348,6 +2420,12 @@ function searchGal(
*/
function setCurrentVolume($id, VolumeType $type);

/**
* Set local server online.
* @return mix
*/
function setLocalServerOnline();

/**
* Set Password.
* Access: domain admin sufficient.
Expand All @@ -2359,6 +2437,15 @@ function setCurrentVolume($id, VolumeType $type);
*/
function setPassword($id, $newPassword);

/**
* Set server offline.
*
* @param Server $server Specify server.
* @param array $attrs A list of attributes.
* @return mix
*/
function setServerOffline(Server $server = null, array $attrs = []);

/**
* Suspend a device or all devices attached to an account from further sync actions.
*
Expand Down
Loading

0 comments on commit 9f99bb4

Please sign in to comment.