Class NotificationContentDAO

java.lang.Object
fr.paris.lutece.plugins.notificationstore.business.NotificationContentDAO
All Implemented Interfaces:
INotificationContentDAO

public final class NotificationContentDAO extends Object implements INotificationContentDAO
This class provides Data Access methods for NotificationContent objects
  • Constructor Details

    • NotificationContentDAO

      public NotificationContentDAO()
  • Method Details

    • insert

      public void insert(NotificationContent notificationContent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface INotificationContentDAO
      Parameters:
      notificationContent - instance of the NotificationContent object to inssert
      plugin - the Plugin
    • load

      public NotificationContent load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface INotificationContentDAO
      plugin - the Plugin
      Returns:
      The instance of the notificationContent
    • delete

      public void delete(int nNotificationContentId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface INotificationContentDAO
      Parameters:
      nNotificationContentId - int identifier of the NotificationContent to delete
      plugin - the Plugin
    • store

      public void store(NotificationContent notificationContent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface INotificationContentDAO
      Parameters:
      notificationContent - the reference of the NotificationContent
      plugin - the Plugin
    • selectNotificationContentsList

      public List<NotificationContent> selectNotificationContentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the notificationContent objects and returns them as a List
      Specified by:
      selectNotificationContentsList in interface INotificationContentDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The List which contains the data of all the notificationContent objects
    • selectNotificationContentsByIdNotification

      public List<NotificationContent> selectNotificationContentsByIdNotification(int nIdNotification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: INotificationContentDAO
      Load the data by id notification and returns them as a List
      Specified by:
      selectNotificationContentsByIdNotification in interface INotificationContentDAO
      Parameters:
      nIdNotification - the id notification
      Returns:
      The List which contains the data of all the notificationContent objects
    • selectNotificationContentsByIdAndTypeNotification

      public List<NotificationContent> selectNotificationContentsByIdAndTypeNotification(int nIdNotification, List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> listNotificationType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: INotificationContentDAO
      Load the data by id notification and notification type
      Specified by:
      selectNotificationContentsByIdAndTypeNotification in interface INotificationContentDAO
      Parameters:
      nIdNotification - the id notification
      listNotificationType - the list of notification types
      Returns:
      The List which contains the data of all the notificationContent objects