summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-api/src/main/java/org/openecomp/sdc/notification/services/NotificationsService.java
blob: 17cfac1e5d72da0959bbc0c6aa7213d4a0e5f7ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package org.openecomp.sdc.notification.services;

import org.openecomp.sdc.notification.dao.types.LastSeenNotificationEntity;
import org.openecomp.sdc.notification.dao.types.NotificationEntity;
import org.openecomp.sdc.notification.dtos.NotificationsStatus;
import org.openecomp.sdc.notification.exceptons.NotificationNotExistException;

import java.util.List;
import java.util.UUID;

/**
 * @author Avrahamg
 * @since June 22, 2017
 */
public interface NotificationsService {

	LastSeenNotificationEntity getLastNotification(String ownerId);

	NotificationsStatus getNotificationsStatus(String ownerId, UUID lastDelivered, int numOfRecordsToReturn, UUID endOfPage);

	void updateLastSeenNotification(String ownerId, UUID eventId);

	void markAsRead(String ownerId, String notificationId) throws NotificationNotExistException;

    List<NotificationEntity> getNotificationsByOwnerId(String ownerId, int limit);

    List<NotificationEntity> getNewNotificationsByOwnerId(String ownerId, UUID eventId);

    List<NotificationEntity> getNewNotificationsByOwnerId(String ownerId, UUID eventId, int limit);

}