Class ResourceLatestPositionBatchService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.gpstracking.rs1.resource.position.latest.ResourceLatestPositionBatchService
@RestController
@RequestMapping("tracking/gps-tracking/r1/resource-positions/latest/batch")
@Resource(logging=true)
public class ResourceLatestPositionBatchService
extends PrivateService
Service to manage batch operations for resource latest positions.
- Since:
- 22.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Performs batch upsert of resource latest positions by calling theResourceLastGPSPositionBatchUpsertEvent.
-
Constructor Details
-
ResourceLatestPositionBatchService
public ResourceLatestPositionBatchService()
-
-
Method Details
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> post(@Size(min=1,max=1000) @Valid @RequestBody @Size(min=1,max=1000) @Valid List<DTOResourceLatestPositionBatchUpsert> batchInput) throws DAValidateException, DAException Performs batch upsert of resource latest positions by calling theResourceLastGPSPositionBatchUpsertEvent.- Parameters:
batchInput- a list ofDTOResourceLatestPositionBatchUpsert- Returns:
- the response indicating success
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-