1 package org.openecomp.sdc.notification.services;
3 import org.openecomp.sdc.notification.dao.types.LastSeenNotificationEntity;
4 import org.openecomp.sdc.notification.dao.types.NotificationEntity;
5 import org.openecomp.sdc.notification.dtos.NotificationsStatus;
6 import org.openecomp.sdc.notification.exceptons.NotificationNotExistException;
13 * @since June 22, 2017
15 public interface NotificationsService {
17 LastSeenNotificationEntity getLastNotification(String ownerId);
19 NotificationsStatus getNotificationsStatus(String ownerId, UUID lastDelivered, int numOfRecordsToReturn, UUID endOfPage);
21 void updateLastSeenNotification(String ownerId, UUID eventId);
23 void markAsRead(String ownerId, String notificationId) throws NotificationNotExistException;
25 List<NotificationEntity> getNotificationsByOwnerId(String ownerId, int limit);
27 List<NotificationEntity> getNewNotificationsByOwnerId(String ownerId, UUID eventId);
29 List<NotificationEntity> getNewNotificationsByOwnerId(String ownerId, UUID eventId, int limit);