Class FeignProductApiAdapter

java.lang.Object
org.openwms.wms.shipping.spi.wms.inventory.FeignProductApiAdapter
All Implemented Interfaces:
SyncProductApi

@Profile("DISTRIBUTED") @Validated @Component class FeignProductApiAdapter extends Object implements SyncProductApi
A FeignProductApiAdapter.
Author:
Heiko Scherrer
  • Field Details

    • validator

      private final javax.validation.Validator validator
    • productApi

      private final ProductApi productApi
  • Constructor Details

    • FeignProductApiAdapter

      FeignProductApiAdapter(javax.validation.Validator validator, ProductApi productApi)
  • Method Details

    • findBySKU

      @Measured public ProductVO findBySKU(@NotBlank @NotBlank String sku)
      Find and return a Product identified by its SKU.
      Specified by:
      findBySKU in interface SyncProductApi
      Parameters:
      sku - The identifying SKU attribute
      Returns:
      The instance or null
    • findProductByProductUnitPkey

      @Measured public ProductVO findProductByProductUnitPkey(@NotBlank @NotBlank String pKey)
      Gets Product based on ProductUnit pKey
      Specified by:
      findProductByProductUnitPkey in interface SyncProductApi
      Parameters:
      pKey - The pKey of the productUnit
      Returns:
      The instance or null