Package org.cxbox.notifications.dao.impl
Class NotificationDAOImpl
- java.lang.Object
-
- org.cxbox.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)longcountNotifications(Long recipientId, boolean unread, Long offset)voiddeleteNotifications(List<Long> notificationId, Long recipientId)org.cxbox.api.data.ResultPage<Notification>getNotifications(Long recipientId, boolean unread, Long offset, org.cxbox.api.data.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
public org.cxbox.api.data.ResultPage<Notification> getNotifications(Long recipientId, boolean unread, Long offset, org.cxbox.api.data.PageSpecification page)
- Specified by:
getNotificationsin interfaceNotificationDAO
-
countNotifications
public long countNotifications(Long recipientId, boolean unread, Long offset)
- Specified by:
countNotificationsin interfaceNotificationDAO
-
checkNewNotifications
public Map<Long,List<Notification>> checkNewNotifications(List<NotificationDeferredResult> recipients)
- Specified by:
checkNewNotificationsin interfaceNotificationDAO
-
markNotificationsAsRead
public void markNotificationsAsRead(List<Long> notificationId, Boolean mark, Long recipientId)
- Specified by:
markNotificationsAsReadin interfaceNotificationDAO
-
markDelivered
public void markDelivered(Notification notification, int serviceId)
- Specified by:
markDeliveredin interfaceNotificationDAO
-
deleteNotifications
public void deleteNotifications(List<Long> notificationId, Long recipientId)
- Specified by:
deleteNotificationsin interfaceNotificationDAO
-
saveNotification
public Long saveNotification(String url, String message, Long recipientId)
- Specified by:
saveNotificationin interfaceNotificationDAO
-
-