Class NotificationRestService
java.lang.Object
fr.paris.lutece.plugins.notificationstore.web.rs.NotificationRestService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsegetListNotification(String strDemandIds, String strDemandTypeIds, String strCustomerId, String strNotificationType) Gets list of notificationjavax.ws.rs.core.ResponsegetNotification(String strIdDemand, String strIdDemandType, String strCustomerId, String strNotificationType, long lDate) Gets notification by parametersjavax.ws.rs.core.ResponseGets list of notification typesjavax.ws.rs.core.Responsenotification(String strJson) process the notificationjavax.ws.rs.core.ResponsenotificationEvent(String strJson) store the notification eventjavax.ws.rs.core.ResponsereassignDemandsAndNotifications(String strJson)
-
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)
-