001
014
015 package com.liferay.portal.kernel.notifications;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.model.UserNotificationEvent;
019 import com.liferay.portal.service.ServiceContext;
020
021
024 public interface UserNotificationHandler {
025
026 public String getPortletId();
027
028 public String getSelector();
029
030 public UserNotificationFeedEntry interpret(
031 UserNotificationEvent userNotificationEvent,
032 ServiceContext serviceContext)
033 throws PortalException;
034
035 public boolean isDeliver(
036 long userId, long classNameId, int notificationType,
037 int deliveryType, ServiceContext serviceContext)
038 throws PortalException;
039
040 public boolean isOpenDialog();
041
042 }