use of com.zimbra.soap.admin.type.DomainSelector in project zm-mailbox by Zimbra.
the class SoapProvisioning method getDomainInfo.
public Domain getDomainInfo(DomainBy keyType, String key) throws ServiceException {
DomainSelector domSel = new DomainSelector(toJaxb(keyType), key);
try {
GetDomainInfoResponse resp = invokeJaxb(new GetDomainInfoRequest(domSel, null));
DomainInfo domainInfo = resp.getDomain();
return domainInfo == null ? null : new SoapDomain(domainInfo, this);
} catch (ServiceException e) {
if (e.getCode().equals(Constants.ERROR_CODE_NO_SUCH_DOMAIN))
return null;
else
throw e;
}
}
use of com.zimbra.soap.admin.type.DomainSelector in project zm-mailbox by Zimbra.
the class TestCalendarMailSender method cleanUp.
public void cleanUp() throws Exception {
TestUtil.deleteAccount(ORGANIZERACCT);
TestUtil.deleteAccount(ATTENDEEACCT);
TestUtil.deleteAccount(SYSRESOURCEACCT);
TestUtil.deleteAccount(DIFFDOMAINACCT);
Provisioning prov = Provisioning.getInstance();
DomainSelector domSel = new DomainSelector(DomainBy.name, DIFFDOMAIN);
Domain diffDomain = prov.get(domSel);
if (diffDomain != null) {
prov.deleteDomain(diffDomain.getId());
}
}
Aggregations