public interface WebNotificationStorage
| Modifier and Type | Method and Description |
|---|---|
NotificationInfo |
get(String notificationId)
Gets the notification by the Id
|
List<NotificationInfo> |
get(WebNotificationFilter filter,
int offset,
int limit)
Gets the notification list by the given filter.
|
int |
getNumberOnBadge(String userId)
Gets the number on the badge by the specified user
|
NotificationInfo |
getUnreadNotification(String pluginId,
String activityId,
String owner)
Gets the notification by the given conditions
|
void |
hidePopover(String notificationId)
Updates the notification's popover status to be FALSE value
However it's still showing on View All page.
|
void |
markAllRead(String userId)
Marks all notifications what belong to the user to be read.
|
void |
markRead(String notificationId)
Marks the notification to be read by the userId
|
boolean |
remove(long seconds)
Remove the NotificationInfo live after X days
|
boolean |
remove(String notificationId)
Removes the notification by given Id
|
boolean |
remove(String userId,
long seconds)
Remove the NotificationInfo live after X days
|
void |
resetNumberOnBadge(String userId)
Reset the number on badge of the specified user
|
void |
save(NotificationInfo notification)
Creates the new notification message to the specified user.
|
void |
update(NotificationInfo notification,
boolean moveTop)
Update an existing notification message.
|
void save(NotificationInfo notification)
notification - the notificationvoid update(NotificationInfo notification, boolean moveTop)
notification - the notificationmoveTop - After updating, MUST move the notification to top of listvoid markRead(String notificationId)
notificationId - the Notification Idvoid markAllRead(String userId)
userId - the userIdvoid hidePopover(String notificationId)
notificationId - the Notification IdList<NotificationInfo> get(WebNotificationFilter filter, int offset, int limit)
filter - the filter conditionoffset - limit - NotificationInfo get(String notificationId)
notificationId - boolean remove(String notificationId)
notificationId - the Id of the notificationboolean remove(String userId, long seconds)
userId - seconds - NotificationInfo getUnreadNotification(String pluginId, String activityId, String owner)
pluginId - activityId - owner - int getNumberOnBadge(String userId)
userId - the userIdvoid resetNumberOnBadge(String userId)
userId - the userIdboolean remove(long seconds)
seconds - Copyright © 2003–2020 eXo Platform SAS. All rights reserved.