Class NotificationRestService

java.lang.Object
fr.paris.lutece.plugins.notificationstore.web.rs.NotificationRestService

@Path("/rest/notificationstore/v3") public class NotificationRestService extends Object
  • Constructor Details

    • NotificationRestService

      public NotificationRestService()
  • Method Details

    • getNotification

      @GET @Path("/notification") @Produces("application/json") public javax.ws.rs.core.Response getNotification(@QueryParam("idDemand") String strIdDemand, @QueryParam("idDemandType") String strIdDemandType, @QueryParam("customerId") String strCustomerId, @QueryParam("notificationType") String strNotificationType, @QueryParam("notificationDate") long lDate)
      Gets notification by parameters
      Parameters:
      strIdDemand -
    • notification

      @POST @Path("/notification") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response notification(String strJson)
      process the notification
      Parameters:
      strJson - The JSON flow
      Returns:
      The response
    • notificationEvent

      @POST @Path("/notificationEvent") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response notificationEvent(String strJson)
      store the notification event
      Parameters:
      strJson - The JSON flow
      Returns:
      The response
    • getListNotification

      @GET @Path("/notification/list") @Produces("application/json") public javax.ws.rs.core.Response getListNotification(@QueryParam("idDemand") String strIdDemand, @QueryParam("idDemandType") String strIdDemandType, @QueryParam("customerId") String strCustomerId, @QueryParam("notificationType") String strNotificationType)
      Gets list of notification
      Parameters:
      strIdDemand -
    • getNotificationsByDemandList

      @POST @Path("/notification/list") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getNotificationsByDemandList(@QueryParam("customerId") String strCustomerId, @QueryParam("notificationType") String strNotificationType, List<Map<String,String>> listDemandPairs)
      Gets notifications for a list of demands (POST with JSON body)
      Parameters:
      strCustomerId - the customer id (query parameter)
      strNotificationType - optional notification type filter (query parameter)
      listDemandPairs - JSON body: list of objects with "demandId" and "demandTypeId" keys
      Returns:
      notifications matching the demands and customer
    • getNotificationTypes

      @GET @Path("/notificationnotificationType") @Produces("application/json") public javax.ws.rs.core.Response getNotificationTypes()
      Gets list of notification types
      Returns:
      list of notification types
    • reassignDemandsAndNotifications

      @PUT @Path("/notification/reassign") @Produces("application/json") public javax.ws.rs.core.Response reassignDemandsAndNotifications(String strJson)