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

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

Introduction

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

Prototype

String MESSAGE_BOARDS_EMAIL_MESSAGE_ADDED_SUBJECT

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

Click Source Link

Usage

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

License:Open Source License

public static String getEmailMessageAddedSubject(PortletPreferences preferences) {

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

    if (Validator.isNotNull(emailMessageAddedSubject)) {
        return emailMessageAddedSubject;
    } else {//from  w w  w  .  j  a  v a 2 s .  c  o m
        return ContentUtil.get(PropsUtil.get(PropsKeys.MESSAGE_BOARDS_EMAIL_MESSAGE_ADDED_SUBJECT));
    }
}