Class OrchestratorInterventionMeasureService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.orchestrator.workorders.rs1.interventionmeasure.OrchestratorInterventionMeasureService
@RestController
@RequestMapping("work-orders/execution/r1/interventions/{interventionId:[0-9]+}/measures")
@Resource(logging=true)
public class OrchestratorInterventionMeasureService
extends PrivateService
Service to manage measures associated to interventions.
- Since:
- 20.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> createLinkMeasureIntervention(Long interventionId, @Valid DTOInterventionMeasureLink interventionMeasureLink) Associates a measure to an intervention by calling theInterventionMeasureLinkEvent.org.springframework.http.ResponseEntity<DTOInterventionMeasure> get(Long interventionId, Long measureId, Collection<String> fields) Retrieves a specific measure for an intervention by calling theMeasureLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOInterventionMeasure>> getCollection(Long interventionId, @Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOInterventionMeasureFilter filter) Retrieves a paginated collection of measures for a specific intervention by calling theMeasureSearchEvent.
-
Constructor Details
-
OrchestratorInterventionMeasureService
public OrchestratorInterventionMeasureService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOInterventionMeasure>> getCollection(@PathVariable("interventionId") Long interventionId, @RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @NotNull @Valid @NotNull DTOInterventionMeasureFilter filter) throws DAValidateException, DAException Retrieves a paginated collection of measures for a specific intervention by calling theMeasureSearchEvent.- Parameters:
interventionId- the intervention idpage- pagination parametersfields- optional collection of fields to include in the responseorder- optional ordering specificationfilter- required filter criteria for the measures- Returns:
- a
ResponseEntitycontaining a paginated list of measures - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{measureId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOInterventionMeasure> get(@PathVariable("interventionId") Long interventionId, @PathVariable("measureId") Long measureId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves a specific measure for an intervention by calling theMeasureLoadEvent.- Parameters:
interventionId- the intervention idmeasureId- the measure idfields- optional collection of fields to include in the response- Returns:
- a
ResponseEntitycontaining the requested measure - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
createLinkMeasureIntervention
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> createLinkMeasureIntervention(@PathVariable("interventionId") Long interventionId, @Valid @RequestBody @Valid DTOInterventionMeasureLink interventionMeasureLink) throws DAValidateException, DAException Associates a measure to an intervention by calling theInterventionMeasureLinkEvent.- Parameters:
interventionId- the intervention id- Returns:
- the default no content
ResponseEntity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-