Class NotificationService
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.service.NotificationService
-
public class NotificationService extends 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(String strJson)process Notificationjavax.ws.rs.core.ResponsenewNotificationEvent(String strJson)store a notification event
-
-
-
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(String strJson)
process Notification- Parameters:
notification-
-
newNotificationEvent
public javax.ws.rs.core.Response newNotificationEvent(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
-
-