Example usage for com.liferay.portal.kernel.util PropsKeys MESSAGE_BOARDS_EMAIL_MESSAGE_ADDED_ENABLED

List of usage examples for com.liferay.portal.kernel.util PropsKeys MESSAGE_BOARDS_EMAIL_MESSAGE_ADDED_ENABLED

Introduction

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

Prototype

String MESSAGE_BOARDS_EMAIL_MESSAGE_ADDED_ENABLED

To view the source code for com.liferay.portal.kernel.util PropsKeys MESSAGE_BOARDS_EMAIL_MESSAGE_ADDED_ENABLED.

Click Source Link

Usage

From source file:com.cd.learning.hook.MBUtil.java

License:Open Source License

public static boolean getEmailMessageAddedEnabled(PortletPreferences preferences) {

    String emailMessageAddedEnabled = preferences.getValue("emailMessageAddedEnabled", StringPool.BLANK);

    if (Validator.isNotNull(emailMessageAddedEnabled)) {
        return GetterUtil.getBoolean(emailMessageAddedEnabled);
    } else {/*from  ww w  .  jav  a 2 s  . co m*/
        return GetterUtil.getBoolean(PropsUtil.get(PropsKeys.MESSAGE_BOARDS_EMAIL_MESSAGE_ADDED_ENABLED));
    }
}