public interface INotificationService
| Modifier and Type | Method and Description |
|---|---|
void |
create(Notification notification)
Create a new notification
|
void |
createListNotification(List<Notification> listNotifications)
Create a list of notification
|
Optional<Notification> |
findByPrimaryKey(int nIdNotification)
Find a notification by primary key
|
List<Notification> |
findNotificationsByUser(String strIdUser,
Integer nLimit)
Load all notification by user
|
void |
remove(int nIdNotification)
remove the notification
|
void |
updateReadStatus(int nIdNotification,
boolean isRead)
Update read status
|
void create(Notification notification)
notification - the notificationvoid createListNotification(List<Notification> listNotifications)
listNotifications - the list of notificationvoid updateReadStatus(int nIdNotification,
boolean isRead)
nIdNotification - isRead - Optional<Notification> findByPrimaryKey(int nIdNotification)
nIdNotification - the notification idList<Notification> findNotificationsByUser(String strIdUser, Integer nLimit)
strIdUser - the user idnLimit - (set to null if you don't want a limit)void remove(int nIdNotification)
nIdNotification - the id of the notificationCopyright © 2022 City of Paris. All rights reserved.