use of com.zimbra.soap.admin.message.HABOrgUnitResponse in project zm-mailbox by Zimbra.
the class SoapProvisioning method listHabOrgUnit.
@Override
public Set<String> listHabOrgUnit(Domain domain) throws ServiceException {
DomainSelector domSel = new DomainSelector(toJaxb(DomainBy.name), domain.getName());
HABOrgUnitResponse resp = invokeJaxb(new HABOrgUnitRequest(domSel, HabOp.list));
Set<String> habOrgList = new HashSet<String>();
habOrgList.addAll(resp.getHabOrgList());
return habOrgList;
}
use of com.zimbra.soap.admin.message.HABOrgUnitResponse in project zm-mailbox by Zimbra.
the class SoapProvisioning method renameHabOrgUnit.
@Override
public Set<String> renameHabOrgUnit(Domain domain, String habOrgUnitName, String newHabOrgUnitName) throws ServiceException {
DomainSelector domSel = new DomainSelector(toJaxb(DomainBy.name), domain.getName());
HABOrgUnitResponse resp = invokeJaxb(new HABOrgUnitRequest(domSel, habOrgUnitName, newHabOrgUnitName, HabOp.rename));
Set<String> habOrgList = new HashSet<String>();
habOrgList.addAll(resp.getHabOrgList());
return habOrgList;
}
use of com.zimbra.soap.admin.message.HABOrgUnitResponse in project zm-mailbox by Zimbra.
the class SoapProvisioning method createHabOrgUnit.
@Override
public Set<String> createHabOrgUnit(Domain domain, String habOrgUnitName) throws ServiceException {
DomainSelector domSel = new DomainSelector(toJaxb(DomainBy.name), domain.getName());
HABOrgUnitResponse resp = invokeJaxb(new HABOrgUnitRequest(domSel, habOrgUnitName, HabOp.create));
Set<String> habOrgList = new HashSet<String>();
habOrgList.addAll(resp.getHabOrgList());
return habOrgList;
}
Aggregations