Class NotificationContentHome


  • public final class NotificationContentHome
    extends Object
    This class provides instances management methods (create, find, ...) for NotificationContent objects
    • Method Detail

      • create

        public static NotificationContent create​(NotificationContent notificationContent)
        Create an instance of the notificationContent class
        Parameters:
        notificationContent - The instance of the NotificationContent which contains the informations to store
        plugin - the Plugin
        Returns:
        The instance of notificationContent which has been created with its primary key.
      • create

        public static List<NotificationContent> create​(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification)
        Create an instance of the notificationContent class
        Parameters:
        notificationContent - The instance of the NotificationContent which contains the informations to store
        plugin - the Plugin
        Returns:
        The instance of notificationContent which has been created with its primary key.
      • update

        public static NotificationContent update​(NotificationContent notificationContent)
        Update of the notificationContent which is specified in parameter
        Parameters:
        notificationContent - The instance of the NotificationContent which contains the data to store
        plugin - the Plugin
        Returns:
        The instance of the notificationContent which has been updated
      • updateStatusId

        public static void updateStatusId​(int nNewStatusId,
                                          int nTemporaryStatusId)
        Update the record in the table
        Parameters:
        nNewStatusId - the new status id
        nTemporaryStatusId - This nTemporaryStatusId is allows to filter on the notifications to be updated
      • remove

        public static void remove​(int nNotificationContentId)
        Remove the notificationContent whose identifier is specified in parameter
        Parameters:
        nNotificationContentId - The notificationContent Id
        plugin - the Plugin
      • findByPrimaryKey

        public static NotificationContent findByPrimaryKey​(int nKey)
        Returns an instance of a notificationContent whose identifier is specified in parameter
        Parameters:
        nKey - The notificationContent primary key
        plugin - the Plugin
        Returns:
        an instance of NotificationContent
      • getNotificationContentsList

        public static List<NotificationContent> getNotificationContentsList()
        Load the data of all the notificationContent objects and returns them in form of a list
        Returns:
        the list which contains the data of all the notificationContent objects
      • getNotificationContentsByIdNotification

        public static List<NotificationContent> getNotificationContentsByIdNotification​(int nIdNotification)
        Load the data by id notification and returns them in form of a list
        Parameters:
        nIdNotification - the id notification
        Returns:
        the list which contains the data by id notification
      • getNotificationContentsByIdAndTypeNotification

        public static List<NotificationContent> getNotificationContentsByIdAndTypeNotification​(int nIdNotification,
                                                                                               List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> listNotificationType)
        Load the data by id notification and notification type
        Parameters:
        nIdNotification - the id notification
        Returns:
        the list which contains the data by id notification