Class ValidationStatusService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.execution.rs1.outcomevalidationstatus.ValidationStatusService
@RestController
@RequestMapping("work-orders/execution/r1/interventions/outcomes/validation-status")
@Resource(logging=true)
public class ValidationStatusService
extends PrivateService
Services to manage validation status.
- Since:
- 18.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOValidationStatus> get(Long validationStatusId, Collection<String> fields) Retrieves the required validation status by calling from theValidationStatusLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOValidationStatus>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOValidationStatusFilter filter) Returns the collection of all the stored validation status by calling theValidationStatusSearchEvent.
-
Constructor Details
-
ValidationStatusService
public ValidationStatusService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOValidationStatus>> getCollection(@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 DTOValidationStatusFilter filter) throws DAValidateException, DAException Returns the collection of all the stored validation status by calling theValidationStatusSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields that will be contained in the responseorder- the ordering fieldfilter- the DTOValidationStatusFilter- Returns:
- the collection of validation status
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{validationStatusId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOValidationStatus> get(@PathVariable("validationStatusId") Long validationStatusId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the required validation status by calling from theValidationStatusLoadEvent.- Parameters:
validationStatusId- the validation status idfields- the collection of fields that will be contained in the response- Returns:
- the response containing the loaded validation status
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-