Class OrchestratorAssetCharacteristicValueService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.orchestrator.assets.rs1.asset.characteristicvalue.OrchestratorAssetCharacteristicValueService
@RestController
@RequestMapping("assets/r1/assets/{assetId:[0-9]+}/characteristics")
@Resource(logging=true)
public class OrchestratorAssetCharacteristicValueService
extends PrivateService
Service for manage asset's characteristics
- Since:
- 16.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> batchPatch(Long assetId, @Size(min=1,max=400) @Valid List<DTOAssetCharacteristicValueBatchUpdate> dtos) Update the required set of asset characteristic values by calling theAssetCharacteristicValueUpdateBatchEvent.org.springframework.http.ResponseEntity<List<DTOIdentifier<Long>>> Creates a set of new asset characteristic values by calling theAssetCharacteristicValueInsertBatchEventorg.springframework.http.ResponseEntity<Void> patch(Long assetId, Long characteristicId, @Valid DTOAssetCharacteristicValueUpdate dto) org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(Long assetId, @Valid DTOAssetCharacteristicValueInsert dto)
-
Constructor Details
-
OrchestratorAssetCharacteristicValueService
public OrchestratorAssetCharacteristicValueService()
-
-
Method Details
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(@PathVariable("assetId") Long assetId, @Valid @RequestBody @Valid DTOAssetCharacteristicValueInsert dto) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
patch
@PatchMapping(value="{assetCharacteristicId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("assetId") Long assetId, @PathVariable("assetCharacteristicId") Long characteristicId, @Valid @RequestBody @Valid DTOAssetCharacteristicValueUpdate dto) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
batchPost
@PostMapping(value="/batch", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<List<DTOIdentifier<Long>>> batchPost(@PathVariable("assetId") Long assetId, @Size(min=1,max=400) @Valid @RequestBody @Size(min=1,max=400) @Valid List<DTOAssetCharacteristicValueInsert> dtos) throws DAValidateException, DAException Creates a set of new asset characteristic values by calling theAssetCharacteristicValueInsertBatchEvent- Parameters:
assetId- the asset iddtos- list ofDTOAssetCharacteristicValueInsert- Returns:
- the response containing the IDs of the newly created work shift exceptions
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
batchPatch
@PatchMapping(value="/batch", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> batchPatch(@PathVariable("assetId") Long assetId, @Size(min=1,max=400) @RequestBody @Valid @Size(min=1,max=400) @Valid List<DTOAssetCharacteristicValueBatchUpdate> dtos) throws DAValidateException, DAException Update the required set of asset characteristic values by calling theAssetCharacteristicValueUpdateBatchEvent.- Parameters:
assetId- the asset iddtos- list ofDTOAssetCharacteristicValueBatchUpdate- Returns:
- the empty response entity
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-