Class ProductConfigurationSynchronousPricingStrategyImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.impl.ProductConfigurationPricingStrategyImpl
-
- de.hybris.platform.sap.productconfig.pricing.bol.impl.ProductConfigurationSynchronousPricingStrategyImpl
-
- All Implemented Interfaces:
ProductConfigurationPricingStrategy
public class ProductConfigurationSynchronousPricingStrategyImpl extends ProductConfigurationPricingStrategyImpl implements ProductConfigurationPricingStrategy
Configuration order integration for synchronous pricing
-
-
Constructor Summary
Constructors Constructor Description ProductConfigurationSynchronousPricingStrategyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SapPricingEnablementServicegetSapPricingEnablementService()booleanisCartPricingErrorPresent(ConfigModel configModel)Indicates whether there is a problem to obtain correct prices for cart/ordervoidsetSapPricingEnablementService(SapPricingEnablementService sapPricingEnablementService)booleanupdateCartEntryBasePrice(AbstractOrderEntryModel entry)Updates cart entry's base price from configuration model if a price is available in configuration model.booleanupdateCartEntryPrices(AbstractOrderEntryModel entry, boolean calculateCart, CommerceCartParameter passedParameter)Updates cart entry's base price (in case it deviates from the current configuration price) from configuration model/pricing service.protected booleanupdateCartEntryPricesSynchronous(AbstractOrderEntryModel entry, boolean calculateCart, CommerceCartParameter passedParameter)-
Methods inherited from class de.hybris.platform.sap.productconfig.services.impl.ProductConfigurationPricingStrategyImpl
getAbstractOrderEntryLinkStrategy, getCommerceCartService, getConfigurationService, getModelService, getParametersForCartUpdate, getPricingService, hasBasePriceChanged, retrieveCurrentTotalPrice, setAbstractOrderEntryLinkStrategy, setCommerceCartService, setConfigurationService, setModelService, setPricingService
-
-
-
-
Method Detail
-
updateCartEntryPrices
public boolean updateCartEntryPrices(AbstractOrderEntryModel entry, boolean calculateCart, CommerceCartParameter passedParameter)
Description copied from interface:ProductConfigurationPricingStrategyUpdates cart entry's base price (in case it deviates from the current configuration price) from configuration model/pricing service. ConfigId has to be present in current session for given cart entry to retrieve configuration model. This includes recalculation and saving of the cart if entry prices were updated.- Specified by:
updateCartEntryPricesin interfaceProductConfigurationPricingStrategy- Overrides:
updateCartEntryPricesin classProductConfigurationPricingStrategyImpl- Parameters:
entry- cart entrycalculateCart- specifies whether cart is calculated on successful updatepassedParameter- parameters for recalculation of the cart- Returns:
- true if cart entry has been updated
-
updateCartEntryPricesSynchronous
protected boolean updateCartEntryPricesSynchronous(AbstractOrderEntryModel entry, boolean calculateCart, CommerceCartParameter passedParameter)
-
updateCartEntryBasePrice
public boolean updateCartEntryBasePrice(AbstractOrderEntryModel entry)
Description copied from interface:ProductConfigurationPricingStrategyUpdates cart entry's base price from configuration model if a price is available in configuration model. ConfigId has to be present in current session for given cart entry to retrieve configuration model. The caller has to take care for triggering recalculate of cart afterwards.- Specified by:
updateCartEntryBasePricein interfaceProductConfigurationPricingStrategy- Overrides:
updateCartEntryBasePricein classProductConfigurationPricingStrategyImpl- Parameters:
entry- cart entry- Returns:
- true if cart entry has been updated
-
isCartPricingErrorPresent
public boolean isCartPricingErrorPresent(ConfigModel configModel)
Description copied from interface:ProductConfigurationPricingStrategyIndicates whether there is a problem to obtain correct prices for cart/order- Specified by:
isCartPricingErrorPresentin interfaceProductConfigurationPricingStrategy- Overrides:
isCartPricingErrorPresentin classProductConfigurationPricingStrategyImpl- Parameters:
configModel- configuration model that represents the runtime state of the configuration- Returns:
- true if no prices can be obtained at the moment
-
getSapPricingEnablementService
protected SapPricingEnablementService getSapPricingEnablementService()
-
setSapPricingEnablementService
public void setSapPricingEnablementService(SapPricingEnablementService sapPricingEnablementService)
- Parameters:
sapPricingEnablementService- the sapPricingEnablementService to set
-
-