Class MeterReadingStateService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.rs5.technicalobject.meter.reading.state.MeterReadingStateService
@RestController
@RequestMapping("core/r5/customers/meters/readings/states")
@Resource(logging=true)
public class MeterReadingStateService
extends PrivateService
Services to manage meter reading states.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOMeterReadingState> Retrieves the required meter reading state.org.springframework.http.ResponseEntity<PageResponse<DTOMeterReadingState>> getCollection(@NotNull @Valid Page page, @Valid @NotNull DTOMeterReadingStateSearchFilter filter) Retrieve the all stored meter reading states.
-
Constructor Details
-
MeterReadingStateService
public MeterReadingStateService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOMeterReadingState>> getCollection(@RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOMeterReadingStateSearchFilter filter) throws DAValidateException, DAException Retrieve the all stored meter reading states.MeterReadingStateSearchEvent- Parameters:
page- the required result pagefilter- the specifiedDTOMeterReadingStateSearchFilter- Returns:
- the response containing the current result page
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOMeterReadingState> get(@PathVariable("id") Long id) throws DAValidateException, DAException Retrieves the required meter reading state.MeterReadingStateLoadEvent- Parameters:
id- meter reading state id- Returns:
- the response containing the required meter reading state
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-