Class MeasureStatusService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.measuringelements.rs1.measurestatus.MeasureStatusService
@RestController
@RequestMapping("assets/measuring-elements/r1/measure-status")
@Resource(logging=true)
public class MeasureStatusService
extends PrivateService
Service for manage measure status.
- Since:
- 20.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOMeasureStatus> get(Long measureStatusId, String language, Collection<String> fields) Returns the required measure status by calling theMeasureStatusLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOMeasureStatus>> getCollection(@Valid Page page, Collection<String> fields, String order, String language, @Valid @NotNull DTOMeasureStatusFilter filter) Returns the collection of all the stored measure status by calling theMeasureStatusSearchEvent.
-
Constructor Details
-
MeasureStatusService
public MeasureStatusService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOMeasureStatus>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @RequestParam(required=false,name="_language",defaultValue="user") String language, @Valid @NotNull @Valid @NotNull DTOMeasureStatusFilter filter) throws DAValidateException, DAException Returns the collection of all the stored measure status by calling theMeasureStatusSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldlanguage- the language code for localized contentfilter- theDTOMeasureStatusFilter- Returns:
- the collection of
DTOMeasureStatus - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{measureStatusId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOMeasureStatus> get(@PathVariable("measureStatusId") Long measureStatusId, @RequestParam(required=false,name="_language",defaultValue="user") String language, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Returns the required measure status by calling theMeasureStatusLoadEvent.- Parameters:
measureStatusId- the measure status idlanguage- the language code for localized contentfields- the collection of fields the response will contain- Returns:
- the response containing the loaded measure status
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-