Search in sources :

Example 1 with HABOrgUnitResponse

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;
}
Also used : HABOrgUnitRequest(com.zimbra.soap.admin.message.HABOrgUnitRequest) DomainSelector(com.zimbra.soap.admin.type.DomainSelector) HABOrgUnitResponse(com.zimbra.soap.admin.message.HABOrgUnitResponse) HashSet(java.util.HashSet)

Example 2 with HABOrgUnitResponse

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;
}
Also used : HABOrgUnitRequest(com.zimbra.soap.admin.message.HABOrgUnitRequest) DomainSelector(com.zimbra.soap.admin.type.DomainSelector) HABOrgUnitResponse(com.zimbra.soap.admin.message.HABOrgUnitResponse) HashSet(java.util.HashSet)

Example 3 with HABOrgUnitResponse

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;
}
Also used : HABOrgUnitRequest(com.zimbra.soap.admin.message.HABOrgUnitRequest) DomainSelector(com.zimbra.soap.admin.type.DomainSelector) HABOrgUnitResponse(com.zimbra.soap.admin.message.HABOrgUnitResponse) HashSet(java.util.HashSet)

Aggregations

HABOrgUnitRequest (com.zimbra.soap.admin.message.HABOrgUnitRequest)3 HABOrgUnitResponse (com.zimbra.soap.admin.message.HABOrgUnitResponse)3 DomainSelector (com.zimbra.soap.admin.type.DomainSelector)3 HashSet (java.util.HashSet)3