Class NotificationService
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.service.NotificationService
-
public class NotificationService extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforward(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification)call the registred notifyersstatic NotificationServiceinstance()get unique instance of the servicejavax.ws.rs.core.ResponsenewNotification(java.lang.String strJson)process Notificationjavax.ws.rs.core.ResponsenewNotificationEvent(java.lang.String strJson)store a notification eventjavax.ws.rs.core.ResponsereassignNotifications(java.lang.String strJson)Link a notification to another
-
-
-
Method Detail
-
instance
public static NotificationService instance()
get unique instance of the service- Returns:
- the notification service
-
newNotification
public javax.ws.rs.core.Response newNotification(java.lang.String strJson)
process Notification- Parameters:
notification-
-
reassignNotifications
public javax.ws.rs.core.Response reassignNotifications(java.lang.String strJson)
Link a notification to another- Parameters:
strJson-- Returns:
- the response
-
newNotificationEvent
public javax.ws.rs.core.Response newNotificationEvent(java.lang.String strJson)
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.NotificationExceptioncall the registred notifyers- Parameters:
notification-- Throws:
fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
-
-