use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_72007 method doUpgrade.
@Override
void doUpgrade() throws ServiceException {
Config config = prov.getConfig();
upgrdeAcount(config.getAttr(Provisioning.A_zimbraSpamIsNotSpamAccount));
upgrdeAcount(config.getAttr(Provisioning.A_zimbraSpamIsSpamAccount));
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_88098 method upgradeZimbraGalLdapFilterDef.
@SuppressWarnings("unchecked")
private void upgradeZimbraGalLdapFilterDef() throws ServiceException {
Config config = prov.getConfig();
Pair<String, String> value = new Pair<String, String>("zimbraAccountAutoComplete:(&(|(displayName=%s*)(cn=%s*)(sn=%s*)(gn=%s*)(zimbraPhoneticFirstName=%s*)(zimbraPhoneticLastName=%s*)(mail=%s*)(zimbraMailDeliveryAddress=%s*)(zimbraMailAlias=%s*))(|(objectclass=zimbraAccount)(objectclass=zimbraDistributionList)(objectclass=zimbraGroup))(!(objectclass=zimbraCalendarResource)))", "zimbraAccountAutoComplete:(&(|(displayName=*%s*)(cn=%s*)(sn=%s*)(gn=%s*)(zimbraPhoneticFirstName=%s*)(zimbraPhoneticLastName=%s*)(mail=%s*)(zimbraMailDeliveryAddress=%s*)(zimbraMailAlias=%s*))(|(objectclass=zimbraAccount)(objectclass=zimbraDistributionList)(objectclass=zimbraGroup))(!(objectclass=zimbraCalendarResource)))");
Set<String> curValues = config.getMultiAttrSet(Provisioning.A_zimbraGalLdapFilterDef);
Map<String, Object> attrs = new LinkedHashMap<String, Object>();
String oldValue = value.getFirst();
String newValue = value.getSecond();
if (curValues.contains(oldValue)) {
StringUtil.addToMultiMap(attrs, "-" + Provisioning.A_zimbraGalLdapFilterDef, oldValue);
StringUtil.addToMultiMap(attrs, "+" + Provisioning.A_zimbraGalLdapFilterDef, newValue);
}
modifyAttrs(config, attrs);
}
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");
}
Aggregations