use of com.zimbra.common.soap.Element.XMLElement in project zm-mailbox by Zimbra.
the class SoapDynamicGroup method reload.
public void reload(SoapProvisioning prov) throws ServiceException {
XMLElement req = new XMLElement(AdminConstants.GET_DISTRIBUTION_LIST_REQUEST);
Element a = req.addElement(AdminConstants.E_DL);
a.setText(getId());
a.addAttribute(AdminConstants.A_BY, Key.DistributionListBy.id.name());
Element dl = prov.invoke(req).getElement(AdminConstants.E_DL);
Map<String, Object> attrs = SoapProvisioning.getAttrs(dl);
addDlm(dl, attrs);
setAttrs(attrs);
}
use of com.zimbra.common.soap.Element.XMLElement in project zm-mailbox by Zimbra.
the class SoapServer method modifyAttrs.
public void modifyAttrs(SoapProvisioning prov, Map<String, ? extends Object> attrs, boolean checkImmutable) throws ServiceException {
XMLElement req = new XMLElement(AdminConstants.MODIFY_SERVER_REQUEST);
req.addElement(AdminConstants.E_ID).setText(getId());
SoapProvisioning.addAttrElements(req, attrs);
setAttrs(SoapProvisioning.getAttrs(prov.invoke(req).getElement(AdminConstants.E_SERVER)));
}
use of com.zimbra.common.soap.Element.XMLElement in project zm-mailbox by Zimbra.
the class SoapServer method reload.
public void reload(SoapProvisioning prov) throws ServiceException {
XMLElement req = new XMLElement(AdminConstants.GET_SERVER_REQUEST);
Element a = req.addElement(AdminConstants.E_SERVER);
a.setText(getId());
a.addAttribute(AdminConstants.A_BY, Key.ServerBy.id.name());
setAttrs(SoapProvisioning.getAttrs(prov.invoke(req).getElement(AdminConstants.E_SERVER)));
}
use of com.zimbra.common.soap.Element.XMLElement in project zm-mailbox by Zimbra.
the class SoapConfig method reload.
public void reload(SoapProvisioning prov) throws ServiceException {
XMLElement req = new XMLElement(AdminConstants.GET_ALL_CONFIG_REQUEST);
setAttrs(SoapProvisioning.getAttrs(prov.invoke(req)));
}
use of com.zimbra.common.soap.Element.XMLElement in project zm-mailbox by Zimbra.
the class SoapDomain method reload.
public void reload(SoapProvisioning prov) throws ServiceException {
XMLElement req = new XMLElement(AdminConstants.GET_DOMAIN_REQUEST);
Element a = req.addElement(AdminConstants.E_DOMAIN);
a.setText(getId());
a.addAttribute(AdminConstants.A_BY, Key.DomainBy.id.name());
setAttrs(SoapProvisioning.getAttrs(prov.invoke(req).getElement(AdminConstants.E_DOMAIN)));
}
Aggregations