Package io.tesler.notifications.dao
Interface NotificationDAO
-
- All Known Implementing Classes:
NotificationDAOImpl
public interface NotificationDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<Long,List<Notification>>
checkNewNotifications(List<NotificationDeferredResult> recipients)
long
countNotifications(Long recipientId, boolean unread, Long offset)
void
deleteNotifications(List<Long> notificationId, Long recipientId)
ResultPage<Notification>
getNotifications(Long recipientId, boolean unread, Long offset, PageSpecification page)
void
markDelivered(Notification notification, int serviceId)
void
markNotificationsAsRead(List<Long> notificationId, Boolean mark, Long recipientId)
Long
saveNotification(String url, String message, Long recipientId)
-
-
-
Method Detail
-
getNotifications
ResultPage<Notification> getNotifications(Long recipientId, boolean unread, Long offset, PageSpecification page)
-
checkNewNotifications
Map<Long,List<Notification>> checkNewNotifications(List<NotificationDeferredResult> recipients)
-
markNotificationsAsRead
void markNotificationsAsRead(List<Long> notificationId, Boolean mark, Long recipientId)
-
markDelivered
void markDelivered(Notification notification, int serviceId)
-
-