public interface NotificationService extends Service
| Modifier and Type | Method and Description |
|---|---|
NotificationsStatusVO |
getNotificationsStatus()
Returns the notifications status containing the unread/new notifications and the last view date.
|
NotificationVO |
load(@NotNull java.lang.Long id)
Loads a vo by id
|
void |
markAllRead()
Marks as read all the notifications of the logged user
|
void |
markAsRead(@NotNull java.util.List<java.lang.Long> ids)
Marks as read the given notification ids
|
void |
remove(@NotNull java.lang.Long id)
Removes the given notification id
|
void |
removeAll(@NotNull java.util.Collection<java.lang.Long> notificationIds)
Removes a set of notifications
|
Page<NotificationVO> |
search(@NotNull NotificationQuery params)
Searches for notifications for the logged user
|
NotificationsStatusVO getNotificationsStatus() throws FrameworkException
UserValidationService.updateUserActivity(org.cyclos.model.users.users.UserActivityType) method with the
parameter UserActivityType.NOTIFICATION.FrameworkExceptionNotificationVO load(@NotNull @NotNull java.lang.Long id) throws FrameworkException
FrameworkExceptionvoid markAllRead()
throws FrameworkException
FrameworkExceptionvoid markAsRead(@NotNull
@NotNull java.util.List<java.lang.Long> ids)
throws FrameworkException
FrameworkExceptionvoid remove(@NotNull
@NotNull java.lang.Long id)
throws FrameworkException
FrameworkExceptionvoid removeAll(@NotNull
@NotNull java.util.Collection<java.lang.Long> notificationIds)
throws FrameworkException
FrameworkExceptionPage<NotificationVO> search(@NotNull @NotNull NotificationQuery params) throws FrameworkException
FrameworkException