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

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

Introduction

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

Prototype

String MESSAGE_BOARDS_EMAIL_MESSAGE_UPDATED_BODY

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

Click Source Link

Usage

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

License:Open Source License

public static String getEmailMessageUpdatedBody(PortletPreferences preferences) {

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

    if (Validator.isNotNull(emailMessageUpdatedBody)) {
        return emailMessageUpdatedBody;
    } else {/* ww w .j  a  v  a 2  s.  c  om*/
        return ContentUtil.get(PropsUtil.get(PropsKeys.MESSAGE_BOARDS_EMAIL_MESSAGE_UPDATED_BODY));
    }
}