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

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

Introduction

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

Prototype

String MESSAGE_BOARDS_EMAIL_MESSAGE_ADDED_BODY

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

Click Source Link

Usage

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

License:Open Source License

public static String getEmailMessageAddedBody(PortletPreferences preferences) {

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

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