Class IncidentRestService


  • @Produces("application/json")
    public class IncidentRestService
    extends AbstractPluginResource
    Author:
    roman.smirnov
    • Constructor Detail

      • IncidentRestService

        public IncidentRestService​(java.lang.String engineName)
    • Method Detail

      • getIncidents

        @GET
        @Produces("application/json")
        public java.util.List<IncidentDto> getIncidents​(@Context
                                                        javax.ws.rs.core.UriInfo uriInfo,
                                                        @QueryParam("firstResult")
                                                        java.lang.Integer firstResult,
                                                        @QueryParam("maxResults")
                                                        java.lang.Integer maxResults)
      • queryIncidents

        @POST
        @Produces("application/json")
        @Consumes("application/json")
        public java.util.List<IncidentDto> queryIncidents​(IncidentQueryDto queryParameter,
                                                          @QueryParam("firstResult")
                                                          java.lang.Integer firstResult,
                                                          @QueryParam("maxResults")
                                                          java.lang.Integer maxResults)
      • getIncidentsCount

        @GET
        @Path("/count")
        @Produces("application/json")
        public CountResultDto getIncidentsCount​(@Context
                                                javax.ws.rs.core.UriInfo uriInfo)
      • queryIncidentsCount

        @POST
        @Path("/count")
        @Consumes("application/json")
        @Produces("application/json")
        public CountResultDto queryIncidentsCount​(IncidentQueryDto queryParameter)
      • configureExecutionQuery

        protected void configureExecutionQuery​(IncidentQueryDto query)