Class StoreStockPopulator
- java.lang.Object
-
- de.hybris.platform.commercefacades.product.converters.populator.StoreStockPopulator
-
- All Implemented Interfaces:
Populator<StoreStockHolder,PointOfServiceStockData>
public class StoreStockPopulator extends java.lang.Object implements Populator<StoreStockHolder,PointOfServiceStockData>
Populate the store stock data with store specific stock information
-
-
Constructor Summary
Constructors Constructor Description StoreStockPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BaseStoreServicegetBaseStoreService()protected CommerceStockServicegetCommerceStockService()protected Populator<PointOfServiceModel,PointOfServiceData>getPointOfServicePopulator()protected booleanisStockSystemEnabled()protected 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)
-
-
-
Method Detail
-
getPointOfServicePopulator
protected Populator<PointOfServiceModel,PointOfServiceData> getPointOfServicePopulator()
-
setPointOfServicePopulator
public void setPointOfServicePopulator(Populator<PointOfServiceModel,PointOfServiceData> pointOfServicePopulator)
-
getBaseStoreService
protected BaseStoreService getBaseStoreService()
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
-
getCommerceStockService
protected CommerceStockService getCommerceStockService()
-
setCommerceStockService
public void setCommerceStockService(CommerceStockService commerceStockService)
-
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
protected boolean isStockSystemEnabled(BaseStoreModel baseStore)
-
-