Search in sources :

Example 1 with CreateIdentityResponse

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

the class SoapProvisioning method createIdentity.

@Override
public Identity createIdentity(Account account, String identityName, Map<String, Object> attrs) throws ServiceException {
    com.zimbra.soap.account.type.Identity id = new com.zimbra.soap.account.type.Identity(identityName, null);
    id.setAttrs(attrs);
    CreateIdentityRequest request = new CreateIdentityRequest(id);
    CreateIdentityResponse response = invokeJaxbOnTargetAccount(request, account.getId());
    return new SoapIdentity(account, response.getIdentity(), this);
}
Also used : CreateIdentityRequest(com.zimbra.soap.account.message.CreateIdentityRequest) CreateIdentityResponse(com.zimbra.soap.account.message.CreateIdentityResponse) Identity(com.zimbra.cs.account.Identity)

Aggregations

Identity (com.zimbra.cs.account.Identity)1 CreateIdentityRequest (com.zimbra.soap.account.message.CreateIdentityRequest)1 CreateIdentityResponse (com.zimbra.soap.account.message.CreateIdentityResponse)1