Class MockNotificationEventDAO
java.lang.Object
fr.paris.lutece.plugins.grubusiness.business.mock.MockNotificationEventDAO
- All Implemented Interfaces:
INotificationEventDAO
This class provides Data Access methods for NotificationEvent objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey) delete a notification eventdeleteBeforeDate(long lDate) purge the events after N daysvoiddeleteByCustomerId(String strCustomerId) Delete by customer idinsert(NotificationEvent notificationEvent) Inserts a notification eventloadByDemand(String strDemandId, String strDemandTypeId) Finds notification events associated to the specified demand id and demand type id.loadByFilter(NotificationFilter filter) Finds and populate notification according to the filterloadById(int nKey) Finds notifications associated to the idload the events for an id listloadByNotification(String strDemandId, String strDemandTypeId, long lNotificationDate) Finds notification events associated to the specified notificationloadIdsByFilter(NotificationFilter filter) Load the ids of the notification events by filter
-
Constructor Details
-
MockNotificationEventDAO
public MockNotificationEventDAO()
-
-
Method Details
-
insert
Inserts a notification event- Specified by:
insertin interfaceINotificationEventDAO- Parameters:
notificationEvent- the notification event to insert- Returns:
- the inserted notification event
-
loadById
Finds notifications associated to the id- Specified by:
loadByIdin interfaceINotificationEventDAO- Returns:
- the notification corresponding to given id.
-
delete
public void delete(int nKey) delete a notification event- Specified by:
deletein interfaceINotificationEventDAO
-
loadByDemand
Finds notification events associated to the specified demand id and demand type id.- Specified by:
loadByDemandin interfaceINotificationEventDAO- Parameters:
strDemandId- the demand idstrDemandTypeId- the demand type id- Returns:
- the notification event list
-
loadByFilter
Finds and populate notification according to the filter- Specified by:
loadByFilterin interfaceINotificationEventDAO- Parameters:
filter- the filter- Returns:
- the notification events. An empty list is returned if no notificationevent has been found.
-
loadIdsByFilter
Load the ids of the notification events by filter- Specified by:
loadIdsByFilterin interfaceINotificationEventDAO- Parameters:
filter- The notification filter- Returns:
- The list of notification event ids
-
loadByNotification
public List<NotificationEvent> loadByNotification(String strDemandId, String strDemandTypeId, long lNotificationDate) Description copied from interface:INotificationEventDAOFinds notification events associated to the specified notification- Specified by:
loadByNotificationin interfaceINotificationEventDAO- Returns:
- the notification event list
-
loadByIds
Description copied from interface:INotificationEventDAOload the events for an id list- Specified by:
loadByIdsin interfaceINotificationEventDAO- Returns:
- The list of notification events
-
deleteBeforeDate
Description copied from interface:INotificationEventDAOpurge the events after N days- Specified by:
deleteBeforeDatein interfaceINotificationEventDAO- Returns:
-
deleteByCustomerId
Description copied from interface:INotificationEventDAODelete by customer id- Specified by:
deleteByCustomerIdin interfaceINotificationEventDAO
-