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

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

Introduction

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

Prototype

String CALENDAR_EMAIL_EVENT_REMINDER_SUBJECT

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

Click Source Link

Usage

From source file:com.liferay.portlet.calendar.util.CalUtil.java

License:Open Source License

public static String getEmailEventReminderSubject(PortletPreferences preferences) {

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

    if (Validator.isNotNull(emailEventReminderSubject)) {
        return emailEventReminderSubject;
    } else {/* w  w w .  j av  a2 s  .c om*/
        return ContentUtil.get(PropsUtil.get(PropsKeys.CALENDAR_EMAIL_EVENT_REMINDER_SUBJECT));
    }
}