Interface INotificationContentDAO

  • All Known Implementing Classes:
    NotificationContentDAO

    public interface INotificationContentDAO
    INotificationContentDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nIdNotificationContent, 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 nKey, 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
    • Method Detail

      • insert

        void insert​(NotificationContent notificationContent,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        notificationContent - instance of the NotificationContent object to inssert
        plugin - the Plugin
      • store

        void store​(NotificationContent notificationContent,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        notificationContent - the reference of the NotificationContent
        plugin - the Plugin
      • updateStatusId

        void updateStatusId​(int nNewStatusId,
                            int nTemporaryStatusId,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update nofications status
        Parameters:
        nNewStatusId - the new status id
        nTemporaryStatusId - This nTemporaryStatusId is allows to filter on the notifications to be updated
      • delete

        void delete​(int nIdNotificationContent,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nIdNotificationContent - int identifier of the NotificationContent to delete
        plugin - the Plugin
      • load

        NotificationContent load​(int nKey,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        strId - The identifier of the notificationContent
        plugin - the Plugin
        Returns:
        The instance of the notificationContent
      • selectNotificationContentsList

        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
        Parameters:
        plugin - the Plugin
        Returns:
        The List which contains the data of all the notificationContent objects
      • selectNotificationContentsByIdNotification

        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
        Parameters:
        nIdNotification - the id notification
        Returns:
        The List which contains the data of all the notificationContent objects
      • selectNotificationContentsByIdAndTypeNotification

        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
        Parameters:
        nIdNotification - the id notification
        listNotificationType - the list of notification types
        Returns:
        The List which contains the data of all the notificationContent objects