Class CounterDirectionService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.measuringelements.rs1.counterdirection.CounterDirectionService
@RestController
@RequestMapping("assets/measuring-elements/r1/counter-directions")
@Resource(logging=true)
public class CounterDirectionService
extends PrivateService
Service for manage counter direction
- Since:
- 20.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOCounterDirection> get(Long counterDirectionId, Collection<String> fields) Retrieves the requiredDTOCounterDirectionby calling theCounterDirectionLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOCounterDirection>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOCounterDirectionFilter filter) Retrieve the all stored counter direction.
-
Constructor Details
-
CounterDirectionService
public CounterDirectionService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOCounterDirection>> 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 DTOCounterDirectionFilter filter) throws DAValidateException, DAException Retrieve the all stored counter direction.CounterDirectionSearchEvent- Parameters:
page- the required result pagefields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOCounterDirectionFilter- Returns:
- the response containing the current result page
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{counterDirectionId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOCounterDirection> get(@PathVariable("counterDirectionId") Long counterDirectionId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOCounterDirectionby calling theCounterDirectionLoadEvent.- Parameters:
counterDirectionId- the counter direction idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded counter direction
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-