Interface SessionAccessService
-
- All Known Implementing Classes:
DummySessionAccessService,SessionAccessServiceImpl
public interface SessionAccessServiceAccessing the session to set and read product configuration related entities like UIStatus or runtime configuration ID per cart entry
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPRODUCT_CONFIG_SESSION_ATTRIBUTE_CONTAINERcache key of product configuration cache container
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description AnalyticsDocumentgetAnalyticData(java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.getAnalyticData(String)insteadAnalyticsProvidergetAnalyticsProvider()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactoryjava.util.Map<java.lang.String,ClassificationSystemCPQAttributesContainer>getCachedNameMap()Deprecated, for removal: This API element is subject to removal in a future version.callProductConfigurationCacheAccessService#getCachedNameMap()insteadjava.lang.StringgetCartEntryForConfigId(java.lang.String configId)Retrieves cart entry key belonging to a specific config IDjava.lang.StringgetCartEntryForDraftConfigId(java.lang.String configId)get cart entry linked to the given draft configurationjava.lang.StringgetCartEntryForProduct(java.lang.String productKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - only link cart entries to configs and configs to products, no direct linking.java.lang.StringgetConfigIdForCartEntry(java.lang.String cartEntryKey)Retrieves config identifier from the session for a given cart entry keyjava.lang.StringgetConfigIdForProduct(java.lang.String productCode)Get the runtime configuration currently associated with the given productConfigModelgetConfigurationModelEngineState(java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.getConfigurationModelEngineState(String)insteadConfigurationProvidergetConfigurationProvider()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactoryjava.lang.StringgetDraftConfigIdForCartEntry(java.lang.String cartEntryKey)gets the config id linked as draft to the given cart entryPriceSummaryModelgetPriceSummaryState(java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.getPriceSummaryState(String)insteadPricingProvidergetPricingProvider()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactoryjava.lang.StringgetProductForConfigId(java.lang.String configId)Get the product for the given runtime configuration idjava.lang.StringgetSessionId()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - call {@link SessionService#getCurrentSession()#getSessionId()}java.util.Set<java.lang.String>getSolrIndexedProperties()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - no longer cached<T> TgetUiStatusForCartEntry(java.lang.String cartEntryKey)Retrieves object from the session for a given cart entry key<T> TgetUiStatusForProduct(java.lang.String productKey)Retrieves object from the session for a given cart entry keyvoidpurge()Purges the entire session (with regards to CPQ artifacts)voidremoveCartEntryForProduct(java.lang.String productKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - only link cart entries to configs and configs to products, no direct linking.voidremoveConfigAttributeState(java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.removeConfigAttributeState(String)insteadvoidremoveConfigAttributeStates()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 idvoidremoveConfigIdForCartEntry(java.lang.String cartEntryKey)Removes config ID for cart entryvoidremoveConfigIdForProduct(java.lang.String productCode)Removes the link between product code and runtime configurationvoidremoveDraftConfigIdForCartEntry(java.lang.String cartEntryKey)Removes draft config ID for cart entryvoidremoveSessionArtifactsForCartEntry(java.lang.String cartEntryId)Removes all session artifacts belonging to a cart entryvoidremoveUiStatusForCartEntry(java.lang.String cartEntryKey)Removes object for a cart entryvoidremoveUiStatusForProduct(java.lang.String productKey)Removes object for a productvoidsetAnalyticData(java.lang.String configId, AnalyticsDocument analyticsDocument)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.setAnalyticData(String, AnalyticsDocument)insteadvoidsetAnalyticsProvider(AnalyticsProvider analyticsProvider)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactoryvoidsetCartEntryForProduct(java.lang.String productKey, java.lang.String cartEntryId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - only link cart entries to configs and configs to products, no direct linking.voidsetConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)Stores configuration ID for a cart entry key into the sessionvoidsetConfigIdForProduct(java.lang.String productCode, java.lang.String configId)Links a product code with a given runtime configurationvoidsetConfigurationModelEngineState(java.lang.String configId, ConfigModel configModel)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService#setConfigurationModelEngineState(String)insteadvoidsetConfigurationProvider(ConfigurationProvider provider)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactoryvoidsetDraftConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)Stores darfat configuration ID for a cart entry key into the sessionvoidsetPriceSummaryState(java.lang.String configId, PriceSummaryModel priceSummaryModel)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.setPriceSummaryState(String, PriceSummaryModel )insteadvoidsetPricingProvider(PricingProvider provider)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactoryvoidsetSolrIndexedProperties(java.util.Set<java.lang.String> solrTypes)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - no longer cachedvoidsetUiStatusForCartEntry(java.lang.String cartEntryKey, java.lang.Object uiStatus)Stores object for a cart entry key into the sessionvoidsetUiStatusForProduct(java.lang.String productKey, java.lang.Object uiStatus)Stores object for a product key into the session
-
-
-
Field Detail
-
PRODUCT_CONFIG_SESSION_ATTRIBUTE_CONTAINER
static final java.lang.String PRODUCT_CONFIG_SESSION_ATTRIBUTE_CONTAINER
cache key of product configuration cache container- See Also:
- Constant Field Values
-
-
Method Detail
-
getSessionId
@Deprecated(since="1811", forRemoval=true) java.lang.String getSessionId()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - call {@link SessionService#getCurrentSession()#getSessionId()}returns the unique session id- Returns:
- session id
-
setConfigIdForCartEntry
void setConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)Stores configuration ID for a cart entry key into the session- Parameters:
cartEntryKey- String representation of the cart entry primary keyconfigId- ID of a runtime configuration object
-
getConfigIdForCartEntry
java.lang.String getConfigIdForCartEntry(java.lang.String cartEntryKey)
Retrieves config identifier from the session for a given cart entry key- Parameters:
cartEntryKey- String representation of the cart entry primary key- Returns:
- ID of a runtime configuration object
-
getUiStatusForCartEntry
<T> T getUiStatusForCartEntry(java.lang.String cartEntryKey)
Retrieves object from the session for a given cart entry key- Parameters:
cartEntryKey- String representation of the cart entry primary key- Returns:
- ui status for cart entry
-
getUiStatusForProduct
<T> T getUiStatusForProduct(java.lang.String productKey)
Retrieves object from the session for a given cart entry key- Parameters:
productKey- Product key- Returns:
- ui status for product
-
setUiStatusForCartEntry
void setUiStatusForCartEntry(java.lang.String cartEntryKey, java.lang.Object uiStatus)Stores object for a cart entry key into the session- Parameters:
cartEntryKey- String representation of the cart entry primary keyuiStatus- ui status for cart entry
-
setUiStatusForProduct
void setUiStatusForProduct(java.lang.String productKey, java.lang.Object uiStatus)Stores object for a product key into the session- Parameters:
productKey- Product keyuiStatus- ui status for product
-
removeUiStatusForCartEntry
void removeUiStatusForCartEntry(java.lang.String cartEntryKey)
Removes object for a cart entry- Parameters:
cartEntryKey- String representation of the cart entry primary key
-
removeUiStatusForProduct
void removeUiStatusForProduct(java.lang.String productKey)
Removes object for a product- Parameters:
productKey- Product key
-
getCartEntryForConfigId
java.lang.String getCartEntryForConfigId(java.lang.String configId)
Retrieves cart entry key belonging to a specific config ID- Parameters:
configId- id of the configuration- Returns:
- String representation of the cart entry primary key
-
setCartEntryForProduct
@Deprecated(since="1808", forRemoval=true) void setCartEntryForProduct(java.lang.String productKey, java.lang.String cartEntryId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - only link cart entries to configs and configs to products, no direct linking.Stores cart entry in session per product key- Parameters:
productKey- product keycartEntryId- String representation of the cart entry primary key
-
getCartEntryForProduct
@Deprecated(since="1808", forRemoval=true) java.lang.String getCartEntryForProduct(java.lang.String productKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - only link cart entries to configs and configs to products, no direct linking.Retrieves cart entry key per product- Parameters:
productKey- product key- Returns:
- String representation of the cart entry primary key
-
removeCartEntryForProduct
@Deprecated(since="1808", forRemoval=true) void removeCartEntryForProduct(java.lang.String productKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - only link cart entries to configs and configs to products, no direct linking.Removes cart entry key for product- Parameters:
productKey- product key
-
removeConfigIdForCartEntry
void removeConfigIdForCartEntry(java.lang.String cartEntryKey)
Removes config ID for cart entry- Parameters:
cartEntryKey- cart entry key
-
removeSessionArtifactsForCartEntry
void removeSessionArtifactsForCartEntry(java.lang.String cartEntryId)
Removes all session artifacts belonging to a cart entry- Parameters:
cartEntryId- cart entry keyproductKey- product key
-
getCachedNameMap
@Deprecated(since="1811", forRemoval=true) java.util.Map<java.lang.String,ClassificationSystemCPQAttributesContainer> getCachedNameMap()Deprecated, for removal: This API element is subject to removal in a future version.callProductConfigurationCacheAccessService#getCachedNameMap()instead- Returns:
- Map of names from the hybris classification system
- Since:
- 18.11.0
-
getSolrIndexedProperties
@Deprecated(since="1811", forRemoval=true) java.util.Set<java.lang.String> getSolrIndexedProperties()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - no longer cached- Returns:
- Set of indexed properties
-
setSolrIndexedProperties
@Deprecated(since="1811", forRemoval=true) void setSolrIndexedProperties(java.util.Set<java.lang.String> solrTypes)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - no longer cachedStores set of indexed properties- Parameters:
solrTypes- solr types to be stored
-
getConfigurationProvider
@Deprecated(since="1811", forRemoval=true) ConfigurationProvider getConfigurationProvider()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactoryget the configuration provider for this session- Returns:
- Configuration provider
-
setPricingProvider
@Deprecated(since="1811", forRemoval=true) void setPricingProvider(PricingProvider provider)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactorycache the pricing provider in this session- Parameters:
provider- provider to cache
-
getPricingProvider
@Deprecated(since="1811", forRemoval=true) PricingProvider getPricingProvider()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactoryget the pricing provider for this session- Returns:
- Configuration provider
-
setConfigurationProvider
@Deprecated(since="1811", forRemoval=true) void setConfigurationProvider(ConfigurationProvider provider)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactorycache the pricing provider in this session- Parameters:
provider- provider to cache
-
getConfigurationModelEngineState
@Deprecated(since="1811", forRemoval=true) ConfigModel getConfigurationModelEngineState(java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.getConfigurationModelEngineState(String)insteadRetrieves the configuration model engine state- Parameters:
configId- id of the configuration- Returns:
- Configuration model
-
setConfigurationModelEngineState
@Deprecated(since="1811", forRemoval=true) void setConfigurationModelEngineState(java.lang.String configId, ConfigModel configModel)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService#setConfigurationModelEngineState(String)insteadPuts the given config model into the engine state read cache- Parameters:
configId- unique config idconfigModel- model to cache
-
removeConfigAttributeStates
@Deprecated(since="1811", forRemoval=true) 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 idClears the read cache for the configuration engine state and price summary states for the whole user session
-
getPriceSummaryState
@Deprecated(since="1811", forRemoval=true) PriceSummaryModel getPriceSummaryState(java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.getPriceSummaryState(String)insteadRetrieves the price summary for a given runtime configuration, specified via its runtime id- Parameters:
configId- id of the configuration- Returns:
- price summary model
-
setPriceSummaryState
@Deprecated(since="1811", forRemoval=true) void setPriceSummaryState(java.lang.String configId, PriceSummaryModel priceSummaryModel)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.setPriceSummaryState(String, PriceSummaryModel )insteadPuts the given price summary model into the price summary model state read cache- Parameters:
configId- unique config idpriceSummaryModel- model to cache
-
setAnalyticsProvider
@Deprecated(since="1811", forRemoval=true) void setAnalyticsProvider(AnalyticsProvider analyticsProvider)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactoryPuts the given analytics provider into the cached- Parameters:
analyticsProvider-
-
removeConfigAttributeState
@Deprecated(since="1811", forRemoval=true) void removeConfigAttributeState(java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.removeConfigAttributeState(String)insteadRemoves the given configuration engine state and price summary model from read cache for engine state- Parameters:
configId- unique config id
-
getAnalyticsProvider
@Deprecated(since="1811", forRemoval=true) AnalyticsProvider getAnalyticsProvider()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - caching decision is moved toProviderFactoryRetrieves an analytics provider from the cached map- Returns:
- return the cached analytics provider
-
setAnalyticData
@Deprecated(since="1811", forRemoval=true) void setAnalyticData(java.lang.String configId, AnalyticsDocument analyticsDocument)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.setAnalyticData(String, AnalyticsDocument)insteadSets analytic data into the cached map- Parameters:
configId- id of the configurationanalyticsDocument- analytics document to be stored
-
getAnalyticData
@Deprecated(since="1811", forRemoval=true) AnalyticsDocument getAnalyticData(java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - callProductConfigurationCacheAccessService.getAnalyticData(String)insteadRetrieves analytic data from the cached map- Parameters:
configId- id of the configuration- Returns:
- anlytics document
-
purge
void purge()
Purges the entire session (with regards to CPQ artifacts)
-
getConfigIdForProduct
java.lang.String getConfigIdForProduct(java.lang.String productCode)
Get the runtime configuration currently associated with the given product- Parameters:
productCode- code of product, for which the link to the runtime configuration should be returned- Returns:
- runtime configuration id that is currently linked to the given product
-
getProductForConfigId
java.lang.String getProductForConfigId(java.lang.String configId)
Get the product for the given runtime configuration id- Parameters:
configId- configuration id- Returns:
- product code if link is present, otherwise null
-
setConfigIdForProduct
void setConfigIdForProduct(java.lang.String productCode, java.lang.String configId)Links a product code with a given runtime configuration- Parameters:
productCode- code of product, for which the link to the runtime configuration should be createdconfigId- runtime configuration id
-
removeConfigIdForProduct
void removeConfigIdForProduct(java.lang.String productCode)
Removes the link between product code and runtime configuration- Parameters:
productCode- code of product, for which the link to the runtime configuration should be deleted
-
getCartEntryForDraftConfigId
java.lang.String getCartEntryForDraftConfigId(java.lang.String configId)
get cart entry linked to the given draft configuration- Parameters:
configId- runtime configuration id- Returns:
- cartItemHandle
-
getDraftConfigIdForCartEntry
java.lang.String getDraftConfigIdForCartEntry(java.lang.String cartEntryKey)
gets the config id linked as draft to the given cart entry- Parameters:
cartEntryKey- cart entry key- Returns:
- config Id
-
setDraftConfigIdForCartEntry
void setDraftConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)Stores darfat configuration ID for a cart entry key into the session- Parameters:
cartEntryKey- String representation of the cart entry primary keyconfigId- ID of a runtime configuration object
-
removeDraftConfigIdForCartEntry
void removeDraftConfigIdForCartEntry(java.lang.String cartEntryKey)
Removes draft config ID for cart entry- Parameters:
cartEntryKey- cart entry key
-
-