Class ConfigurationInfoDataPopulator<T extends AbstractOrderEntryProductInfoModel>
java.lang.Object
de.hybris.platform.cpq.productconfig.facades.populator.ConfigurationInfoDataPopulator<T>
- Type Parameters:
T- concreate AbstractOrderEntryProductInfoModel type
- All Implemented Interfaces:
de.hybris.platform.converters.Populator<T,List<ConfigurationInfoData>>
public class ConfigurationInfoDataPopulator<T extends AbstractOrderEntryProductInfoModel>
extends Object
implements de.hybris.platform.converters.Populator<T,List<ConfigurationInfoData>>
Populates the
ConfigurationInfoData for the CPQCloudConfigurator.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationInfoDataPopulator(ConfigurationService configurationService, de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory, de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected StringformatPrice(BigDecimal price, String currency) protected de.hybris.platform.servicelayer.i18n.CommonI18NServiceprotected ConfigurationServiceprotected Stringprotected de.hybris.platform.commercefacades.product.PriceDataFactoryprotected ProductInfoStatusprotected ProductInfoStatusgetStatus(String configurationId, AbstractOrderEntryModel entry) voidpopulate(T source, List<ConfigurationInfoData> target) protected voidpopulateLineItems(List<ConfigurationInfoData> target, List<ConfigurationSummaryLineItemData> lineItems, String currency, ProductInfoStatus configStatus)
-
Field Details
-
DATA_TYPE_QTY_ATTRIBUTE_LEVEL
- See Also:
-
DATA_TYPE_INPUT_STRING
- See Also:
-
DISPLAY_AS_RADIO_BUTTON
protected static final int DISPLAY_AS_RADIO_BUTTON- See Also:
-
DATA_TYPE_QTY_VALUE_LEVEL
- See Also:
-
DISPLAY_AS_CHECK_BOX
protected static final int DISPLAY_AS_CHECK_BOX- See Also:
-
DISPLAY_AS_DROPDOWN
protected static final int DISPLAY_AS_DROPDOWN- See Also:
-
-
Constructor Details
-
ConfigurationInfoDataPopulator
public ConfigurationInfoDataPopulator(ConfigurationService configurationService, de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory, de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) Default constructor- Parameters:
configurationService- configuration servicepriceDataFactory- price data factorycommonI18NService- common I18N service
-
-
Method Details
-
populate
- Specified by:
populatein interfacede.hybris.platform.converters.Populator<T extends AbstractOrderEntryProductInfoModel,List<ConfigurationInfoData>>
-
populateLineItems
protected void populateLineItems(List<ConfigurationInfoData> target, List<ConfigurationSummaryLineItemData> lineItems, String currency, ProductInfoStatus configStatus) -
getLineItemQuantityString
-
getStatus
-
getStatus
-
formatPrice
-
getConfigurationService
-
getPriceDataFactory
protected de.hybris.platform.commercefacades.product.PriceDataFactory getPriceDataFactory() -
getCommonI18NService
protected de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
-