Interface ProductConfigurationSomService
- All Known Implementing Classes:
DefaultProductConfigurationService
public interface ProductConfigurationSomService
Handles product configuration for cart entries: Maintains the session attributes, converts an external representation
into a runtime object and vice versa.
-
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModelgetConfigModel(String productCode, String externalConfiguration) Creates a configuration runtime representation from a product and an external configuration.getExternalConfiguration(String itemKey) To get external configuration.getGetConfigId(String itemKey) Returns the configuration ID, supposed it is available in the hybris sessiongetTotalPrice(String itemKey) Returns the configuration total price, supposed the configuration ID is available in the hybris session.booleanisInSession(String itemKey) To check if key is in sessionvoidsetIntoSession(String itemKey, String configId) Sets ID of Product Configuration session into hybris session to enable UI for reconfiguration
-
Method Details
-
setIntoSession
Sets ID of Product Configuration session into hybris session to enable UI for reconfiguration- Parameters:
itemKey- Key of cart item. Corresponds to theBusinessObject.getHandle()attribute of the BOL item, or to the cart entry PK of the hybris cart in case the backend is downconfigId- ID of the configuration runtime object. The configurator is capable of accessing the session via this ID
-
isInSession
To check if key is in session- Parameters:
itemKey- Key of cart item. Corresponds to theBusinessObject.getHandle()attribute of the BOL item, or to the cart entry PK of the hybris cart in case the backend is down- Returns:
- Is a configuration is already available in the hybris session?
-
getExternalConfiguration
To get external configuration.- Parameters:
itemKey- Key of cart item. Corresponds to theBusinessObject.getHandle()attribute of the BOL item, or to the cart entry PK of the hybris cart in case the backend is down- Returns:
- The external configuration, supposed the configuration is available in the hybris session
-
getConfigModel
de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel getConfigModel(String productCode, String externalConfiguration) Creates a configuration runtime representation from a product and an external configuration.- Parameters:
productCode- Product IDexternalConfiguration- external configuration as XML string- Returns:
- Configuration runtime representation
-
getTotalPrice
Returns the configuration total price, supposed the configuration ID is available in the hybris session.- Parameters:
itemKey- Key of cart item. Corresponds to theBusinessObject.getHandle()attribute of the BOL item, or to the cart entry PK of the hybris cart in case the backend is down- Returns:
- Total price
-
getGetConfigId
Returns the configuration ID, supposed it is available in the hybris session- Parameters:
itemKey- item key- Returns:
- Configuration ID
-