public interface INotificationDAO
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nIdNotification)
Delete the notification
|
List<Notification> |
findNotificationsByUser(String strIdUser,
Integer nLimit)
Load all notification by user
|
void |
insert(Notification notification)
Insert a new notification
|
void |
insertListNotification(List<Notification> listNotifications)
Insert a list of notification
|
Optional<Notification> |
load(int nIdNotification)
Load a notification by id
|
void |
updateReadStatus(int nIdNotification,
boolean isRead)
Update read status
|
void insert(Notification notification)
notification - the notificationvoid insertListNotification(List<Notification> listNotifications)
listNotifications - the list of notificationvoid updateReadStatus(int nIdNotification,
boolean isRead)
nIdNotification - isRead - Optional<Notification> load(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 delete(int nIdNotification)
nIdNotification - the id of the notificationCopyright © 2022 City of Paris. All rights reserved.