Class StoreStockPopulator
java.lang.Object
de.hybris.platform.commercefacades.product.converters.populator.StoreStockPopulator
- All Implemented Interfaces:
Populator<StoreStockHolder,PointOfServiceStockData>
public class StoreStockPopulator
extends Object
implements Populator<StoreStockHolder,PointOfServiceStockData>
Populate the store stock data with store specific stock information
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseStoreServiceprotected CommerceStockServiceprotected Populator<PointOfServiceModel,PointOfServiceData> protected booleanprotected booleanisStockSystemEnabled(BaseStoreModel baseStore) voidpopulate(StoreStockHolder storeStockHolder, PointOfServiceStockData pointOfServiceStockData) Populate the target instance with values from the source instance.voidsetBaseStoreService(BaseStoreService baseStoreService) voidsetCommerceStockService(CommerceStockService commerceStockService) voidsetPointOfServicePopulator(Populator<PointOfServiceModel, PointOfServiceData> pointOfServicePopulator)
-
Constructor Details
-
StoreStockPopulator
public StoreStockPopulator()
-
-
Method Details
-
getPointOfServicePopulator
-
setPointOfServicePopulator
public void setPointOfServicePopulator(Populator<PointOfServiceModel, PointOfServiceData> pointOfServicePopulator) -
getBaseStoreService
-
setBaseStoreService
-
getCommerceStockService
-
setCommerceStockService
-
populate
public void populate(StoreStockHolder storeStockHolder, PointOfServiceStockData pointOfServiceStockData) throws ConversionException Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<StoreStockHolder,PointOfServiceStockData> - Parameters:
storeStockHolder- the source objectpointOfServiceStockData- the target to fill- Throws:
ConversionException- if an error occurs
-
isStockSystemEnabled
protected boolean isStockSystemEnabled() -
isStockSystemEnabled
-