@Override public ModifiableSettings setValue(String key, String value) { ModifiableSettings modifiableSettings = _getModifiableSettings(); modifiableSettings.setValue(key, value); return this; }
protected void setUpBlogsSettings() throws Exception { Settings settings = SettingsFactoryUtil.getGroupServiceSettings( _group.getGroupId(), BlogsConstants.SERVICE_NAME); ModifiableSettings modifiableSettings = settings.getModifiableSettings(); String subscriptionBodyPreferencesKey = LocalizationUtil.getLocalizedName( "emailEntryUpdatedBody", LocaleUtil.toLanguageId(LocaleUtil.getDefault())); modifiableSettings.setValue(subscriptionBodyPreferencesKey, "[$BLOGS_ENTRY_UPDATE_COMMENT$]"); modifiableSettings.store(); }