Interface ConfigurationProductLinkStrategy
- All Known Implementing Classes:
PersistenceConfigurationProductLinkStrategyImpl
public interface ConfigurationProductLinkStrategy
This strategy manages the link between a given product (code) and the corresponding runtime configuration. In case a
runtime configuration was started, but not added to the cart, yet.
-
Method Summary
Modifier and TypeMethodDescriptiongetConfigIdForProduct(String productCode) Retrieves the associated configId for a given product code for the current user sessionvoidremoveConfigIdForProduct(String productCode) Removes the link between product code and runtime configurationretrieveProductCode(String configId) Retrieves product code for given configuration id from persistencevoidsetConfigIdForProduct(String productCode, String configId) Persists the link between a product and a configuration id for the current user session
-
Method Details
-
getConfigIdForProduct
Retrieves the associated configId for a given product code for the current user session- Parameters:
productCode- product code- Returns:
- configuration id
-
setConfigIdForProduct
Persists the link between a product and a configuration id for the current user session- Parameters:
productCode- product codeconfigId- configuration id
-
removeConfigIdForProduct
Removes the link between product code and runtime configuration- Parameters:
productCode-
-
retrieveProductCode
Retrieves product code for given configuration id from persistence- Parameters:
configId- configuration id- Returns:
- product code
-