Example usage for com.liferay.portal.kernel.bean BeanPropertiesUtil getString

List of usage examples for com.liferay.portal.kernel.bean BeanPropertiesUtil getString

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.bean BeanPropertiesUtil getString.

Prototype

public static String getString(Object bean, String param, String defaultValue) 

Source Link

Usage

From source file:com.liferay.calendar.notification.impl.NotificationUtil.java

License:Open Source License

public static String getTemplate(CalendarNotificationTemplate calendarNotificationTemplate,
        NotificationType notificationType, NotificationTemplateType notificationTemplateType,
        NotificationField notificationField) throws Exception {

    String defaultTemplate = getDefaultTemplate(notificationType, notificationTemplateType, notificationField);

    return BeanPropertiesUtil.getString(calendarNotificationTemplate, notificationField.toString(),
            defaultTemplate);//from  w  ww  .j  a va  2s  . c  o m
}