
com.liferay.wiki.configuration.definition.WikiGroupServiceConfigurationOverrideImpl Maven / Gradle / Ivy
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.wiki.configuration.definition;
import com.liferay.portal.kernel.settings.TypedSettings;
import com.liferay.portal.kernel.util.LocalizationUtil;
import com.liferay.portal.kernel.util.PortalUtil;
import com.liferay.wiki.configuration.WikiGroupServiceConfigurationOverride;
/**
* @author Iván Zaera
*/
public class WikiGroupServiceConfigurationOverrideImpl
implements WikiGroupServiceConfigurationOverride {
public WikiGroupServiceConfigurationOverrideImpl(
TypedSettings typedSettings) {
_typedSettings = typedSettings;
}
@Override
public String emailPageAddedBodyXml() {
return LocalizationUtil.getXml(
_typedSettings.getLocalizedValuesMap("emailPageAddedBody"),
"emailPageAddedBody");
}
@Override
public String emailPageAddedSubjectXml() {
return LocalizationUtil.getXml(
_typedSettings.getLocalizedValuesMap("emailPageAddedSubject"),
"emailPageAddedSubject");
}
@Override
public String emailPageUpdatedBodyXml() {
return LocalizationUtil.getXml(
_typedSettings.getLocalizedValuesMap("emailPageUpdatedBody"),
"emailPageUpdatedBody");
}
@Override
public String emailPageUpdatedSubjectXml() {
return LocalizationUtil.getXml(
_typedSettings.getLocalizedValuesMap("emailPageUpdatedSubject"),
"emailPageUpdatedSubject");
}
@Override
public boolean enableRss() {
if (!PortalUtil.isRSSFeedsEnabled()) {
return false;
}
return _typedSettings.getBooleanValue("enableRss");
}
private final TypedSettings _typedSettings;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy