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

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

Introduction

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

Prototype

String CALENDAR_EMAIL_EVENT_REMINDER_BODY

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

Click Source Link

Usage

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

License:Open Source License

public static String getEmailEventReminderBody(PortletPreferences preferences) {

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

    if (Validator.isNotNull(emailEventReminderBody)) {
        return emailEventReminderBody;
    } else {/*from w ww.j  a v  a2 s .  co m*/
        return ContentUtil.get(PropsUtil.get(PropsKeys.CALENDAR_EMAIL_EVENT_REMINDER_BODY));
    }
}