Liferay 6.2-ce-ga5

com.liferay.portal.kernel.notifications
Class UserNotificationManagerUtil

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

public class UserNotificationManagerUtil
extends Object


Constructor Summary
UserNotificationManagerUtil()
           
 
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 UserNotificationManager getUserNotificationManager()
           
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)
           
 void setUserNotificationManager(UserNotificationManager userNotificationManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserNotificationManagerUtil

public UserNotificationManagerUtil()
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()

getUserNotificationManager

public static UserNotificationManager getUserNotificationManager()

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,
                                SystemException
Throws:
PortalException
SystemException

isDeliver

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

setUserNotificationManager

public void setUserNotificationManager(UserNotificationManager userNotificationManager)

Liferay 6.2-ce-ga5