Class NotificationEventHome
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.business.NotificationEventHome
-
public final class NotificationEventHome extends java.lang.ObjectThis 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(java.lang.String strCustomerId)Delete by customer idstatic java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent>findByDemand(java.lang.String strDemandId, java.lang.String strDemandTypeId)Find the demand's NotificationEventsstatic 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 filterstatic 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 NotificationEventsstatic java.util.List<java.lang.Integer>findIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)Find the NotificationEvents according to the filterstatic java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent>getById(int nId)Finds a NotificationEvent with the specified idstatic 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 idstatic java.lang.Stringpurge(int nbDaysBeforePurge)Purge the NotificationEvents after N days
-
-
-
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-
-
-