Example usage for com.liferay.portal.kernel.util PortalUtil isRSSFeedsEnabled

List of usage examples for com.liferay.portal.kernel.util PortalUtil isRSSFeedsEnabled

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util PortalUtil isRSSFeedsEnabled.

Prototype

public static boolean isRSSFeedsEnabled() 

Source Link

Usage

From source file:com.liferay.blogs.configuration.definition.BlogsGroupServiceConfigurationOverrideImpl.java

License:Open Source License

@Override
public boolean enableRss() {
    if (!PortalUtil.isRSSFeedsEnabled()) {
        return false;
    }//  w w  w .j  a va2  s  .  c  o m

    return _typedSettings.getBooleanValue("enableRss");
}

From source file:com.liferay.social.activities.web.internal.portlet.display.context.util.SocialActivitiesRequestHelper.java

License:Open Source License

public boolean isRSSEnabled() {
    if (_rssEnabled != null) {
        return _rssEnabled;
    }//  ww  w  . j  a va  2s .  com

    PortletPreferences portletPreferences = _getPortletPreferences();

    if (PortalUtil.isRSSFeedsEnabled()) {
        _rssEnabled = GetterUtil.getBoolean(portletPreferences.getValue("enableRss", null), true);
    } else {
        _rssEnabled = false;
    }

    return _rssEnabled;
}