Class DefaultAvailabilityService

java.lang.Object
de.hybris.platform.sap.sapsalesordersimulation.service.impl.DefaultAvailabilityService
All Implemented Interfaces:
AvailabilityService

public class DefaultAvailabilityService extends Object implements AvailabilityService
Implementation for the Availability service.
  • Constructor Details

    • DefaultAvailabilityService

      public DefaultAvailabilityService()
  • Method Details

    • getStockAvailability

      public Collection<StockLevelModel> getStockAvailability(ProductModel product, Collection<WarehouseModel> warehouses)
      Description copied from interface: AvailabilityService
      Get the stock level information for the product and the warehouses
      Specified by:
      getStockAvailability in interface AvailabilityService
      Parameters:
      product - - Product for which stock level is fetched
      warehouses - - list of warehouses for which the availability has to be fetched
      Returns:
      list of StockLevelModels for the corresponding product and warehouses.
    • getFutureAvailability

      public Collection<FutureStockModel> getFutureAvailability(ProductModel product, Collection<WarehouseModel> warehouses)
      Description copied from interface: AvailabilityService
      Get the stock level information for the product and the warehouse
      Specified by:
      getFutureAvailability in interface AvailabilityService
      Parameters:
      product - - Product for which future stock level has to be fetched
      warehouses - - list of warehouses for which the future stock has to be fetched
      Returns:
      list of StockLevelModels for the corresponding product and warehouse.
    • getProductAvailability

      public SapProductAvailability getProductAvailability(ProductModel productModel, BaseStoreModel baseStore)
      Description copied from interface: AvailabilityService
      Get the SapProductAvailability (contains stock , future stock details) for the product and the given basestore
      Specified by:
      getProductAvailability in interface AvailabilityService
      Parameters:
      productModel - the ProductModel
      baseStore - the baseStoreModel
      Returns:
      SapProductAvailability for the corresponding product and warehouse.
    • fetchAllStockDetails

      protected Map<String,SapProductAvailability> fetchAllStockDetails(ProductModel product, Collection<WarehouseModel> sapPlants)
    • fetchStockDetailsForWarehouses

      protected void fetchStockDetailsForWarehouses(ProductModel product, Map<String,SapProductAvailability> allSapProductAvailabilities, Collection<WarehouseModel> warehouseWithStockFetchRequired, String currentCustomerId)
    • filterWarehousesBasedOnSAPConfigMapping

      protected Collection<WarehouseModel> filterWarehousesBasedOnSAPConfigMapping(Collection<WarehouseModel> warehouses)
    • getCurrentCustomerID

      protected String getCurrentCustomerID()
    • isValidPlant

      protected boolean isValidPlant(Collection<WarehouseModel> warehouses, SAPPlantLogSysOrgModel sapPlantDetails)
    • getBaseStoreService

      protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
    • setBaseStoreService

      public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService)
    • getUserService

      protected de.hybris.platform.servicelayer.user.UserService getUserService()
    • setUserService

      public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
    • getB2bUnitService

      protected de.hybris.platform.b2b.services.B2BUnitService getB2bUnitService()
    • setB2bUnitService

      public void setB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService b2bUnitService)
    • getSapProductAvailabilityCache

      protected SapProductAvailabilityCache getSapProductAvailabilityCache()
    • setSapProductAvailabilityCache

      public void setSapProductAvailabilityCache(SapProductAvailabilityCache sapProductAvailabilityCache)
    • getSalesOrderSimulationService

      protected SalesOrderSimulationService getSalesOrderSimulationService()
    • setSalesOrderSimulationService

      public void setSalesOrderSimulationService(SalesOrderSimulationService salesOrderSimulationService)