Class NotificationDAO
java.lang.Object
fr.paris.lutece.plugins.notificationstore.business.NotificationDAO
- All Implemented Interfaces:
fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
public final class NotificationDAO
extends Object
implements fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
This class provides Data Access methods for Notification objects stored in SQL database
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int id) voiddeleteByDemand(String strDemandId, String strDemandTypeId, String strCustomerId) booleanexistsNotificationWithDemandTypeId(int nDemandTypeId) fr.paris.lutece.plugins.grubusiness.business.notification.Notificationinsert(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadByDemand(String strDemandId, String strDemandTypeId, String strCustomerId) List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadByDemandAndDate(String strDemandId, String strDemandTypeId, long lDate) List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadByDemandIdTypeIdCustomerId(String strDemandId, String strDemandTypeId, String strCustomerId, fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter) List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadByDemandListAndCustomerId(List<Map<String, String>> listDemandPairs, String strCustomerId, fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter) Load notifications for a list of (demandId, demandTypeId) pairs and a customer idList<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter) Optional<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadById(int id) List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter) fr.paris.lutece.plugins.grubusiness.business.notification.NotificationloadLastNotifByDemandIdAndDemandTypeId(String strDemandId, String strDemandTypeId) voidreassignNotifications(String strOldCustomerId, String strNewCustomerId)
-
Constructor Details
-
NotificationDAO
public NotificationDAO()Constructor
-
-
Method Details
-
loadByDemand
public List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemand(String strDemandId, String strDemandTypeId, String strCustomerId) - Specified by:
loadByDemandin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadByFilter
public List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter) - Specified by:
loadByFilterin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadIdsByFilter
public List<Integer> loadIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter) - Specified by:
loadIdsByFilterin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
insert
public fr.paris.lutece.plugins.grubusiness.business.notification.Notification insert(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) - Specified by:
insertin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
reassignNotifications
- Specified by:
reassignNotificationsin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
delete
public void delete(int id) - Specified by:
deletein interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
deleteByDemand
- Specified by:
deleteByDemandin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadById
public Optional<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadById(int id) - Specified by:
loadByIdin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadByIds
public List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByIds(List<Integer> listIds) - Specified by:
loadByIdsin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadByDemandAndDate
public List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemandAndDate(String strDemandId, String strDemandTypeId, long lDate) - Specified by:
loadByDemandAndDatein interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadDistinctDemandTypeIds
- Specified by:
loadDistinctDemandTypeIdsin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadByDemandIdTypeIdCustomerId
public List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemandIdTypeIdCustomerId(String strDemandId, String strDemandTypeId, String strCustomerId, fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter) - Specified by:
loadByDemandIdTypeIdCustomerIdin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadByDemandListAndCustomerId
public List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemandListAndCustomerId(List<Map<String, String>> listDemandPairs, String strCustomerId, fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter) Load notifications for a list of (demandId, demandTypeId) pairs and a customer id- Parameters:
listDemandPairs- list of maps with keys "demandId" and "demandTypeId"strCustomerId- the customer idfilter- the notification filter- Returns:
- the list of notifications
-
loadLastNotifByDemandIdAndDemandTypeId
public fr.paris.lutece.plugins.grubusiness.business.notification.Notification loadLastNotifByDemandIdAndDemandTypeId(String strDemandId, String strDemandTypeId) - Specified by:
loadLastNotifByDemandIdAndDemandTypeIdin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
existsNotificationWithDemandTypeId
public boolean existsNotificationWithDemandTypeId(int nDemandTypeId) - Specified by:
existsNotificationWithDemandTypeIdin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-