Class DefaultCacheKeyService
java.lang.Object
de.hybris.platform.cpq.productconfig.services.impl.DefaultCacheKeyService
- All Implemented Interfaces:
CacheKeyService
Default implementation of the
CacheKeyService-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
ConstructorsConstructorDescriptionDefaultCacheKeyService(de.hybris.platform.site.BaseSiteService baseSiteService) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionCreates a cache key for the authorization data cache regioncreateAuthorizationDataCacheKey(String baseSite) Creates a cache key for the authorization data cache region where the base site is set externallyCreates a cache key for the client authorization data cache regioncreateClientAuthorizationDataCacheKey(String baseSite, String ownerId) Creates a cache key for the client authorization data cache region where the base site is set externallycreateConfigurationSummaryCacheKey(String configId) Creates a cache key for the configuration summary cache regioncreateConfigurationTabsCacheKey(String configId) Creates a cache key for the configuration tabs cache regioncreateCookieCacheKey(String configId) Created a cache key for the session cookie cache regionprotected de.hybris.platform.site.BaseSiteServiceprotected Stringprotected String
-
Field Details
-
NO_ACTIVE_TENANT
- See Also:
-
KEY_BASE_SITE
- See Also:
-
KEY_CONFIG_ID
- See Also:
-
TYPECODE_AUTHORIZATION_DATA
- See Also:
-
TYPECODE_CLIENT_AUTHORIZATION_DATA
- See Also:
-
TYPECODE_CONFIGURATION_SUMMARY
- See Also:
-
KEY_QWNER_ID
- See Also:
-
TYPECODE_COOKIES
- See Also:
-
TYPECODE_CONFIGURATION_TABS
- See Also:
-
-
Constructor Details
-
DefaultCacheKeyService
public DefaultCacheKeyService(de.hybris.platform.site.BaseSiteService baseSiteService) Default constructor- Parameters:
baseSiteService- base site service
-
-
Method Details
-
createAuthorizationDataCacheKey
Description copied from interface:CacheKeyServiceCreates a cache key for the authorization data cache region where the base site is set externally- Specified by:
createAuthorizationDataCacheKeyin interfaceCacheKeyService- Parameters:
baseSite- base site- Returns:
- the created cache key
-
createAuthorizationDataCacheKey
Description copied from interface:CacheKeyServiceCreates a cache key for the authorization data cache region- Specified by:
createAuthorizationDataCacheKeyin interfaceCacheKeyService- Returns:
- the created cache key
-
getTenantId
-
getCurrentBaseSite
-
getBaseSiteService
protected de.hybris.platform.site.BaseSiteService getBaseSiteService() -
createConfigurationSummaryCacheKey
Description copied from interface:CacheKeyServiceCreates a cache key for the configuration summary cache region- Specified by:
createConfigurationSummaryCacheKeyin interfaceCacheKeyService- Parameters:
configId- identifier of the configuration summary- Returns:
- the created cache key
-
createClientAuthorizationDataCacheKey
Description copied from interface:CacheKeyServiceCreates a cache key for the client authorization data cache region where the base site is set externally- Specified by:
createClientAuthorizationDataCacheKeyin interfaceCacheKeyService- Parameters:
baseSite- base siteownerId- owner id- Returns:
- the created cache key
-
createClientAuthorizationDataCacheKey
Description copied from interface:CacheKeyServiceCreates a cache key for the client authorization data cache region- Specified by:
createClientAuthorizationDataCacheKeyin interfaceCacheKeyService- Parameters:
ownerId- owner id- Returns:
- the created cache key
-
createCookieCacheKey
Description copied from interface:CacheKeyServiceCreated a cache key for the session cookie cache region- Specified by:
createCookieCacheKeyin interfaceCacheKeyService- Parameters:
configId- identifier of the configuration- Returns:
- cache key
-
createConfigurationTabsCacheKey
Description copied from interface:CacheKeyServiceCreates a cache key for the configuration tabs cache region- Specified by:
createConfigurationTabsCacheKeyin interfaceCacheKeyService- Parameters:
configId- identifier of the configuration- Returns:
- the created cache key
-