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 TypeMethodDescriptionget(WebNotificationFilter filter, int offset, int limit) Gets the notification list by the given filter.getNotificationInfo(String notificationId) Get the notificationInfo for the provided iddefault List<NotificationInfo>getNotificationInfos(WebNotificationFilter filter, int offset, int limit) Gets the NotificationInfo list by the given filter.intgetNumberOnBadge(String userId) Gets the number on the badge by the specified uservoidhidePopover(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.voidMarks the notification to be read by the userIdbooleanRemoves the notification by the notificationIdvoidresetNumberOnBadge(String userId) voidsave(NotificationInfo notification) Creates the new notification message to the specified user.
-
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
-
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- Throws:
Exception- Since:
- PLF 4.2
- eXo level API
- Platform
-
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
default List<NotificationInfo> getNotificationInfos(WebNotificationFilter filter, int offset, int limit) 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
-
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:
userId-- Returns:
- Since:
- PLF 4.2
- eXo level API
- Platform
-
resetNumberOnBadge
- Parameters:
userId-- Since:
- PLF 4.2
- eXo level API
- Platform
-