Class AssetCharacteristicValueService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.assets.rs1.asset.characteristicvalue.AssetCharacteristicValueService
@RestController
@RequestMapping("assets/r1/assets/{assetId:[0-9]+}/characteristics")
@Resource(logging=true)
public class AssetCharacteristicValueService
extends PrivateService
Service for manage asset's characteristics
- Since:
- 16.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOAssetCharacteristicValue> get(Long assetId, Long characteristicId, Collection<String> fields) org.springframework.http.ResponseEntity<PageResponse<DTOAssetCharacteristicValue>> getCollection(Long assetId, @Valid Page page, Collection<String> fields, String order, @Valid DTOAssetCharacteristicValueFilter filter) org.springframework.http.ResponseEntity<Void> removeAssetCharacteristic(Long assetId, Long assetCharacteristicId) Remove a characteristic for a given asset by calling theAssetCharacteristicValueDeleteEvent.
-
Constructor Details
-
AssetCharacteristicValueService
public AssetCharacteristicValueService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOAssetCharacteristicValue>> getCollection(@PathVariable("assetId") Long assetId, @RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @Valid DTOAssetCharacteristicValueFilter filter) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
get
@GetMapping(value="{assetCharacteristicId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOAssetCharacteristicValue> get(@PathVariable("assetId") Long assetId, @PathVariable("assetCharacteristicId") Long characteristicId, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
removeAssetCharacteristic
@DeleteMapping(value="{assetCharacteristicId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> removeAssetCharacteristic(@PathVariable("assetId") Long assetId, @PathVariable("assetCharacteristicId") Long assetCharacteristicId) throws DAValidateException, DAException Remove a characteristic for a given asset by calling theAssetCharacteristicValueDeleteEvent.- Parameters:
assetId- the asset idassetCharacteristicId- the asset characteristic id- Returns:
- the standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-