Class DummyCacheAccessService
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.testutil.DummyCacheAccessService
-
- All Implemented Interfaces:
ProductConfigurationCacheAccessService
public class DummyCacheAccessService extends java.lang.Object implements ProductConfigurationCacheAccessService
Dummy implementation forProductConfigurationCacheAccessServiceused only for spring mvc tests
-
-
Field Summary
Fields Modifier and Type Field Description protected DummySessionAccessServicesessionAccessService
-
Constructor Summary
Constructors Constructor Description DummyCacheAccessService()
-
Method Summary
All Methods Instance Methods Concrete 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
-
-
-
Field Detail
-
sessionAccessService
protected DummySessionAccessService sessionAccessService
-
-
Method Detail
-
setAnalyticData
public void setAnalyticData(java.lang.String configId, AnalyticsDocument analyticsDocument)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
public AnalyticsDocument getAnalyticData(java.lang.String configId)
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
public PriceSummaryModel getPriceSummaryState(java.lang.String configId)
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
public void setPriceSummaryState(java.lang.String configId, PriceSummaryModel priceSummaryModel)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
public ConfigModel getConfigurationModelEngineState(java.lang.String configId)
Description copied from interface:ProductConfigurationCacheAccessServiceRetrieves the configuration model engine state- Specified by:
getConfigurationModelEngineStatein interfaceProductConfigurationCacheAccessService- Parameters:
configId- id of the configuration- Returns:
- Configuration model
-
setConfigurationModelEngineState
public void setConfigurationModelEngineState(java.lang.String configId, ConfigModel configModel)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
public void removeConfigAttributeState(java.lang.String configId)
Description copied from interface:ProductConfigurationCacheAccessServiceRemoves cached config, prices and analytics data from caches- Specified by:
removeConfigAttributeStatein interfaceProductConfigurationCacheAccessService- Parameters:
configId- associated configuration runtime id
-
getCachedNameMap
public java.util.Map<java.lang.String,ClassificationSystemCPQAttributesContainer> getCachedNameMap(java.lang.String productCode)
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
-
-