Class DemandRestService
java.lang.Object
fr.paris.lutece.plugins.notificationstore.web.rs.DemandRestService
Service Rest DemandNotificationRestService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsedoDeleteAllDemands(String strCustomerId) javax.ws.rs.core.ResponsegetListDemand(String strIdDemandType, String strIndex, String strLimitResult, String strCustomerId, String strNotificationType, String strDirectionDateOrderBy) Return list of demandjavax.ws.rs.core.ResponsegetListOfDemandByStatus(String strlistIdsDemandType, String strIndex, String strLimitResult, String strCustomerId, String strListStatus, String strNotificationType, String strCategoryCode) Get list by status
-
Constructor Details
-
DemandRestService
public DemandRestService()
-
-
Method Details
-
getListDemand
@GET @Path("/list") @Produces("application/json") public javax.ws.rs.core.Response getListDemand(@QueryParam("idDemandType") String strIdDemandType, @QueryParam("index") String strIndex, @QueryParam("limitResult") String strLimitResult, @QueryParam("customerId") String strCustomerId, @QueryParam("notificationType") String strNotificationType, @QueryParam("directionDateOrderBy") @DefaultValue("") String strDirectionDateOrderBy) Return list of demand- Parameters:
strDemandType-strPage-
-
getListOfDemandByStatus
@GET @Path("/status") @Produces("application/json") public javax.ws.rs.core.Response getListOfDemandByStatus(@QueryParam("listIdsDemandType") String strlistIdsDemandType, @QueryParam("index") String strIndex, @QueryParam("limitResult") String strLimitResult, @QueryParam("customerId") String strCustomerId, @QueryParam("listStatus") String strListStatus, @QueryParam("notificationType") String strNotificationType, @QueryParam("categoryCode") String strCategoryCode) Get list by status- Parameters:
strlistIdsDemandType-strIndex-strCustomerId-- Returns:
- list of active demand
-
doDeleteAllDemands
@DELETE @Path("/{customerId}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response doDeleteAllDemands(@PathParam("customerId") String strCustomerId)
-