Search in sources :

Example 1 with HABOrgUnitRequest

use of com.zimbra.soap.admin.message.HABOrgUnitRequest in project zm-mailbox by Zimbra.

the class SoapProvisioning method deleteHabOrgUnit.

@Override
public void deleteHabOrgUnit(Domain domain, String habOrgUnitName) throws ServiceException {
    DomainSelector domSel = new DomainSelector(toJaxb(DomainBy.name), domain.getName());
    invokeJaxb(new HABOrgUnitRequest(domSel, habOrgUnitName, HabOp.delete));
}
Also used : HABOrgUnitRequest(com.zimbra.soap.admin.message.HABOrgUnitRequest) DomainSelector(com.zimbra.soap.admin.type.DomainSelector)

Example 2 with HABOrgUnitRequest

use of com.zimbra.soap.admin.message.HABOrgUnitRequest 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 3 with HABOrgUnitRequest

use of com.zimbra.soap.admin.message.HABOrgUnitRequest 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 4 with HABOrgUnitRequest

use of com.zimbra.soap.admin.message.HABOrgUnitRequest 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)4 DomainSelector (com.zimbra.soap.admin.type.DomainSelector)4 HABOrgUnitResponse (com.zimbra.soap.admin.message.HABOrgUnitResponse)3 HashSet (java.util.HashSet)3