use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_76427 method doGlobalConfig.
private void doGlobalConfig(ZLdapContext zlc) throws ServiceException {
Config config = prov.getConfig();
doEntry(zlc, config, "global config", Provisioning.A_zimbraZimletDomainAvailableZimlets);
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_47934 method upgradeZimbraGalLdapAttrMap.
void upgradeZimbraGalLdapAttrMap() throws ServiceException {
Config config = prov.getConfig();
String[] values = { "zimbraPhoneticCompany,ms-DS-Phonetic-Company-Name=phoneticCompany", "zimbraPhoneticFirstName,ms-DS-Phonetic-First-Name=phoneticFirstName", "zimbraPhoneticLastName,ms-DS-Phonetic-Last-Name=phoneticLastName" };
Map<String, Object> attrs = new HashMap<String, Object>();
attrs.put("+" + Provisioning.A_zimbraGalLdapAttrMap, values);
modifyAttrs(config, attrs);
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_58084 method doGlobalConfig.
private void doGlobalConfig(ZLdapContext zlc) throws ServiceException {
Config config = prov.getConfig();
doEntry(zlc, config, "global config");
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_58514 method upgradeZimbraContactHiddenAttributes.
private void upgradeZimbraContactHiddenAttributes() throws ServiceException {
Config config = prov.getConfig();
upgradeZimbraContactHiddenAttributes(config);
List<Server> servers = prov.getAllServers();
for (Server server : servers) {
upgradeZimbraContactHiddenAttributes(server);
}
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_58514 method upgradeZimbraGalLdapAttrMap.
private void upgradeZimbraGalLdapAttrMap() throws ServiceException {
final String attrName = Provisioning.A_zimbraGalLdapAttrMap;
final String valueToRemove = "binary zimbraPrefMailSMIMECertificate,userCertificate,userSMIMECertificate=SMIMECertificate";
final String[] valuesToAdd = new String[] { "(certificate) userCertificate=userCertificate", "(binary) userSMIMECertificate=userSMIMECertificate" };
Config config = prov.getConfig();
Map<String, Object> attrs = new HashMap<String, Object>();
Set<String> curValues = config.getMultiAttrSet(attrName);
if (curValues.contains(valueToRemove)) {
StringUtil.addToMultiMap(attrs, "-" + attrName, valueToRemove);
}
for (String valueToAdd : valuesToAdd) {
if (!curValues.contains(valueToAdd)) {
StringUtil.addToMultiMap(attrs, "+" + attrName, valueToAdd);
}
}
modifyAttrs(config, attrs);
}
Aggregations