Search in sources :

Example 1 with GetAllAdminAccountsResponse

use of com.zimbra.soap.admin.message.GetAllAdminAccountsResponse in project zm-mailbox by Zimbra.

the class SoapProvisioning method getAllAdminAccounts.

// SoapProvisioning only, for zmprov
public List<Account> getAllAdminAccounts(boolean applyDefault) throws ServiceException {
    ArrayList<Account> result = new ArrayList<Account>();
    GetAllAdminAccountsResponse resp = invokeJaxb(new GetAllAdminAccountsRequest(applyDefault));
    for (AccountInfo acct : resp.getAccountList()) {
        result.add(new SoapAccount(acct, this));
    }
    return result;
}
Also used : Account(com.zimbra.cs.account.Account) GetAllAdminAccountsResponse(com.zimbra.soap.admin.message.GetAllAdminAccountsResponse) GetAllAdminAccountsRequest(com.zimbra.soap.admin.message.GetAllAdminAccountsRequest) ArrayList(java.util.ArrayList) AccountInfo(com.zimbra.soap.admin.type.AccountInfo)

Aggregations

Account (com.zimbra.cs.account.Account)1 GetAllAdminAccountsRequest (com.zimbra.soap.admin.message.GetAllAdminAccountsRequest)1 GetAllAdminAccountsResponse (com.zimbra.soap.admin.message.GetAllAdminAccountsResponse)1 AccountInfo (com.zimbra.soap.admin.type.AccountInfo)1 ArrayList (java.util.ArrayList)1