public interface NotificationManagementService
| Modifier and Type | Method and Description |
|---|---|
boolean |
addNotification(DeviceIdentifier deviceId,
Notification notification)
Method to add a notification to the database.
|
List<Notification> |
getAllNotifications()
Method to fetch all the notifications in the database.
|
PaginationResult |
getAllNotifications(PaginationRequest request) |
Notification |
getNotification(int notificationId) |
List<Notification> |
getNotificationsByStatus(Notification.Status status) |
PaginationResult |
getNotificationsByStatus(Notification.Status status,
PaginationRequest request) |
boolean |
updateNotification(Notification notification)
Method to update a notification in the database.
|
boolean |
updateNotificationStatus(int notificationId,
Notification.Status status)
Method to update the notification status of a Notification in the database.
|
boolean addNotification(DeviceIdentifier deviceId, Notification notification) throws NotificationManagementException
notification - - Notification to be added to database.NotificationManagementException - if something goes wrong while adding the Notification.boolean updateNotification(Notification notification) throws NotificationManagementException
notification - - Notification to be updated in the database.NotificationManagementException - if something goes wrong while updating the Notification.boolean updateNotificationStatus(int notificationId,
Notification.Status status)
throws NotificationManagementException
notificationId - - Notification id of the notification to be updated.status - - New notification status.NotificationManagementException - if something goes wrong while updating the Notification.List<Notification> getAllNotifications() throws NotificationManagementException
NotificationManagementExceptionNotification getNotification(int notificationId) throws NotificationManagementException
NotificationManagementExceptionPaginationResult getAllNotifications(PaginationRequest request) throws NotificationManagementException
NotificationManagementExceptionList<Notification> getNotificationsByStatus(Notification.Status status) throws NotificationManagementException
status - - Status of the notifications to be fetched from database.NotificationManagementException - if something goes wrong while fetching the Notification.PaginationResult getNotificationsByStatus(Notification.Status status, PaginationRequest request) throws NotificationManagementException
NotificationManagementExceptionCopyright © 2017 WSO2. All rights reserved.