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
    • removeConfigAttributeState

      default void removeConfigAttributeState(String configId, Map<String,String> ctxtAttributes)
      Removes cached config, prices and analytics data from caches.
      Instead of extracting context attributes, such as userId, from the current thread, they will be obtained from the provided context map.
      Parameters:
      configId - configId to release
      ctxtAttributes - context attributes for cache key creation
    • 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
    • populateCacheKeyContextAttributes

      default void populateCacheKeyContextAttributes(Map<String,String> ctxtAttributes)
      populates the map with all cache key components that depend on the current sessionContext, so a cache key for a given configId can re-created independently of the current session/threat context.
      Parameters:
      ctxtAttributes - context attribute map to populate