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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddeleteByCustomerId(String strCustomerId)Delete by customer idstatic List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent>findByDemand(String strDemandId, String strDemandTypeId)Find the demand's NotificationEventsstatic 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 filterstatic List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent>findByNotification(String strDemandId, String strDemandTypeId, long lNotificationDate)Find the demand's NotificationEventsstatic List<Integer>findIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)Find the NotificationEvents according to the filterstatic Optional<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent>getById(int nId)Finds a NotificationEvent with the specified idstatic List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent>getByIds(List<Integer> listIds)Finds a NotificationEvent with the specified idstatic Stringpurge(int nbDaysBeforePurge)Purge the NotificationEvents after N days
-
-
-
Method Detail
-
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-
-
-