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 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:
      loadByDemand in interface fr.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:
      loadByFilter in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
    • loadIdsByFilter

      public List<Integer> loadIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)
      Specified by:
      loadIdsByFilter in interface fr.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:
      insert in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
    • reassignNotifications

      public void reassignNotifications(String strOldCustomerId, String strNewCustomerId)
      Specified by:
      reassignNotifications in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
    • delete

      public void delete(int id)
      Specified by:
      delete in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
    • deleteByDemand

      public void deleteByDemand(String strDemandId, String strDemandTypeId, String strCustomerId)
      Specified by:
      deleteByDemand in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
    • loadById

      public Optional<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadById(int id)
      Specified by:
      loadById in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
    • loadByIds

      public List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByIds(List<Integer> listIds)
      Specified by:
      loadByIds in interface fr.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:
      loadByDemandAndDate in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
    • loadDistinctDemandTypeIds

      public List<String> loadDistinctDemandTypeIds()
      Specified by:
      loadDistinctDemandTypeIds in interface fr.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:
      loadByDemandIdTypeIdCustomerId in interface fr.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 id
      filter - 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:
      loadLastNotifByDemandIdAndDemandTypeId in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
    • existsNotificationWithDemandTypeId

      public boolean existsNotificationWithDemandTypeId(String strDemandTypeId)
      Specified by:
      existsNotificationWithDemandTypeId in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO