Interface WebNotificationStorage
public interface WebNotificationStorage
-
Method Summary
Modifier and TypeMethodDescriptioncountUnreadByPlugin(String userId) Gets the notification by the Idget(WebNotificationFilter filter, int offset, int limit) Gets the notification list by the given filter.intgetNumberOnBadge(String userId) Gets the number on the badge by the specified usergetUnreadNotification(String pluginId, String activityId, String owner) Gets the notification by the given conditionsvoidhidePopover(String notificationId) Updates the notification's popover status to be FALSE value However it's still showing on View All page.voidmarkAllRead(String userId) Marks all notifications what belong to the user to be read.voidmarkAllRead(List<String> plugins, String username) voidMarks the notification to be read by the userIdbooleanremove(long seconds) Remove the NotificationInfo live after X daysbooleanRemoves the notification by given IdbooleanRemove the NotificationInfo live after X daysvoidresetNumberOnBadge(String userId) Reset the number on badge of the specified uservoidresetNumberOnBadge(List<String> plugins, String username) voidsave(NotificationInfo notification) Creates the new notification message to the specified user.voidupdate(NotificationInfo notification, boolean moveTop) Update an existing notification message.
-
Method Details
-
save
Creates the new notification message to the specified user. The userId gets from the notification#getTo().- Parameters:
notification- the notification- Since:
- PLF 4.2
- eXo level API
- Platform
-
update
Update an existing notification message.- Parameters:
notification- the notificationmoveTop- After updating, MUST move the notification to top of list- Since:
- PLF 4.2
- eXo level API
- Platform
-
markRead
Marks the notification to be read by the userId- Parameters:
notificationId- the Notification Id- Since:
- PLF 4.2
- eXo level API
- Platform
-
markAllRead
Marks all notifications what belong to the user to be read.- Parameters:
userId- the userId- Since:
- PLF 4.2
- eXo level API
- Platform
-
markAllRead
-
hidePopover
Updates the notification's popover status to be FALSE value However it's still showing on View All page.- Parameters:
notificationId- the Notification Id- Since:
- PLF 4.2
- eXo level API
- Platform
-
get
Gets the notification list by the given filter. The filter consist of these criteria: + UserId + isPopover TRUE/FALSE + Read TRUE/FALSE- Parameters:
filter- the filter conditionoffset-limit-- Returns:
- The notification list matched the given filter
- Since:
- PLF 4.2
- eXo level API
- Platform
-
get
Gets the notification by the Id- Parameters:
notificationId-- Returns:
- the Notification matched the given Id
- Since:
- PLF 4.2
- eXo level API
- Platform
-
remove
Removes the notification by given Id- Parameters:
notificationId- the Id of the notification- Since:
- PLF 4.2
- eXo level API
- Platform
-
remove
Remove the NotificationInfo live after X days- Parameters:
userId-seconds-- Returns:
- Returns TRUE if removing successfully Otherwise FALSE
- Since:
- PLF 4.2
- eXo level API
- Platform
-
getUnreadNotification
Gets the notification by the given conditions- Parameters:
pluginId-activityId-owner-- Returns:
- Since:
- PLF 4.2
- eXo level API
- Platform
-
getNumberOnBadge
Gets the number on the badge by the specified user- Parameters:
userId- the userId- Returns:
- Since:
- PLF 4.2
- eXo level API
- Platform
-
countUnreadByPlugin
-
resetNumberOnBadge
Reset the number on badge of the specified user- Parameters:
userId- the userId- Since:
- PLF 4.2
- eXo level API
- Platform
-
resetNumberOnBadge
-
remove
boolean remove(long seconds) Remove the NotificationInfo live after X days- Parameters:
seconds-- Returns:
- Returns TRUE if removing successfully Otherwise FALSE
- Since:
- PLF 4.2
- eXo level API
- Platform
-