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)longcountNotifications(Long recipientId, boolean unread, Long offset)voiddeleteNotifications(List<Long> notificationId, Long recipientId)ResultPage<Notification>getNotifications(Long recipientId, boolean unread, Long offset, PageSpecification page)voidmarkDelivered(Notification notification, int serviceId)voidmarkNotificationsAsRead(List<Long> notificationId, Boolean mark, Long recipientId)LongsaveNotification(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)
-
-