Liferay 7.0-ce-b4

com.liferay.portal.kernel.notifications
Class UserNotificationManagerUtil

java.lang.Object
  extended by com.liferay.portal.kernel.notifications.UserNotificationManagerUtil

public class UserNotificationManagerUtil
extends Object


Method Summary
static void addUserNotificationDefinition(String portletId, UserNotificationDefinition userNotificationDefinition)
           
static void addUserNotificationHandler(UserNotificationHandler userNotificationHandler)
           
static void deleteUserNotificationDefinitions(String portletId)
           
static void deleteUserNotificationHandler(UserNotificationHandler userNotificationHandler)
           
static UserNotificationDefinition fetchUserNotificationDefinition(String portletId, long classNameId, int notificationType)
           
static Map<String,List<UserNotificationDefinition>> getUserNotificationDefinitions()
           
static Map<String,Map<String,UserNotificationHandler>> getUserNotificationHandlers()
           
static UserNotificationFeedEntry interpret(String selector, UserNotificationEvent userNotificationEvent, ServiceContext serviceContext)
           
static boolean isDeliver(long userId, String portletId, long classNameId, int notificationType, int deliveryType)
           
static boolean isDeliver(long userId, String selector, String portletId, long classNameId, int notificationType, int deliveryType, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addUserNotificationDefinition

public static void addUserNotificationDefinition(String portletId,
                                                 UserNotificationDefinition userNotificationDefinition)

addUserNotificationHandler

public static void addUserNotificationHandler(UserNotificationHandler userNotificationHandler)

deleteUserNotificationDefinitions

public static void deleteUserNotificationDefinitions(String portletId)

deleteUserNotificationHandler

public static void deleteUserNotificationHandler(UserNotificationHandler userNotificationHandler)

fetchUserNotificationDefinition

public static UserNotificationDefinition fetchUserNotificationDefinition(String portletId,
                                                                         long classNameId,
                                                                         int notificationType)

getUserNotificationDefinitions

public static Map<String,List<UserNotificationDefinition>> getUserNotificationDefinitions()

getUserNotificationHandlers

public static Map<String,Map<String,UserNotificationHandler>> getUserNotificationHandlers()

interpret

public static UserNotificationFeedEntry interpret(String selector,
                                                  UserNotificationEvent userNotificationEvent,
                                                  ServiceContext serviceContext)
                                           throws PortalException
Throws:
PortalException

isDeliver

public static boolean isDeliver(long userId,
                                String portletId,
                                long classNameId,
                                int notificationType,
                                int deliveryType)
                         throws PortalException
Throws:
PortalException

isDeliver

public static boolean isDeliver(long userId,
                                String selector,
                                String portletId,
                                long classNameId,
                                int notificationType,
                                int deliveryType,
                                ServiceContext serviceContext)
                         throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4