Class NotificationService

java.lang.Object
fr.paris.lutece.plugins.notificationstore.service.NotificationService

public class NotificationService extends Object
  • Method Details

    • 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 -
    • 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 Notification
      idDemandType - identfier of the demand type
      customerId - identifier of the customer (CUID) related to the notification
      notificationType - Type of the notification
      notificationDate - Date of the notification
      Returns:
      Notification corresponding to the parameters, or else null.
    • reassignNotifications

      public javax.ws.rs.core.Response reassignNotifications(String strJson)
      Link a notification to another
      Parameters:
      strJson -
      Returns:
      the response
    • 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.NotificationException
      call the registred notifyers
      Parameters:
      notification -
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException