Interface ProductConfigurationCacheAccessService

All Known Implementing Classes:
ProductConfigurationCacheAccessServiceImpl

public interface ProductConfigurationCacheAccessService
Accessing the cache to set, read and remove the cached data
  • Method Details

    • setAnalyticData

      void setAnalyticData(String configId, AnalyticsDocument analyticsDocument)
      Sets analytic data into the cached map
      Parameters:
      configId - id of the configuration
      analyticsDocument - analytics document to be stored
    • getAnalyticData

      AnalyticsDocument getAnalyticData(String configId)
      Retrieves analytic data from the cached map
      Parameters:
      configId - id of the configuration
      Returns:
      anlytics document
    • getPriceSummaryState

      PriceSummaryModel getPriceSummaryState(String configId)
      Retrieves the price summary for a given runtime configuration, specified via its runtime id
      Parameters:
      configId - id of the configuration
      Returns:
      price summary model
    • setPriceSummaryState

      void setPriceSummaryState(String configId, PriceSummaryModel priceSummaryModel)
      Puts the given price summary model into the price summary model state read cache
      Parameters:
      configId - unique config id
      priceSummaryModel - model to cache
    • getConfigurationModelEngineState

      ConfigModel getConfigurationModelEngineState(String configId)
      Retrieves the configuration model engine state
      Parameters:
      configId - id of the configuration
      Returns:
      Configuration model
    • setConfigurationModelEngineState

      void setConfigurationModelEngineState(String configId, ConfigModel configModel)
      Puts the given config model into the engine state read cache
      Parameters:
      configId - unique config id
      configModel - model to cache
    • removeConfigAttributeState

      void removeConfigAttributeState(String configId)
      Removes cached config, prices and analytics data from caches
      Parameters:
      configId - associated configuration runtime id
    • getCachedNameMap

      Retrieves a map of names from the Hybris classification system
      Parameters:
      productCode - The productCode for the classification system to retrieve
      Returns:
      Map of names from the Hybris classification system