Class MeasuringElementStatusService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.measuringelements.rs1.status.MeasuringElementStatusService
@RestController
@RequestMapping("assets/measuring-elements/r1/status")
@Resource(logging=true)
public class MeasuringElementStatusService
extends PrivateService
Service to manage measuring elements status.
- Since:
- 20.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOMeasuringElementStatus> get(Long measuringElementStatusId, Collection<String> fields) Retrieves the requiredDTOMeasuringElementStatusby calling theMeasuringElementStatusLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOMeasuringElementStatus>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid DTOMeasuringElementStatusFilter filter) Returns the collection of all the stored measuring elements status by calling theMeasuringElementStatusSearchEvent.
-
Constructor Details
-
MeasuringElementStatusService
public MeasuringElementStatusService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOMeasuringElementStatus>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @Valid DTOMeasuringElementStatusFilter filter) throws DAValidateException, DAException Returns the collection of all the stored measuring elements status by calling theMeasuringElementStatusSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOMeasuringElementStatusFilter- Returns:
- the collection of
DTOMeasuringElementStatus - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{measuringElementStatusId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOMeasuringElementStatus> get(@PathVariable("measuringElementStatusId") Long measuringElementStatusId, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOMeasuringElementStatusby calling theMeasuringElementStatusLoadEvent.- Parameters:
measuringElementStatusId- the measuring element status idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded measuring element status
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-