Example usage for com.liferay.portal.kernel.configuration Filter Filter

List of usage examples for com.liferay.portal.kernel.configuration Filter Filter

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.configuration Filter Filter.

Prototype

@Deprecated
public Filter(String[] selectors, Map<String, String> variables) 

Source Link

Usage

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

License:Open Source License

public static String getDefaultTemplate(NotificationType notificationType,
        NotificationTemplateType notificationTemplateType, NotificationField notificationField)
        throws Exception {

    Filter filter = new Filter(notificationType.toString(), notificationTemplateType.toString());

    String propertyName = CalendarServiceConfigurationKeys.CALENDAR_NOTIFICATION_PREFIX + StringPool.PERIOD
            + notificationField.toString();

    String templatePath = CalendarServiceConfigurationUtil.get(propertyName, filter);

    return ContentUtil.get(NotificationUtil.class.getClassLoader(), templatePath);
}

From source file:com.liferay.calendar.util.NotificationUtil.java

License:Open Source License

public static String getDefaultTemplate(NotificationType notificationType,
        NotificationTemplateType notificationTemplateType, NotificationField notificationField)
        throws Exception {

    Filter filter = new Filter(notificationType.toString(), notificationTemplateType.toString());

    String propertyName = PortletPropsKeys.CALENDAR_NOTIFICATION_PREFIX + StringPool.PERIOD
            + notificationField.toString();

    String templatePath = PortletProps.get(propertyName, filter);

    return ContentUtil.get(templatePath);
}

From source file:com.liferay.taglib.ui.SocialBookmarkTag.java

License:Open Source License

private String getPostUrl() {
    Map<String, String> vars = new HashMap<String, String>();

    vars.put("liferay:social-bookmark:title", HttpUtil.encodeURL(_title));
    vars.put("liferay:social-bookmark:url", _url);

    String postUrl = PropsUtil.get(PropsKeys.SOCIAL_BOOKMARK_POST_URL, new Filter(_type, vars));

    return postUrl;
}