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);
}
Aggregations