Class NotificationService


  • public class NotificationService
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void forward​(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification)
      call the registred notifyers
      static NotificationService instance()
      get unique instance of the service
      javax.ws.rs.core.Response newNotification​(java.lang.String strJson)
      process Notification
      javax.ws.rs.core.Response newNotificationEvent​(java.lang.String strJson)
      store a notification event
      javax.ws.rs.core.Response reassignNotifications​(java.lang.String strJson)
      Link a notification to another
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.NotificationException
        call the registred notifyers
        Parameters:
        notification -
        Throws:
        fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException