Interface ProductConfigurationCacheAccessService
- All Known Implementing Classes:
ProductConfigurationCacheAccessServiceImpl
public interface ProductConfigurationCacheAccessService
Accessing the cache to set, read and remove the cached data
-
Method Summary
Modifier and TypeMethodDescriptiongetAnalyticData(String configId) Retrieves analytic data from the cached mapgetCachedNameMap(String productCode) Retrieves a map of names from the Hybris classification systemgetConfigurationModelEngineState(String configId) Retrieves the configuration model engine stategetPriceSummaryState(String configId) Retrieves the price summary for a given runtime configuration, specified via its runtime iddefault voidpopulateCacheKeyContextAttributes(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.voidremoveConfigAttributeState(String configId) Removes cached config, prices and analytics data from cachesdefault voidremoveConfigAttributeState(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.voidsetAnalyticData(String configId, AnalyticsDocument analyticsDocument) Sets analytic data into the cached mapvoidsetConfigurationModelEngineState(String configId, ConfigModel configModel) Puts the given config model into the engine state read cachevoidsetPriceSummaryState(String configId, PriceSummaryModel priceSummaryModel) Puts the given price summary model into the price summary model state read cache
-
Method Details
-
setAnalyticData
Sets analytic data into the cached map- Parameters:
configId- id of the configurationanalyticsDocument- analytics document to be stored
-
getAnalyticData
Retrieves analytic data from the cached map- Parameters:
configId- id of the configuration- Returns:
- anlytics document
-
getPriceSummaryState
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
Puts the given price summary model into the price summary model state read cache- Parameters:
configId- unique config idpriceSummaryModel- model to cache
-
getConfigurationModelEngineState
Retrieves the configuration model engine state- Parameters:
configId- id of the configuration- Returns:
- Configuration model
-
setConfigurationModelEngineState
Puts the given config model into the engine state read cache- Parameters:
configId- unique config idconfigModel- model to cache
-
removeConfigAttributeState
Removes cached config, prices and analytics data from caches- Parameters:
configId- associated configuration runtime id
-
removeConfigAttributeState
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 releasectxtAttributes- 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
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
-