use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_57205 method doGlobalConfig.
private void doGlobalConfig(ZLdapContext zlc) throws ServiceException {
Config config = prov.getConfig();
doEntry(zlc, config);
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_63475 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_32719 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_58481 method upgradeZimbraGalLdapAttrMap.
private void upgradeZimbraGalLdapAttrMap() throws ServiceException {
final String attrName = Provisioning.A_zimbraGalLdapAttrMap;
final String[] valuesToAdd = new String[] { "objectClass=objectClass", "zimbraId=zimbraId", "zimbraMailForwardingAddress=member" };
Config config = prov.getConfig();
Map<String, Object> attrs = new HashMap<String, Object>();
Set<String> curValues = config.getMultiAttrSet(attrName);
for (String valueToAdd : valuesToAdd) {
if (!curValues.contains(valueToAdd)) {
StringUtil.addToMultiMap(attrs, "+" + attrName, valueToAdd);
}
}
modifyAttrs(config, attrs);
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class GetAllConfig method handle.
public Element handle(Element request, Map<String, Object> context) throws ServiceException {
ZimbraSoapContext zsc = getZimbraSoapContext(context);
Provisioning prov = Provisioning.getInstance();
Config config = prov.getConfig();
AdminAccessControl aac = checkRight(zsc, context, config, AdminRight.PR_ALWAYS_ALLOW);
Element response = zsc.createElement(AdminConstants.GET_ALL_CONFIG_RESPONSE);
encodeConfig(response, config, null, aac.getAttrRightChecker(config));
return response;
}
Aggregations