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

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

Introduction

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

Prototype

String MESSAGE_BOARDS_EMAIL_MESSAGE_UPDATED_ENABLED

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

Click Source Link

Usage

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

License:Open Source License

public static boolean getEmailMessageUpdatedEnabled(PortletPreferences preferences) {

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

    if (Validator.isNotNull(emailMessageUpdatedEnabled)) {
        return GetterUtil.getBoolean(emailMessageUpdatedEnabled);
    } else {/*from www.j  a v  a2 s . c  om*/
        return GetterUtil.getBoolean(PropsUtil.get(PropsKeys.MESSAGE_BOARDS_EMAIL_MESSAGE_UPDATED_ENABLED));
    }
}