Class NotificationContentDAO

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nNotificationContentId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(NotificationContent notificationContent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      NotificationContent load​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<NotificationContent> selectNotificationContentsByIdAndTypeNotification​(int nIdNotification, java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> listNotificationType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data by id notification and notification type
      java.util.List<NotificationContent> selectNotificationContentsByIdNotification​(int nIdNotification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data by id notification and returns them as a List
      java.util.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
      void store​(NotificationContent notificationContent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      void updateStatusId​(int nNewStatusId, int nTemporaryStatusId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update nofications status
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NotificationContentDAO

        public NotificationContentDAO()
    • Method Detail

      • 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 java.util.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 java.util.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 java.util.List<NotificationContent> selectNotificationContentsByIdAndTypeNotification​(int nIdNotification,
                                                                                                     java.util.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
      • updateStatusId

        public void updateStatusId​(int nNewStatusId,
                                   int nTemporaryStatusId,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: INotificationContentDAO
        Update nofications status
        Specified by:
        updateStatusId in interface INotificationContentDAO
        Parameters:
        nNewStatusId - the new status id
        nTemporaryStatusId - This nTemporaryStatusId is allows to filter on the notifications to be updated