Class NotificationService
java.lang.Object
fr.paris.lutece.plugins.notificationstore.service.NotificationService
-
Method Summary
Modifier and TypeMethodDescriptionvoidforward(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) call the registred notifyersfr.paris.lutece.plugins.grubusiness.business.notification.NotificationgetNotification(String idDemand, String idDemandType, String customerId, String notificationType, long notificationDate) Get a single notification from parametersstatic NotificationServiceinstance()get unique instance of the servicejavax.ws.rs.core.ResponsenewNotification(String strJson) process Notificationjavax.ws.rs.core.ResponsenewNotificationEvent(String strJson) store a notification eventjavax.ws.rs.core.ResponsereassignNotifications(String strJson) Link a notification to another
-
Method Details
-
instance
get unique instance of the service- Returns:
- the notification service
-
newNotification
process Notification- Parameters:
notification-
-
getNotification
public fr.paris.lutece.plugins.grubusiness.business.notification.Notification getNotification(String idDemand, String idDemandType, String customerId, String notificationType, long notificationDate) Get a single notification from parameters- Parameters:
idDemand- identifier of the demand related to the NotificationidDemandType- identfier of the demand typecustomerId- identifier of the customer (CUID) related to the notificationnotificationType- Type of the notificationnotificationDate- Date of the notification- Returns:
- Notification corresponding to the parameters, or else null.
-
reassignNotifications
Link a notification to another- Parameters:
strJson-- Returns:
- the response
-
newNotificationEvent
store a notification event- Parameters:
strJson-- Returns:
- the response
-
forward
public void forward(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException call the registred notifyers- Parameters:
notification-- Throws:
fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
-