Search in sources :

Example 1 with GetIdentitiesRequest

use of com.zimbra.soap.account.message.GetIdentitiesRequest in project zm-mailbox by Zimbra.

the class SoapProvisioning method getAllIdentities.

@Override
public List<Identity> getAllIdentities(Account account) throws ServiceException {
    List<Identity> result = new ArrayList<Identity>();
    GetIdentitiesResponse response = invokeJaxbOnTargetAccount(new GetIdentitiesRequest(), account.getId());
    for (com.zimbra.soap.account.type.Identity identity : response.getIdentities()) {
        result.add(new SoapIdentity(account, identity, this));
    }
    return result;
}
Also used : GetIdentitiesRequest(com.zimbra.soap.account.message.GetIdentitiesRequest) GetIdentitiesResponse(com.zimbra.soap.account.message.GetIdentitiesResponse) ArrayList(java.util.ArrayList) Identity(com.zimbra.cs.account.Identity)

Aggregations

Identity (com.zimbra.cs.account.Identity)1 GetIdentitiesRequest (com.zimbra.soap.account.message.GetIdentitiesRequest)1 GetIdentitiesResponse (com.zimbra.soap.account.message.GetIdentitiesResponse)1 ArrayList (java.util.ArrayList)1