Class CacheKeyGeneratorImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.cache.impl.CacheKeyGeneratorImpl
-
- All Implemented Interfaces:
CacheKeyGenerator
public class CacheKeyGeneratorImpl extends java.lang.Object implements CacheKeyGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringKEY_CONFIG_IDprotected static java.lang.StringKEY_PRODUCT_CODEprotected static java.lang.StringKEY_USER_IDprotected static java.lang.StringNO_ACTIVE_TENANTprotected static java.lang.StringTYPECODE_ANALYTICS_DATAprotected static java.lang.StringTYPECODE_CLASSIFICATION_SYSTEM_CPQ_ATTRIBUTESprotected static java.lang.StringTYPECODE_CONFIGprotected static java.lang.StringTYPECODE_PRICE_SUMMARY
-
Constructor Summary
Constructors Constructor Description CacheKeyGeneratorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductConfigurationCacheKeycreateAnalyticsDataCacheKey(java.lang.String configId)Creates a cache key for the analytics data cache regionprotected ProductConfigurationCacheKeycreateCacheKey(java.lang.String configId, java.lang.String typeCode)protected ProductConfigurationCacheKeycreateCacheKeyWithoutUserKey(java.lang.String productCode, java.lang.String typeCode)ProductConfigurationCacheKeycreateClassificationSystemCPQAttributesCacheKey(java.lang.String productCode)Creates a cache key for the classification system CPQ attributes cache regionProductConfigurationCacheKeycreateConfigCacheKey(java.lang.String configId)Creates a cache key for the configuration cache regionProductConfigurationCacheKeycreatePriceSummaryCacheKey(java.lang.String configId)Creates a cache key for the price summary cache regionprotected SessionServicegetSessionService()protected java.lang.StringgetTenantId()protected ProductConfigurationUserIdProvidergetUserIdProvider()protected booleanisSessionBoundToConfiguration()voidsetSessionService(SessionService sessionService)voidsetUserIdProvider(ProductConfigurationUserIdProvider userIdProvider)
-
-
-
Field Detail
-
NO_ACTIVE_TENANT
protected static final java.lang.String NO_ACTIVE_TENANT
- See Also:
- Constant Field Values
-
KEY_CONFIG_ID
protected static final java.lang.String KEY_CONFIG_ID
- See Also:
- Constant Field Values
-
KEY_PRODUCT_CODE
protected static final java.lang.String KEY_PRODUCT_CODE
- See Also:
- Constant Field Values
-
KEY_USER_ID
protected static final java.lang.String KEY_USER_ID
- See Also:
- Constant Field Values
-
TYPECODE_ANALYTICS_DATA
protected static final java.lang.String TYPECODE_ANALYTICS_DATA
- See Also:
- Constant Field Values
-
TYPECODE_PRICE_SUMMARY
protected static final java.lang.String TYPECODE_PRICE_SUMMARY
- See Also:
- Constant Field Values
-
TYPECODE_CONFIG
protected static final java.lang.String TYPECODE_CONFIG
- See Also:
- Constant Field Values
-
TYPECODE_CLASSIFICATION_SYSTEM_CPQ_ATTRIBUTES
protected static final java.lang.String TYPECODE_CLASSIFICATION_SYSTEM_CPQ_ATTRIBUTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
createPriceSummaryCacheKey
public ProductConfigurationCacheKey createPriceSummaryCacheKey(java.lang.String configId)
Description copied from interface:CacheKeyGeneratorCreates a cache key for the price summary cache region- Specified by:
createPriceSummaryCacheKeyin interfaceCacheKeyGenerator- Parameters:
configId- configuration id- Returns:
- the created cache key
-
createAnalyticsDataCacheKey
public ProductConfigurationCacheKey createAnalyticsDataCacheKey(java.lang.String configId)
Description copied from interface:CacheKeyGeneratorCreates a cache key for the analytics data cache region- Specified by:
createAnalyticsDataCacheKeyin interfaceCacheKeyGenerator- Parameters:
configId- configuration id- Returns:
- the created cache key
-
createConfigCacheKey
public ProductConfigurationCacheKey createConfigCacheKey(java.lang.String configId)
Description copied from interface:CacheKeyGeneratorCreates a cache key for the configuration cache region- Specified by:
createConfigCacheKeyin interfaceCacheKeyGenerator- Parameters:
configId- configuration id- Returns:
- the created cache key
-
createClassificationSystemCPQAttributesCacheKey
public ProductConfigurationCacheKey createClassificationSystemCPQAttributesCacheKey(java.lang.String productCode)
Description copied from interface:CacheKeyGeneratorCreates a cache key for the classification system CPQ attributes cache region- Specified by:
createClassificationSystemCPQAttributesCacheKeyin interfaceCacheKeyGenerator- Returns:
- the created cache key
-
createCacheKey
protected ProductConfigurationCacheKey createCacheKey(java.lang.String configId, java.lang.String typeCode)
-
createCacheKeyWithoutUserKey
protected ProductConfigurationCacheKey createCacheKeyWithoutUserKey(java.lang.String productCode, java.lang.String typeCode)
-
getTenantId
protected java.lang.String getTenantId()
-
getUserIdProvider
protected ProductConfigurationUserIdProvider getUserIdProvider()
-
setUserIdProvider
public void setUserIdProvider(ProductConfigurationUserIdProvider userIdProvider)
-
getSessionService
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
- Parameters:
sessionService- the sessionService to set
-
isSessionBoundToConfiguration
protected boolean isSessionBoundToConfiguration()
-
-