public class UserNotificationManagerUtil
extends Object
Modifier and Type | Method and Description |
---|---|
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>> |
getActiveUserNotificationDefinitions() |
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) |
public static void addUserNotificationDefinition(String portletId, UserNotificationDefinition userNotificationDefinition)
public static void addUserNotificationHandler(UserNotificationHandler userNotificationHandler)
public static void deleteUserNotificationDefinitions(String portletId)
public static void deleteUserNotificationHandler(UserNotificationHandler userNotificationHandler)
public static UserNotificationDefinition fetchUserNotificationDefinition(String portletId, long classNameId, int notificationType)
public static Map<String,List<UserNotificationDefinition>> getActiveUserNotificationDefinitions()
public static Map<String,List<UserNotificationDefinition>> getUserNotificationDefinitions()
public static Map<String,Map<String,UserNotificationHandler>> getUserNotificationHandlers()
public static UserNotificationFeedEntry interpret(String selector, UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws PortalException
PortalException
public static boolean isDeliver(long userId, String portletId, long classNameId, int notificationType, int deliveryType) throws PortalException
PortalException
public static boolean isDeliver(long userId, String selector, String portletId, long classNameId, int notificationType, int deliveryType, ServiceContext serviceContext) throws PortalException
PortalException