Class NotificationEventHome


  • public final class NotificationEventHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for Notification Event object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void deleteByCustomerId​(java.lang.String strCustomerId)
      Delete by customer id
      static java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent> findByDemand​(java.lang.String strDemandId, java.lang.String strDemandTypeId)
      Find the demand's NotificationEvents
      static java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent> findByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)
      Find the NotificationEvents according to the filter
      static java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent> findByNotification​(java.lang.String strDemandId, java.lang.String strDemandTypeId, long lNotificationDate)
      Find the demand's NotificationEvents
      static java.util.List<java.lang.Integer> findIdsByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)
      Find the NotificationEvents according to the filter
      static java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent> getById​(int nId)
      Finds a NotificationEvent with the specified id
      static java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent> getByIds​(java.util.List<java.lang.Integer> listIds)
      Finds a NotificationEvent with the specified id
      static java.lang.String purge​(int nbDaysBeforePurge)
      Purge the NotificationEvents after N days
      • Methods inherited from class java.lang.Object

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

      • findByDemand

        public static java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent> findByDemand​(java.lang.String strDemandId,
                                                                                                                               java.lang.String strDemandTypeId)
        Find the demand's NotificationEvents
        Parameters:
        strDemandId -
        strDemandTypeId -
        Returns:
        the NotificationEvent list
      • findByNotification

        public static java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent> findByNotification​(java.lang.String strDemandId,
                                                                                                                                     java.lang.String strDemandTypeId,
                                                                                                                                     long lNotificationDate)
        Find the demand's NotificationEvents
        Parameters:
        strDemandId -
        strDemandTypeId -
        Returns:
        the NotificationEvent list
      • getById

        public static java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent> getById​(int nId)
        Finds a NotificationEvent with the specified id
        Parameters:
        strId -
        Returns:
        the NotificationEvent
      • getByIds

        public static java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent> getByIds​(java.util.List<java.lang.Integer> listIds)
        Finds a NotificationEvent with the specified id
        Parameters:
        strId -
        Returns:
        the NotificationEvent
      • findByFilter

        public static java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent> findByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)
        Find the NotificationEvents according to the filter
        Parameters:
        notificationFilter -
        Returns:
        the NotificationEvent list
      • findIdsByFilter

        public static java.util.List<java.lang.Integer> findIdsByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)
        Find the NotificationEvents according to the filter
        Parameters:
        notificationFilter -
        Returns:
        the NotificationEvent list
      • purge

        public static java.lang.String purge​(int nbDaysBeforePurge)
        Purge the NotificationEvents after N days
        Parameters:
        the - nb of days
        Returns:
        a success message
      • deleteByCustomerId

        public static void deleteByCustomerId​(java.lang.String strCustomerId)
        Delete by customer id
        Parameters:
        strCustomerId -