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 Details

    • getConfigIdForProduct

      String getConfigIdForProduct(String productCode)
      Retrieves the associated configId for a given product code for the current user session
      Parameters:
      productCode - product code
      Returns:
      configuration id
    • setConfigIdForProduct

      void setConfigIdForProduct(String productCode, String configId)
      Persists the link between a product and a configuration id for the current user session
      Parameters:
      productCode - product code
      configId - configuration id
    • removeConfigIdForProduct

      void removeConfigIdForProduct(String productCode)
      Removes the link between product code and runtime configuration
      Parameters:
      productCode -
    • retrieveProductCode

      String retrieveProductCode(String configId)
      Retrieves product code for given configuration id from persistence
      Parameters:
      configId - configuration id
      Returns:
      product code