Class NotificationEventHome

java.lang.Object
fr.paris.lutece.plugins.notificationstore.business.NotificationEventHome

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

    Modifier and Type
    Method
    Description
    static void
    deleteByCustomerId(String strCustomerId)
    Delete by customer id
    static List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent>
    findByDemand(String strDemandId, String strDemandTypeId)
    Find the demand's NotificationEvents
    static 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 List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent>
    findByNotification(String strDemandId, String strDemandTypeId, long lNotificationDate)
    Find the demand's NotificationEvents
    static List<Integer>
    findIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)
    Find the NotificationEvents according to the filter
    static Optional<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent>
    getById(int nId)
    Finds a NotificationEvent with the specified id
    static List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent>
    getByIds(List<Integer> listIds)
    Finds a NotificationEvent with the specified id
    static 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 Details

    • findByDemand

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

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

      public static 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 List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent> getByIds(List<Integer> listIds)
      Finds a NotificationEvent with the specified id
      Parameters:
      strId -
      Returns:
      the NotificationEvent
    • findByFilter

      public static 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 List<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 String purge(int nbDaysBeforePurge)
      Purge the NotificationEvents after N days
      Parameters:
      the - nb of days
      Returns:
      a success message
    • deleteByCustomerId

      public static void deleteByCustomerId(String strCustomerId)
      Delete by customer id
      Parameters:
      strCustomerId -