Class DefaultAvailabilityService

  • All Implemented Interfaces:
    AvailabilityService

    public class DefaultAvailabilityService
    extends java.lang.Object
    implements AvailabilityService
    Implementation for the Availability service.
    • Constructor Detail

      • DefaultAvailabilityService

        public DefaultAvailabilityService()
    • Method Detail

      • getStockAvailability

        public java.util.Collection<StockLevelModel> getStockAvailability​(ProductModel product,
                                                                          java.util.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 java.util.Collection<FutureStockModel> getFutureAvailability​(ProductModel product,
                                                                            java.util.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.
      • fetchStockDetailsForWarehouses

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

        protected java.util.Collection<WarehouseModel> filterWarehousesBasedOnSAPConfigMapping​(java.util.Collection<WarehouseModel> warehouses)
      • getCurrentCustomerID

        protected java.lang.String getCurrentCustomerID()
      • 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)
      • setSapProductAvailabilityCache

        public void setSapProductAvailabilityCache​(SapProductAvailabilityCache sapProductAvailabilityCache)
      • setSalesOrderSimulationService

        public void setSalesOrderSimulationService​(SalesOrderSimulationService salesOrderSimulationService)