Class ProductConfigurationCacheAccessServiceImpl
java.lang.Object
de.hybris.platform.sap.productconfig.services.cache.impl.ProductConfigurationCacheAccessServiceImpl
- All Implemented Interfaces:
ProductConfigurationCacheAccessService
public class ProductConfigurationCacheAccessServiceImpl
extends Object
implements ProductConfigurationCacheAccessService
-
Constructor Summary
Constructors -
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 systemprotected ProductConfigurationCacheAccess<ProductConfigurationCacheKey,Map<String, ClassificationSystemCPQAttributesContainer>> getConfigurationModelEngineState(String configId) Retrieves the configuration model engine stateprotected CacheKeyGeneratorgetPriceSummaryState(String configId) Retrieves the price summary for a given runtime configuration, specified via its runtime idvoidpopulateCacheKeyContextAttributes(Map<String, String> cacheKeys) 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 cachesvoidremoveConfigAttributeState(String configId, Map<String, String> contextAttributes) 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 mapvoidsetAnalyticsCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey, AnalyticsDocument> analyticsCache) voidsetClassificationSystemCPQAttributesCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey, Map<String, ClassificationSystemCPQAttributesContainer>> classificationSystemCPQAttributesCache) voidsetConfigCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey, ConfigModel> configCache) voidsetConfigurationModelEngineState(String configId, ConfigModel configModel) Puts the given config model into the engine state read cachevoidsetKeyGenerator(CacheKeyGenerator keyGenerator) voidsetPriceSummaryCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey, PriceSummaryModel> priceSummaryCache) voidsetPriceSummaryState(String configId, PriceSummaryModel priceSummaryModel) Puts the given price summary model into the price summary model state read cache
-
Constructor Details
-
ProductConfigurationCacheAccessServiceImpl
public ProductConfigurationCacheAccessServiceImpl()
-
-
Method Details
-
setAnalyticData
Description copied from interface:ProductConfigurationCacheAccessServiceSets analytic data into the cached map- Specified by:
setAnalyticDatain interfaceProductConfigurationCacheAccessService- Parameters:
configId- id of the configurationanalyticsDocument- analytics document to be stored
-
getAnalyticData
Description copied from interface:ProductConfigurationCacheAccessServiceRetrieves analytic data from the cached map- Specified by:
getAnalyticDatain interfaceProductConfigurationCacheAccessService- Parameters:
configId- id of the configuration- Returns:
- anlytics document
-
getPriceSummaryState
Description copied from interface:ProductConfigurationCacheAccessServiceRetrieves the price summary for a given runtime configuration, specified via its runtime id- Specified by:
getPriceSummaryStatein interfaceProductConfigurationCacheAccessService- Parameters:
configId- id of the configuration- Returns:
- price summary model
-
setPriceSummaryState
Description copied from interface:ProductConfigurationCacheAccessServicePuts the given price summary model into the price summary model state read cache- Specified by:
setPriceSummaryStatein interfaceProductConfigurationCacheAccessService- Parameters:
configId- unique config idpriceSummaryModel- model to cache
-
getConfigurationModelEngineState
Description copied from interface:ProductConfigurationCacheAccessServiceRetrieves the configuration model engine state- Specified by:
getConfigurationModelEngineStatein interfaceProductConfigurationCacheAccessService- Parameters:
configId- id of the configuration- Returns:
- Configuration model
-
setConfigurationModelEngineState
Description copied from interface:ProductConfigurationCacheAccessServicePuts the given config model into the engine state read cache- Specified by:
setConfigurationModelEngineStatein interfaceProductConfigurationCacheAccessService- Parameters:
configId- unique config idconfigModel- model to cache
-
removeConfigAttributeState
Description copied from interface:ProductConfigurationCacheAccessServiceRemoves cached config, prices and analytics data from caches- Specified by:
removeConfigAttributeStatein interfaceProductConfigurationCacheAccessService- Parameters:
configId- associated configuration runtime id
-
removeConfigAttributeState
Description copied from interface:ProductConfigurationCacheAccessServiceRemoves 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.- Specified by:
removeConfigAttributeStatein interfaceProductConfigurationCacheAccessService- Parameters:
configId- configId to releasecontextAttributes- context attributes for cache key creation
-
getCachedNameMap
Description copied from interface:ProductConfigurationCacheAccessServiceRetrieves a map of names from the Hybris classification system- Specified by:
getCachedNameMapin interfaceProductConfigurationCacheAccessService- Parameters:
productCode- The productCode for the classification system to retrieve- Returns:
- Map of names from the Hybris classification system
-
populateCacheKeyContextAttributes
Description copied from interface:ProductConfigurationCacheAccessServicepopulates 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.- Specified by:
populateCacheKeyContextAttributesin interfaceProductConfigurationCacheAccessService- Parameters:
cacheKeys- context attribute map to populate
-
getKeyGenerator
-
setKeyGenerator
-
getAnalyticsCache
protected ProductConfigurationCacheAccess<ProductConfigurationCacheKey,AnalyticsDocument> getAnalyticsCache() -
setAnalyticsCache
public void setAnalyticsCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey, AnalyticsDocument> analyticsCache) -
getPriceSummaryCache
protected ProductConfigurationCacheAccess<ProductConfigurationCacheKey,PriceSummaryModel> getPriceSummaryCache() -
setPriceSummaryCache
public void setPriceSummaryCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey, PriceSummaryModel> priceSummaryCache) -
getConfigCache
protected ProductConfigurationCacheAccess<ProductConfigurationCacheKey,ConfigModel> getConfigCache() -
setConfigCache
public void setConfigCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey, ConfigModel> configCache) -
getClassificationSystemCPQAttributesCache
protected ProductConfigurationCacheAccess<ProductConfigurationCacheKey,Map<String, getClassificationSystemCPQAttributesCache()ClassificationSystemCPQAttributesContainer>> -
setClassificationSystemCPQAttributesCache
public void setClassificationSystemCPQAttributesCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey, Map<String, ClassificationSystemCPQAttributesContainer>> classificationSystemCPQAttributesCache)
-