17cfac1e5d72da0959bbc0c6aa7213d4a0e5f7ec
[sdc.git] /
1 package org.openecomp.sdc.notification.services;
2
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;
7
8 import java.util.List;
9 import java.util.UUID;
10
11 /**
12  * @author Avrahamg
13  * @since June 22, 2017
14  */
15 public interface NotificationsService {
16
17         LastSeenNotificationEntity getLastNotification(String ownerId);
18
19         NotificationsStatus getNotificationsStatus(String ownerId, UUID lastDelivered, int numOfRecordsToReturn, UUID endOfPage);
20
21         void updateLastSeenNotification(String ownerId, UUID eventId);
22
23         void markAsRead(String ownerId, String notificationId) throws NotificationNotExistException;
24
25     List<NotificationEntity> getNotificationsByOwnerId(String ownerId, int limit);
26
27     List<NotificationEntity> getNewNotificationsByOwnerId(String ownerId, UUID eventId);
28
29     List<NotificationEntity> getNewNotificationsByOwnerId(String ownerId, UUID eventId, int limit);
30
31 }