Interface ProductConfigurationCacheAccessService
-
- All Known Implementing Classes:
DummyCacheAccessService,ProductConfigurationCacheAccessServiceImpl
public interface ProductConfigurationCacheAccessServiceAccessing the cache to set, read and remove the cached data
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnalyticsDocumentgetAnalyticData(java.lang.String configId)Retrieves analytic data from the cached mapjava.util.Map<java.lang.String,ClassificationSystemCPQAttributesContainer>getCachedNameMap(java.lang.String productCode)Retrieves a map of names from the Hybris classification systemConfigModelgetConfigurationModelEngineState(java.lang.String configId)Retrieves the configuration model engine statePriceSummaryModelgetPriceSummaryState(java.lang.String configId)Retrieves the price summary for a given runtime configuration, specified via its runtime idvoidremoveConfigAttributeState(java.lang.String configId)Removes cached config, prices and analytics data from cachesvoidsetAnalyticData(java.lang.String configId, AnalyticsDocument analyticsDocument)Sets analytic data into the cached mapvoidsetConfigurationModelEngineState(java.lang.String configId, ConfigModel configModel)Puts the given config model into the engine state read cachevoidsetPriceSummaryState(java.lang.String configId, PriceSummaryModel priceSummaryModel)Puts the given price summary model into the price summary model state read cache
-
-
-
Method Detail
-
setAnalyticData
void setAnalyticData(java.lang.String configId, AnalyticsDocument analyticsDocument)Sets analytic data into the cached map- Parameters:
configId- id of the configurationanalyticsDocument- analytics document to be stored
-
getAnalyticData
AnalyticsDocument getAnalyticData(java.lang.String configId)
Retrieves analytic data from the cached map- Parameters:
configId- id of the configuration- Returns:
- anlytics document
-
getPriceSummaryState
PriceSummaryModel getPriceSummaryState(java.lang.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(java.lang.String configId, PriceSummaryModel priceSummaryModel)Puts the given price summary model into the price summary model state read cache- Parameters:
configId- unique config idpriceSummaryModel- model to cache
-
getConfigurationModelEngineState
ConfigModel getConfigurationModelEngineState(java.lang.String configId)
Retrieves the configuration model engine state- Parameters:
configId- id of the configuration- Returns:
- Configuration model
-
setConfigurationModelEngineState
void setConfigurationModelEngineState(java.lang.String configId, ConfigModel configModel)Puts the given config model into the engine state read cache- Parameters:
configId- unique config idconfigModel- model to cache
-
removeConfigAttributeState
void removeConfigAttributeState(java.lang.String configId)
Removes cached config, prices and analytics data from caches- Parameters:
configId- associated configuration runtime id
-
getCachedNameMap
java.util.Map<java.lang.String,ClassificationSystemCPQAttributesContainer> getCachedNameMap(java.lang.String productCode)
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
-
-