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 strDemandIds, @QueryParam("idDemandType") String strDemandTypeIds, @QueryParam("customerId") String strCustomerId, @QueryParam("notificationType") String strNotificationType)
      Gets list of notification
      Parameters:
      strIdDemand -
    • 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)