Package io.tesler.notifications.dao.impl
Class NotificationDAOImpl
- java.lang.Object
-
- io.tesler.notifications.dao.impl.NotificationDAOImpl
-
- All Implemented Interfaces:
NotificationDAO
@Repository @Transactional public class NotificationDAOImpl extends Object implements NotificationDAO
-
-
Constructor Summary
Constructors Constructor Description NotificationDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public ResultPage<Notification> getNotifications(Long recipientId, boolean unread, Long offset, PageSpecification page)
- Specified by:
getNotifications
in interfaceNotificationDAO
-
countNotifications
public long countNotifications(Long recipientId, boolean unread, Long offset)
- Specified by:
countNotifications
in interfaceNotificationDAO
-
checkNewNotifications
public Map<Long,List<Notification>> checkNewNotifications(List<NotificationDeferredResult> recipients)
- Specified by:
checkNewNotifications
in interfaceNotificationDAO
-
markNotificationsAsRead
public void markNotificationsAsRead(List<Long> notificationId, Boolean mark, Long recipientId)
- Specified by:
markNotificationsAsRead
in interfaceNotificationDAO
-
markDelivered
public void markDelivered(Notification notification, int serviceId)
- Specified by:
markDelivered
in interfaceNotificationDAO
-
deleteNotifications
public void deleteNotifications(List<Long> notificationId, Long recipientId)
- Specified by:
deleteNotifications
in interfaceNotificationDAO
-
saveNotification
public Long saveNotification(String url, String message, Long recipientId)
- Specified by:
saveNotification
in interfaceNotificationDAO
-
-