public interface WebNotificationService
| Modifier and Type | Field and Description |
|---|---|
static ArgumentLiteral<Boolean> |
POPUP_OVER
Define the argument parameter for popup over context
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
get(WebNotificationFilter filter,
int offset,
int limit)
Gets the notification list by the given filter.
|
default List<NotificationInfo> |
getNotificationInfos(WebNotificationFilter filter,
int offset,
int limit)
Gets the NotificationInfo list by the given filter.
|
int |
getNumberOnBadge(String userId)
Gets the number on the badge by the specified user
|
void |
hidePopover(String notificationId)
Updates the notification's popover list 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(String notificationId)
Removes the notification by the notificationId
|
void |
resetNumberOnBadge(String userId) |
void |
save(NotificationInfo notification)
Creates the new notification message to the specified user.
|
static final ArgumentLiteral<Boolean> POPUP_OVER
void save(NotificationInfo notification)
notification - the notificationvoid markRead(String notificationId)
notificationId - the Notification Idvoid markAllRead(String userId) throws Exception
userId - the userIdExceptionvoid hidePopover(String notificationId)
notificationId - the Notification IdList<String> get(WebNotificationFilter filter, int offset, int limit)
filter - the filter conditionoffset - limit - default List<NotificationInfo> getNotificationInfos(WebNotificationFilter filter, int offset, int limit)
The filter consist of these criteria: + UserId + isPopover TRUE/FALSE + Read TRUE/FALSE + parameter key,value
filter - the filter conditionoffset - limit - boolean remove(String notificationId)
notificationId - int getNumberOnBadge(String userId)
userId - void resetNumberOnBadge(String userId)
userId - Copyright © 2003–2018 eXo Platform SAS. All rights reserved.