Class ProductConfigurationOrderIntegrationServiceImpl
java.lang.Object
de.hybris.platform.sap.productconfig.services.impl.ProductConfigurationOrderIntegrationServiceImpl
- All Implemented Interfaces:
ProductConfigurationOrderIntegrationService
public class ProductConfigurationOrderIntegrationServiceImpl
extends Object
implements ProductConfigurationOrderIntegrationService
Default implementation of the
ProductConfigurationOrderIntegrationService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCalculates configuration relevant attributes at cart entry levelcalculateCartEntryConfigurationAttributes(String cartEntryKey, String productCode, String externalConfiguration) Deprecated.since 18.08ensureConfigurationInSession(String cartEntryKey, String productCode, String externalConfiguration) Deprecated.since 18.08 useConfigurationAbstractOrderEntryLinkStrategy#getConfigurationForAbstractOrderEntry(AbstractOrderEntryModel)insteadvoidFill the summary map at the order entry with configuration status informationprotected CommerceCartServiceprotected ProductConfigurationServiceprotected ExternalConfigurationAccessprotected ModelServiceprotected ProductConfigurationPricingStrategyprotected TrackingRecorderprotected booleanhasProductChangedForCartItem(ProductModel product, AbstractOrderEntryModel cartItem) voidsetAbstractOrderEntryLinkStrategy(ConfigurationAbstractOrderEntryLinkStrategy configurationAbstractOrderEntryLinkStrategy) voidsetCommerceCartService(CommerceCartService commerceCartService) voidsetConfigurationAbstractOrderIntegrationStrategy(ConfigurationAbstractOrderIntegrationStrategy configurationAbstractOrderIntegrationStrategy) voidsetConfigurationService(ProductConfigurationService configurationService) voidsetExternalConfigurationAccess(ExternalConfigurationAccess externalConfigurationAccess) voidsetModelService(ModelService modelService) voidsetProductConfigurationPricingStrategy(ProductConfigurationPricingStrategy productConfigurationPricingStrategy) voidsetRecorder(TrackingRecorder recorder) booleanupdateCartEntryExternalConfiguration(String externalConfiguration, AbstractOrderEntryModel entry) Updates cart entry's external configuration and creates configuration in current session from external string representation (which contains the configuration in XML format)booleanupdateCartEntryProduct(AbstractOrderEntryModel entry, ProductModel product, String configId) Update the product of the cartItem, if the product is different to the current cart item product
-
Constructor Details
-
ProductConfigurationOrderIntegrationServiceImpl
public ProductConfigurationOrderIntegrationServiceImpl()
-
-
Method Details
-
calculateCartEntryConfigurationAttributes
public CartEntryConfigurationAttributes calculateCartEntryConfigurationAttributes(AbstractOrderEntryModel entryModel) Description copied from interface:ProductConfigurationOrderIntegrationServiceCalculates configuration relevant attributes at cart entry level- Specified by:
calculateCartEntryConfigurationAttributesin interfaceProductConfigurationOrderIntegrationService- Parameters:
entryModel- Cart Entry- Returns:
- attributes relevant for configuration
-
updateCartEntryExternalConfiguration
public boolean updateCartEntryExternalConfiguration(String externalConfiguration, AbstractOrderEntryModel entry) Description copied from interface:ProductConfigurationOrderIntegrationServiceUpdates cart entry's external configuration and creates configuration in current session from external string representation (which contains the configuration in XML format)- Specified by:
updateCartEntryExternalConfigurationin interfaceProductConfigurationOrderIntegrationService- Parameters:
externalConfiguration- Configuration as XML stringentry- cart entry- Returns:
- true if cart entry has been updated
-
updateCartEntryProduct
public boolean updateCartEntryProduct(AbstractOrderEntryModel entry, ProductModel product, String configId) Description copied from interface:ProductConfigurationOrderIntegrationServiceUpdate the product of the cartItem, if the product is different to the current cart item product- Specified by:
updateCartEntryProductin interfaceProductConfigurationOrderIntegrationService- Parameters:
entry- Entry to change, if necessaryproduct- cart item productconfigId- ID of the current configuration- Returns:
- true if the entry was updated
-
hasProductChangedForCartItem
protected boolean hasProductChangedForCartItem(ProductModel product, AbstractOrderEntryModel cartItem) -
fillSummaryMap
Description copied from interface:ProductConfigurationOrderIntegrationServiceFill the summary map at the order entry with configuration status information- Specified by:
fillSummaryMapin interfaceProductConfigurationOrderIntegrationService- Parameters:
entry- Entry to be enhanced with additional information
-
getConfigurationService
-
setConfigurationService
- Parameters:
configurationService- the configurationService to set
-
getAbstractOrderEntryLinkStrategy
-
setAbstractOrderEntryLinkStrategy
public void setAbstractOrderEntryLinkStrategy(ConfigurationAbstractOrderEntryLinkStrategy configurationAbstractOrderEntryLinkStrategy) -
getRecorder
-
setRecorder
- Parameters:
recorder- inject the CPQ tracking recorder for tracking CPQ events
-
getModelService
-
setModelService
- Parameters:
modelService-
-
getCommerceCartService
-
setCommerceCartService
- Parameters:
commerceCartService- the commerceCartService to set
-
getProductConfigurationPricingStrategy
-
setProductConfigurationPricingStrategy
public void setProductConfigurationPricingStrategy(ProductConfigurationPricingStrategy productConfigurationPricingStrategy) - Parameters:
productConfigurationPricingStrategy- the productConfigurationPricingStrategy to set
-
setConfigurationAbstractOrderIntegrationStrategy
public void setConfigurationAbstractOrderIntegrationStrategy(ConfigurationAbstractOrderIntegrationStrategy configurationAbstractOrderIntegrationStrategy) - Parameters:
configurationAbstractOrderIntegrationStrategy-
-
getConfigurationAbstractOrderIntegrationStrategy
protected ConfigurationAbstractOrderIntegrationStrategy getConfigurationAbstractOrderIntegrationStrategy() -
setExternalConfigurationAccess
- Parameters:
externalConfigurationAccess- SeeExternalConfigurationAccess
-
getExternalConfigurationAccess
-
calculateCartEntryConfigurationAttributes
@Deprecated(since="1808") public CartEntryConfigurationAttributes calculateCartEntryConfigurationAttributes(String cartEntryKey, String productCode, String externalConfiguration) Deprecated.since 18.08This method is used by SOM and can therefore not be deleted. SOM has no access to the model layer of SAP Commerce and can not call the new calculateCartEntryConfigurationAttributes method. This method can be deleted once SOM is sunsetted. It must not be called outside the SOM context- Specified by:
calculateCartEntryConfigurationAttributesin interfaceProductConfigurationOrderIntegrationService
-
ensureConfigurationInSession
@Deprecated(since="1808") public ConfigModel ensureConfigurationInSession(String cartEntryKey, String productCode, String externalConfiguration) Deprecated.since 18.08 useConfigurationAbstractOrderEntryLinkStrategy#getConfigurationForAbstractOrderEntry(AbstractOrderEntryModel)insteadThis method is used by SOM and can therefore not be deleted. SOM has no access to the model layer of SAP Commerce and can not call the new calculateCartEntryConfigurationAttributes method. This method can be deleted once SOM is sunsetted. It must not be called outside the SOM context
-