Class DefaultSapProductAvailabilityService
java.lang.Object
de.hybris.platform.commerceservices.stock.impl.DefaultCommerceStockService
de.hybris.platform.sap.sapproductavailability.service.impl.DefaultSapProductAvailabilityService
- All Implemented Interfaces:
de.hybris.platform.commerceservices.stock.CommerceStockService,SapProductAvailabilityService
public class DefaultSapProductAvailabilityService
extends de.hybris.platform.commerceservices.stock.impl.DefaultCommerceStockService
implements SapProductAvailabilityService
determined the product availability
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe future available quantity in ERP is of type Long and it has to be convert to Integer to match hybris expected type.The maximum quantity that is displayed in hybris is Integer.MAX_VALUE which is 2147483647 .protected LongconvertStockUnit(ProductModel product, BaseStoreModel baseStore) protected SapCustomerDeterminationServicegetStockLevelForProductAndBaseStore(ProductModel product, BaseStoreModel baseStore) getStockLevelStatusForProductAndBaseStore(ProductModel product, BaseStoreModel baseStore) booleanreadProductFutureAvailability(ProductModel productModel) Read the product future availability from ERPprotected SapProductAvailabilityreadSapProductAvailability(ProductModel product) voidsetModuleConfigurationAccess(ModuleConfigurationAccess moduleConfigurationAccess) voidsetSapCustomerDeterminationService(SapCustomerDeterminationService sapCustomerDeterminationService) voidsetSapProductAvailabilityBOFactory(SapProductAvailabilityBOFactory sapProductAvailabilityBOFactory) Methods inherited from class de.hybris.platform.commerceservices.stock.impl.DefaultCommerceStockService
getCommerceStockLevelCalculationStrategy, getPosAndStockLevelStatusForProduct, getStockLevelForProductAndPointOfService, getStockLevelProductStrategy, getStockLevelStatusForProductAndPointOfService, getStockLevelStatusStrategy, getStockService, getStorePickupDao, getWarehouseSelectionStrategy, isStockSystemEnabled, setCommerceStockLevelCalculationStrategy, setStockLevelProductStrategy, setStockLevelStatusStrategy, setStockService, setStorePickupDao, setWarehouseSelectionStrategyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.commerceservices.stock.CommerceStockService
getPosAndStockLevelStatusForProduct, getStockLevelForProductAndPointOfService, getStockLevelStatusForProductAndPointOfService, isStockSystemEnabled
-
Constructor Details
-
DefaultSapProductAvailabilityService
public DefaultSapProductAvailabilityService()
-
-
Method Details
-
isSynchronousATPCheckActive
public boolean isSynchronousATPCheckActive()- Specified by:
isSynchronousATPCheckActivein interfaceSapProductAvailabilityService- Returns:
- true if the synchronous ATP check is active
-
getStockLevelForProductAndBaseStore
- Specified by:
getStockLevelForProductAndBaseStorein interfacede.hybris.platform.commerceservices.stock.CommerceStockService- Specified by:
getStockLevelForProductAndBaseStorein interfaceSapProductAvailabilityService- Overrides:
getStockLevelForProductAndBaseStorein classde.hybris.platform.commerceservices.stock.impl.DefaultCommerceStockService
-
readSapProductAvailability
-
getStockLevelStatusForProductAndBaseStore
public StockLevelStatus getStockLevelStatusForProductAndBaseStore(ProductModel product, BaseStoreModel baseStore) - Specified by:
getStockLevelStatusForProductAndBaseStorein interfacede.hybris.platform.commerceservices.stock.CommerceStockService- Specified by:
getStockLevelStatusForProductAndBaseStorein interfaceSapProductAvailabilityService- Overrides:
getStockLevelStatusForProductAndBaseStorein classde.hybris.platform.commerceservices.stock.impl.DefaultCommerceStockService
-
convertStockUnit
- Parameters:
product-baseStore-- Returns:
- Long the stock level in sales unit
-
readProductFutureAvailability
Description copied from interface:SapProductAvailabilityServiceRead the product future availability from ERP- Specified by:
readProductFutureAvailabilityin interfaceSapProductAvailabilityService- Parameters:
productModel- product model- Returns:
- product future availability
-
convertQuantityOfFutureAvailability
protected Map<String,Map<Date, convertQuantityOfFutureAvailabilityInteger>> (Map<String, Map<Date, Long>> futureAvailabilityMap) The future available quantity in ERP is of type Long and it has to be convert to Integer to match hybris expected type.The maximum quantity that is displayed in hybris is Integer.MAX_VALUE which is 2147483647 .- Parameters:
futureAvailabilityMap-- Returns:
- Map<String, Map<Date, Integer>> futureAvailability
-
getModuleConfigurationAccess
-
setModuleConfigurationAccess
-
getSapCustomerDeterminationService
-
setSapCustomerDeterminationService
public void setSapCustomerDeterminationService(SapCustomerDeterminationService sapCustomerDeterminationService) -
getSapProductAvailabilityBOFactory
-
setSapProductAvailabilityBOFactory
public void setSapProductAvailabilityBOFactory(SapProductAvailabilityBOFactory sapProductAvailabilityBOFactory)
-