Interface WebNotificationService
public interface WebNotificationService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArgumentLiteral<Boolean> Define the argument parameter for popup over context -
Method Summary
Modifier and TypeMethodDescriptioncountUnreadByPlugin(String username) get(WebNotificationFilter filter, int offset, int limit) Gets the notification list by the given filter.getNotificationInfo(String notificationId) Get the notificationInfo for the provided idgetNotificationInfos(WebNotificationFilter filter, int offset, int limit) Gets the NotificationInfo list by the given filter.getNotificationMessage(NotificationInfo notification, boolean isOnPopover) Deprecated, for removal: This API element is subject to removal in a future version.replaced by Frontend UI building instead of Server end message buildingintgetNumberOnBadge(String username) Gets the number on the badge by the specified usergetUnreadNotification(String pluginId, String activityId, String userId) Gets the notification by the given conditionsvoidhidePopover(String notificationId) Updates the notification's popover list 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) Marks all notifications of the user as read for the designated notification types.voidMarks the notification to be read by the userIdbooleanRemoves the notification by the notificationIdvoidresetNumberOnBadge(String userId) voidresetNumberOnBadge(List<String> plugins, String username) Reset badge on notifications of the user for the designated notification types.voidsave(NotificationInfo notification) Creates the new notification message to the specified user.voidupdate(NotificationInfo notification, boolean moveTop) Update an existing notification message.
-
Field Details
-
POPUP_OVER
Define the argument parameter for popup over context
-
-
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
-
getNotificationInfo
Get the notificationInfo for the provided id- Parameters:
notificationId- the notification id- Since:
- PLF 6.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
Marks all notifications of the user as read for the designated notification types. -
hidePopover
Updates the notification's popover list 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 bodies list matched the given filter
- Since:
- PLF 4.2
- eXo level API
- Platform
-
getNotificationInfos
Gets the NotificationInfo list by the given filter.The filter consist of these criteria: + UserId + isPopover TRUE/FALSE + Read TRUE/FALSE + parameter key,value
- Parameters:
filter- the filter conditionoffset-limit-- Returns:
- The notification list matched the given filter
- Since:
- PLF 5.1
- eXo level API
- Platform
-
getNotificationMessage
@Deprecated(forRemoval=true, since="1.5.0") String getNotificationMessage(NotificationInfo notification, boolean isOnPopover) Deprecated, for removal: This API element is subject to removal in a future version.replaced by Frontend UI building instead of Server end message buildingRetrieve Built Message using Groovy Template engine. -
remove
Removes the notification by the notificationId- Parameters:
notificationId-- Returns:
- Returns TRUE if removing successfully Otherwise FALSE
- Since:
- PLF 4.2
- eXo level API
- Platform
-
getNumberOnBadge
Gets the number on the badge by the specified user- Parameters:
username- user to retrieve its badges- Returns:
- Since:
- PLF 4.2
- eXo level API
- Platform
-
countUnreadByPlugin
- Parameters:
username- user to retrieve its badges- Returns:
Mapof Badges per plugin
-
resetNumberOnBadge
- Parameters:
userId-- Since:
- PLF 4.2
- eXo level API
- Platform
-
resetNumberOnBadge
Reset badge on notifications of the user for the designated notification types. -
getUnreadNotification
Gets the notification by the given conditions- Parameters:
pluginId-activityId-userId-- Returns:
NotificationInfo
-