Class ResourcePositionService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.gpstracking.rs1.resource.position.ResourcePositionService
@RestController
@RequestMapping("tracking/gps-tracking/r1/resource-positions")
@Resource(logging=true)
public class ResourcePositionService
extends PrivateService
Service to manage resource GPS position.
- Since:
- 22.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOResourcePosition> get(Long resourcePositionId, Collection<String> fields) Retrieves the requiredDTOResourcePositionby calling theResourceGPSPositionLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOResourcePosition>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOResourcePositionFilter filter) Returns the collection of all the stored resource GPS positions by calling theResourceGPSPositionSearchEvent.
-
Constructor Details
-
ResourcePositionService
public ResourcePositionService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOResourcePosition>> 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 DTOResourcePositionFilter filter) throws DAValidateException, DAException Returns the collection of all the stored resource GPS positions by calling theResourceGPSPositionSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOResourcePositionFilter- Returns:
- the collection of
DTOResourcePosition - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{resourcePositionId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOResourcePosition> get(@PathVariable("resourcePositionId") Long resourcePositionId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOResourcePositionby calling theResourceGPSPositionLoadEvent.- Parameters:
resourcePositionId- the resource GPS position idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded resource GPS position
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-