Class NotificationContentDAO

    • 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 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
      • 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
      • 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