Class NotificationEventHome
java.lang.Object
fr.paris.lutece.plugins.notificationstore.business.NotificationEventHome
This class provides instances management methods (create, find, ...) for Notification Event object
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 NotificationEventsfindIdsByFilter(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>Finds a NotificationEvent with the specified idstatic Stringpurge(int nbDaysBeforePurge) Purge the NotificationEvents after N days
-
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
Purge the NotificationEvents after N days- Parameters:
the- nb of days- Returns:
- a success message
-
deleteByCustomerId
Delete by customer id- Parameters:
strCustomerId-
-