public class PollNotificationHandler
extends java.lang.Object
| 构造器和说明 |
|---|
PollNotificationHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addOrUpdateNotification(NotificationMessage message)
新增或更新通知消息
|
static void |
addOrUpdateNotifications(java.util.List<NotificationMessage> messages)
批量新增或更新通知消息
|
static java.util.Set<NotificationMessage> |
getNotification(User user)
获取某个人所有的通知消息
|
static java.util.Set<NotificationMessage> |
getNotificationByType(java.lang.Long userId,
PollNotificationType type) |
static java.util.Set<NotificationMessage> |
getNotificationByType(User user,
PollNotificationType type)
获取指定类型的消息
|
static void |
main(java.lang.String[] args) |
static void |
removeNotification(NotificationMessage message)
删除过期了通信消息
|
static void |
removeNotifications(java.util.List<NotificationMessage> messages)
批量删除通信消息
|
public static java.util.Set<NotificationMessage> getNotification(User user)
user - public static java.util.Set<NotificationMessage> getNotificationByType(User user, PollNotificationType type)
user - 人员type - 消息类型public static java.util.Set<NotificationMessage> getNotificationByType(java.lang.Long userId, PollNotificationType type)
public static void addOrUpdateNotifications(java.util.List<NotificationMessage> messages)
messages - public static void removeNotifications(java.util.List<NotificationMessage> messages)
messages - public static void addOrUpdateNotification(NotificationMessage message)
message - 新增或更新的消息public static void removeNotification(NotificationMessage message)
message - 待删除消息public static void main(java.lang.String[] args)