public class MockNotificationDAO extends Object implements INotificationDAO
INotificationDAO
Constructor and Description |
---|
MockNotificationDAO() |
Modifier and Type | Method and Description |
---|---|
void |
deleteByDemand(String strDemandId,
String strDemandTypeId)
Deletes notifications associated to the specified demand id and demand type id
|
Notification |
insert(Notification notification)
Inserts a notification
|
List<Notification> |
loadByDemand(String strDemandId,
String strDemandTypeId)
Finds notifications associated to the specified demand id and demand type id.
|
List<Notification> |
loadByFilter(NotificationFilter notificationFilter)
Finds and populate notification according to the filter
|
Notification |
loadById(String strId)
Finds notifications associated to the id
|
List<String> |
loadIdsByFilter(NotificationFilter notificationFilter)
Load the ids of the notification by filter
|
public List<Notification> loadByDemand(String strDemandId, String strDemandTypeId)
loadByDemand
in interface INotificationDAO
strDemandId
- the demand idstrDemandTypeId
- the demand type idpublic List<Notification> loadByFilter(NotificationFilter notificationFilter)
loadByFilter
in interface INotificationDAO
notificationFilter
- the filterpublic Notification insert(Notification notification)
insert
in interface INotificationDAO
notification
- the notification to insertpublic void deleteByDemand(String strDemandId, String strDemandTypeId)
deleteByDemand
in interface INotificationDAO
strDemandId
- the demand idstrDemandTypeId
- the demand type idpublic List<String> loadIdsByFilter(NotificationFilter notificationFilter)
loadIdsByFilter
in interface INotificationDAO
notificationFilter
- The notification filterpublic Notification loadById(String strId)
loadById
in interface INotificationDAO
Copyright © 2021 City of Paris. All rights reserved.