use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_55649 method upgradeZimbraGalLdapAttrMap.
private void upgradeZimbraGalLdapAttrMap() throws ServiceException {
String valueToAdd = "binary zimbraPrefMailSMIMECertificate,userCertificate,userSMIMECertificate=SMIMECertificate";
Config config = prov.getConfig();
Set<String> curValues = config.getMultiAttrSet(Provisioning.A_zimbraGalLdapAttrMap);
if (curValues.contains(valueToAdd)) {
return;
}
Map<String, Object> attrs = new HashMap<String, Object>();
StringUtil.addToMultiMap(attrs, "+" + Provisioning.A_zimbraGalLdapAttrMap, valueToAdd);
modifyAttrs(config, attrs);
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class TestMaxMessageSize method setMaxMessageSize.
private void setMaxMessageSize(long numBytes) throws Exception {
Provisioning prov = Provisioning.getInstance();
Config config = prov.getConfig();
Map<String, Object> attrs = new HashMap<String, Object>();
attrs.put(Provisioning.A_zimbraMtaMaxMessageSize, Long.toString(numBytes));
prov.modifyAttrs(config, attrs);
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class ProvTestUtil method getSystemDefaultDomainName.
public String getSystemDefaultDomainName() throws Exception {
Config config = prov.getConfig(Provisioning.A_zimbraDefaultDomainName);
String domainName = config.getAttr(Provisioning.A_zimbraDefaultDomainName, null);
assertFalse(Strings.isNullOrEmpty(domainName));
return domainName;
}
Aggregations