Class DefaultConfigurationModelCacheStrategyImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.strategies.lifecycle.impl.SessionServiceAware
-
- de.hybris.platform.sap.productconfig.services.strategies.lifecycle.impl.DefaultConfigurationModelCacheStrategyImpl
-
- All Implemented Interfaces:
ConfigurationModelCacheStrategy
public class DefaultConfigurationModelCacheStrategyImpl extends SessionServiceAware implements ConfigurationModelCacheStrategy
Default implementation of theConfigurationModelCacheStrategy. It uses the hybris caches to store any data and hence delegates to theCacheAccessService.
-
-
Constructor Summary
Constructors Constructor Description DefaultConfigurationModelCacheStrategyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected ProductConfigurationCacheAccessServicegetCacheAccessService()ConfigModelgetConfigurationModelEngineState(java.lang.String configId)Retrieves the configuration model engine statevoidpurge()purges the cachesvoidremoveConfigAttributeState(java.lang.String configId)Removes the given configuration engine state and price summary model from read cache for engine statevoidremoveConfigAttributeStates()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - this method is obsolete because the key under which the configuration engine state and price summary states have been saved consists of configuration id an user session idvoidsetCacheAccessService(ProductConfigurationCacheAccessService cacheAccessService)voidsetConfigurationModelEngineState(java.lang.String configId, ConfigModel configModel)Puts the given config model into the engine state read cache-
Methods inherited from class de.hybris.platform.sap.productconfig.services.strategies.lifecycle.impl.SessionServiceAware
getSessionAccessService, setSessionAccessService
-
-
-
-
Method Detail
-
getConfigurationModelEngineState
public ConfigModel getConfigurationModelEngineState(java.lang.String configId)
Description copied from interface:ConfigurationModelCacheStrategyRetrieves the configuration model engine state- Specified by:
getConfigurationModelEngineStatein interfaceConfigurationModelCacheStrategy- Parameters:
configId- id of the configuration- Returns:
- Configuration model
-
setConfigurationModelEngineState
public void setConfigurationModelEngineState(java.lang.String configId, ConfigModel configModel)Description copied from interface:ConfigurationModelCacheStrategyPuts the given config model into the engine state read cache- Specified by:
setConfigurationModelEngineStatein interfaceConfigurationModelCacheStrategy- Parameters:
configId- unique config idconfigModel- model to cache
-
purge
public void purge()
Description copied from interface:ConfigurationModelCacheStrategypurges the caches- Specified by:
purgein interfaceConfigurationModelCacheStrategy
-
removeConfigAttributeStates
@Deprecated(since="1811", forRemoval=true) public void removeConfigAttributeStates()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - this method is obsolete because the key under which the configuration engine state and price summary states have been saved consists of configuration id an user session idDescription copied from interface:ConfigurationModelCacheStrategyClears the read cache for the configuration engine state and price summary states for the whole user session- Specified by:
removeConfigAttributeStatesin interfaceConfigurationModelCacheStrategy
-
removeConfigAttributeState
public void removeConfigAttributeState(java.lang.String configId)
Description copied from interface:ConfigurationModelCacheStrategyRemoves the given configuration engine state and price summary model from read cache for engine state- Specified by:
removeConfigAttributeStatein interfaceConfigurationModelCacheStrategy- Parameters:
configId- unique config id
-
getCacheAccessService
protected ProductConfigurationCacheAccessService getCacheAccessService()
-
setCacheAccessService
public void setCacheAccessService(ProductConfigurationCacheAccessService cacheAccessService)
-
-