Class CommerceStockLevelStatusStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.stock.strategies.impl.CommerceStockLevelStatusStrategy
-
- All Implemented Interfaces:
StockLevelStatusStrategy
- Direct Known Subclasses:
WarehousingStockLevelStatusStrategy
public class CommerceStockLevelStatusStrategy extends java.lang.Object implements StockLevelStatusStrategy
-
-
Constructor Summary
Constructors Constructor Description CommerceStockLevelStatusStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StockLevelStatuscheckStatus(StockLevelModel stockLevel)Checks the status of the specifiedStockLevel.StockLevelStatuscheckStatus(java.util.Collection<StockLevelModel> stockLevels)Checks the status of the specifiedStockLevels.protected CommerceAvailabilityCalculationStrategygetCommerceStockLevelCalculationStrategy()protected intgetDefaultLowStockThreshold()voidsetCommerceStockLevelCalculationStrategy(CommerceAvailabilityCalculationStrategy commerceStockLevelCalculationStrategy)voidsetDefaultLowStockThreshold(int lowStockThreshold)
-
-
-
Method Detail
-
checkStatus
public StockLevelStatus checkStatus(StockLevelModel stockLevel)
Description copied from interface:StockLevelStatusStrategyChecks the status of the specifiedStockLevel.- Specified by:
checkStatusin interfaceStockLevelStatusStrategy- Parameters:
stockLevel- the stock level to be checked- Returns:
- stock level status
-
checkStatus
public StockLevelStatus checkStatus(java.util.Collection<StockLevelModel> stockLevels)
Description copied from interface:StockLevelStatusStrategyChecks the status of the specifiedStockLevels.- Specified by:
checkStatusin interfaceStockLevelStatusStrategy- Parameters:
stockLevels- the stock levels to be checked- Returns:
- stock level status
-
getDefaultLowStockThreshold
protected int getDefaultLowStockThreshold()
-
setDefaultLowStockThreshold
public void setDefaultLowStockThreshold(int lowStockThreshold)
-
getCommerceStockLevelCalculationStrategy
protected CommerceAvailabilityCalculationStrategy getCommerceStockLevelCalculationStrategy()
-
setCommerceStockLevelCalculationStrategy
public void setCommerceStockLevelCalculationStrategy(CommerceAvailabilityCalculationStrategy commerceStockLevelCalculationStrategy)
-
-