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

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

Introduction

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

Prototype

String MESSAGE_BOARDS_EMAIL_MESSAGE_UPDATED_SUBJECT

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

Click Source Link

Usage

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

License:Open Source License

public static String getEmailMessageUpdatedSubject(PortletPreferences preferences) {

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

    if (Validator.isNotNull(emailMessageUpdatedSubject)) {
        return emailMessageUpdatedSubject;
    } else {//from www .j a  v a  2s.co  m
        return ContentUtil.get(PropsUtil.get(PropsKeys.MESSAGE_BOARDS_EMAIL_MESSAGE_UPDATED_SUBJECT));
    }
}