Interface WebNotificationService
-
public interface WebNotificationService
-
-
Field Summary
Fields Modifier and Type Field Description static ArgumentLiteral<Boolean>POPUP_OVERDefine the argument parameter for popup over context
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description List<String>get(WebNotificationFilter filter, int offset, int limit)Gets the notification list by the given filter.NotificationInfogetNotificationInfo(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.voidmarkRead(String notificationId)Marks the notification to be read by the userIdbooleanremove(String notificationId)Removes the notification by the notificationIdvoidresetNumberOnBadge(String userId)voidsave(NotificationInfo notification)Creates the new notification message to the specified user.
-
-
-
Field Detail
-
POPUP_OVER
static final ArgumentLiteral<Boolean> POPUP_OVER
Define the argument parameter for popup over context
-
-
Method Detail
-
save
void save(NotificationInfo notification)
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
NotificationInfo getNotificationInfo(String notificationId)
Get the notificationInfo for the provided id- Parameters:
notificationId- the notification id- Since:
- PLF 6.2
- eXo level API
- Platform
-
markRead
void markRead(String notificationId)
Marks the notification to be read by the userId- Parameters:
notificationId- the Notification Id- Since:
- PLF 4.2
- eXo level API
- Platform
-
markAllRead
void markAllRead(String userId) throws Exception
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
void hidePopover(String notificationId)
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
List<String> get(WebNotificationFilter filter, int offset, int limit)
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
boolean remove(String notificationId)
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
int getNumberOnBadge(String userId)
Gets the number on the badge by the specified user- Parameters:
userId-- Returns:
- Since:
- PLF 4.2
- eXo level API
- Platform
-
resetNumberOnBadge
void resetNumberOnBadge(String userId)
- Parameters:
userId-- Since:
- PLF 4.2
- eXo level API
- Platform
-
-