Class SessionAccessServiceImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.impl.SessionAccessServiceImpl
-
- All Implemented Interfaces:
SessionAccessService
- Direct Known Subclasses:
DummySessionAccessService
public class SessionAccessServiceImpl extends java.lang.Object implements SessionAccessService
Default implementation ofSessionAccessService
-
-
Field Summary
-
Fields inherited from interface de.hybris.platform.sap.productconfig.services.SessionAccessService
PRODUCT_CONFIG_SESSION_ATTRIBUTE_CONTAINER
-
-
Constructor Summary
Constructors Constructor Description SessionAccessServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
ensureThatNotToManyConfigsAreCachedInSession()
protected java.util.List<java.lang.String>
findConfigIdInMap(java.lang.String configId, java.util.Map<java.lang.String,java.lang.String> sessionCartEntryConfigurations)
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)
insteadAnalyticsProvider
getAnalyticsProvider()
Deprecated, for removal: This API element is subject to removal in a future version.java.util.Map<java.lang.String,ClassificationSystemCPQAttributesContainer>
getCachedNameMap()
Deprecated, for removal: This API element is subject to removal in a future version.callProductConfigurationCacheAccessService#getCachedNameMap()
insteadprotected java.util.Map<java.lang.String,java.lang.String>
getCartEntryConfigCache()
protected java.util.Map<java.lang.String,java.lang.String>
getCartEntryDraftConfigCache()
java.lang.String
getCartEntryForConfigId(java.lang.String configId)
Retrieves cart entry key belonging to a specific config IDjava.lang.String
getCartEntryForDraftConfigId(java.lang.String configId)
get cart entry linked to the given draft configurationjava.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.java.lang.String
getConfigIdForCartEntry(java.lang.String cartEntryKey)
Retrieves config identifier from the session for a given cart entry keyjava.lang.String
getConfigIdForProduct(java.lang.String productCode)
Get the runtime configuration currently associated with the given productConfigModel
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)
insteadConfigurationProvider
getConfigurationProvider()
Deprecated, for removal: This API element is subject to removal in a future version.java.lang.String
getDraftConfigIdForCartEntry(java.lang.String cartEntryKey)
gets the config id linked as draft to the given cart entryprotected int
getMaxCachedConfigsInSession()
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)
insteadPricingProvider
getPricingProvider()
Deprecated, for removal: This API element is subject to removal in a future version.java.lang.String
getProductForConfigId(java.lang.String configId)
Get the product for the given runtime configuration idjava.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()}protected SessionService
getSessionService()
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 used<T> T
getUiStatusForCartEntry(java.lang.String cartEntryKey)
Retrieves object from the session for a given cart entry keyjava.lang.Object
getUiStatusForProduct(java.lang.String productKey)
Retrieves object from the session for a given cart entry keyprotected <T> T
getUiStatusFromSession(java.lang.String key, boolean forCart, java.lang.String traceMessage)
Retrieves UiStatus from sessionvoid
purge()
Purges the entire session (with regards to CPQ artifacts)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.protected void
removeConfigAttributesFromSessionCache(java.lang.String configId)
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)
insteadvoid
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 idvoid
removeConfigIdForCartEntry(java.lang.String cartEntryKey)
Removes config ID for cart entryvoid
removeConfigIdForProduct(java.lang.String pCode)
Removes the link between product code and runtime configurationvoid
removeDraftConfigIdForCartEntry(java.lang.String cartEntryKey)
Removes draft config ID for cart entryprotected void
removeProductRelatedSessionArtifacts(java.lang.String configId)
void
removeSessionArtifactsForCartEntry(java.lang.String cartEntryId)
Removes all session artifacts belonging to a cart entryvoid
removeUiStatusForCartEntry(java.lang.String cartEntryKey)
Removes object for a cart entryvoid
removeUiStatusForProduct(java.lang.String productKey)
Removes object for a productprotected void
removeUiStatusFromSession(java.lang.String key, boolean forCart, java.lang.String traceMessage)
Removes UiStatus object from sessionprotected ProductConfigSessionAttributeContainer
retrieveSessionAttributeContainer()
protected ProductConfigSessionAttributeContainer
retrieveSessionAttributeContainer(boolean createLazy)
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)
insteadvoid
setAnalyticsProvider(AnalyticsProvider analyticsProvider)
Deprecated, for removal: This API element is subject to removal in a future version.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.void
setConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)
Stores configuration ID for a cart entry key into the sessionvoid
setConfigIdForProduct(java.lang.String productCode, java.lang.String configId)
Links a product code with a given runtime configurationvoid
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, ConfigModel)
insteadvoid
setConfigurationProvider(ConfigurationProvider provider)
Deprecated, for removal: This API element is subject to removal in a future version.void
setDraftConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)
Stores darfat configuration ID for a cart entry key into the sessionvoid
setMaxCachedConfigsInSession(int maxCachedConfigsInSession)
Re-reading a configuration from the configuration engine can be expensive, especially for large configurations.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)
insteadvoid
setPricingProvider(PricingProvider provider)
Deprecated, for removal: This API element is subject to removal in a future version.void
setSessionService(SessionService sessionService)
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 usedvoid
setUiStatusForCartEntry(java.lang.String cartEntryKey, java.lang.Object uiStatus)
Stores object for a cart entry key into the sessionvoid
setUiStatusForProduct(java.lang.String productKey, java.lang.Object uiStatus)
Stores object for a product key into the sessionprotected void
setUiStatusIntoSession(java.lang.String key, java.lang.Object uiStatus, boolean forCart, java.lang.String traceMessage)
Puts UiStatus object into session
-
-
-
Method Detail
-
setSessionService
public void setSessionService(SessionService sessionService)
- Parameters:
sessionService
- the sessionService to set
-
getSessionId
@Deprecated(since="1811", forRemoval=true) public 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()}Description copied from interface:SessionAccessService
returns the unique session id- Specified by:
getSessionId
in interfaceSessionAccessService
- Returns:
- session id
-
setConfigIdForCartEntry
public void setConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)
Description copied from interface:SessionAccessService
Stores configuration ID for a cart entry key into the session- Specified by:
setConfigIdForCartEntry
in interfaceSessionAccessService
- Parameters:
cartEntryKey
- String representation of the cart entry primary keyconfigId
- ID of a runtime configuration object
-
getConfigIdForCartEntry
public java.lang.String getConfigIdForCartEntry(java.lang.String cartEntryKey)
Description copied from interface:SessionAccessService
Retrieves config identifier from the session for a given cart entry key- Specified by:
getConfigIdForCartEntry
in interfaceSessionAccessService
- Parameters:
cartEntryKey
- String representation of the cart entry primary key- Returns:
- ID of a runtime configuration object
-
getDraftConfigIdForCartEntry
public java.lang.String getDraftConfigIdForCartEntry(java.lang.String cartEntryKey)
Description copied from interface:SessionAccessService
gets the config id linked as draft to the given cart entry- Specified by:
getDraftConfigIdForCartEntry
in interfaceSessionAccessService
- Parameters:
cartEntryKey
- cart entry key- Returns:
- config Id
-
getUiStatusForCartEntry
public <T> T getUiStatusForCartEntry(java.lang.String cartEntryKey)
Description copied from interface:SessionAccessService
Retrieves object from the session for a given cart entry key- Specified by:
getUiStatusForCartEntry
in interfaceSessionAccessService
- Parameters:
cartEntryKey
- String representation of the cart entry primary key- Returns:
- ui status for cart entry
-
getUiStatusFromSession
protected <T> T getUiStatusFromSession(java.lang.String key, boolean forCart, java.lang.String traceMessage)
Retrieves UiStatus from session- Parameters:
key
- Key of object in mapforCart
- true for UI Statuses for cart entries, false for catalog productstraceMessage
- Post fix of the trace message which identifies the type of key- Returns:
- UiStatus
-
setUiStatusForCartEntry
public void setUiStatusForCartEntry(java.lang.String cartEntryKey, java.lang.Object uiStatus)
Description copied from interface:SessionAccessService
Stores object for a cart entry key into the session- Specified by:
setUiStatusForCartEntry
in interfaceSessionAccessService
- Parameters:
cartEntryKey
- String representation of the cart entry primary keyuiStatus
- ui status for cart entry
-
getUiStatusForProduct
public java.lang.Object getUiStatusForProduct(java.lang.String productKey)
Description copied from interface:SessionAccessService
Retrieves object from the session for a given cart entry key- Specified by:
getUiStatusForProduct
in interfaceSessionAccessService
- Parameters:
productKey
- Product key- Returns:
- ui status for product
-
setUiStatusForProduct
public void setUiStatusForProduct(java.lang.String productKey, java.lang.Object uiStatus)
Description copied from interface:SessionAccessService
Stores object for a product key into the session- Specified by:
setUiStatusForProduct
in interfaceSessionAccessService
- Parameters:
productKey
- Product keyuiStatus
- ui status for product
-
setUiStatusIntoSession
protected void setUiStatusIntoSession(java.lang.String key, java.lang.Object uiStatus, boolean forCart, java.lang.String traceMessage)
Puts UiStatus object into session- Parameters:
key
- Key for objectuiStatus
- The object we want to store in sessionforCart
- true for UI Statuses for cart entries, false for catalog productstraceMessage
- Post fix of the trace message which identifies the type of key
-
removeUiStatusForCartEntry
public void removeUiStatusForCartEntry(java.lang.String cartEntryKey)
Description copied from interface:SessionAccessService
Removes object for a cart entry- Specified by:
removeUiStatusForCartEntry
in interfaceSessionAccessService
- Parameters:
cartEntryKey
- String representation of the cart entry primary key
-
removeUiStatusFromSession
protected void removeUiStatusFromSession(java.lang.String key, boolean forCart, java.lang.String traceMessage)
Removes UiStatus object from session- Parameters:
key
- Key for objectforCart
- true for UI Statuses for cart entries, false for catalog productstraceMessage
- Post fix of the trace message which identifies the type of key
-
removeUiStatusForProduct
public void removeUiStatusForProduct(java.lang.String productKey)
Description copied from interface:SessionAccessService
Removes object for a product- Specified by:
removeUiStatusForProduct
in interfaceSessionAccessService
- Parameters:
productKey
- Product key
-
getCartEntryForConfigId
public java.lang.String getCartEntryForConfigId(java.lang.String configId)
Description copied from interface:SessionAccessService
Retrieves cart entry key belonging to a specific config ID- Specified by:
getCartEntryForConfigId
in interfaceSessionAccessService
- Parameters:
configId
- id of the configuration- Returns:
- String representation of the cart entry primary key
-
getCartEntryForDraftConfigId
public java.lang.String getCartEntryForDraftConfigId(java.lang.String configId)
Description copied from interface:SessionAccessService
get cart entry linked to the given draft configuration- Specified by:
getCartEntryForDraftConfigId
in interfaceSessionAccessService
- Parameters:
configId
- runtime configuration id- Returns:
- cartItemHandle
-
findConfigIdInMap
protected java.util.List<java.lang.String> findConfigIdInMap(java.lang.String configId, java.util.Map<java.lang.String,java.lang.String> sessionCartEntryConfigurations)
-
removeSessionArtifactsForCartEntry
public void removeSessionArtifactsForCartEntry(java.lang.String cartEntryId)
Description copied from interface:SessionAccessService
Removes all session artifacts belonging to a cart entry- Specified by:
removeSessionArtifactsForCartEntry
in interfaceSessionAccessService
- Parameters:
cartEntryId
- cart entry key
-
removeProductRelatedSessionArtifacts
protected void removeProductRelatedSessionArtifacts(java.lang.String configId)
-
removeConfigIdForCartEntry
public void removeConfigIdForCartEntry(java.lang.String cartEntryKey)
Description copied from interface:SessionAccessService
Removes config ID for cart entry- Specified by:
removeConfigIdForCartEntry
in interfaceSessionAccessService
- Parameters:
cartEntryKey
- cart entry key
-
getCartEntryConfigCache
protected java.util.Map<java.lang.String,java.lang.String> getCartEntryConfigCache()
- Returns:
- Map: Configuration ID's for cart entry
-
getCartEntryDraftConfigCache
protected java.util.Map<java.lang.String,java.lang.String> getCartEntryDraftConfigCache()
-
getCachedNameMap
@Deprecated(since="1811", forRemoval=true) public 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- Specified by:
getCachedNameMap
in interfaceSessionAccessService
- Returns:
- Map of names from the hybris classification system
- Since:
- 18.11.0
-
getSolrIndexedProperties
@Deprecated(since="1811", forRemoval=true) public 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 used- Specified by:
getSolrIndexedProperties
in interfaceSessionAccessService
- Returns:
- Set of indexed properties
-
setSolrIndexedProperties
@Deprecated(since="1811", forRemoval=true) public 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 usedDescription copied from interface:SessionAccessService
Stores set of indexed properties- Specified by:
setSolrIndexedProperties
in interfaceSessionAccessService
- Parameters:
solrTypes
- solr types to be stored
-
getConfigurationProvider
@Deprecated(since="1811", forRemoval=true) public ConfigurationProvider getConfigurationProvider()
Deprecated, for removal: This API element is subject to removal in a future version.* @deprecated since 18.11.0 - caching decision is moved toProviderFactory
- Specified by:
getConfigurationProvider
in interfaceSessionAccessService
- Returns:
- Configuration provider
-
setConfigurationProvider
@Deprecated(since="1811", forRemoval=true) public void setConfigurationProvider(ConfigurationProvider provider)
Deprecated, for removal: This API element is subject to removal in a future version.* @deprecated since 18.11.0 - caching decision is moved toProviderFactory
- Specified by:
setConfigurationProvider
in interfaceSessionAccessService
- Parameters:
provider
- provider to cache
-
getConfigurationModelEngineState
@Deprecated(since="1811", forRemoval=true) public 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)
insteadDescription copied from interface:SessionAccessService
Retrieves the configuration model engine state- Specified by:
getConfigurationModelEngineState
in interfaceSessionAccessService
- Parameters:
configId
- id of the configuration- Returns:
- Configuration model
-
setConfigurationModelEngineState
@Deprecated(since="1811", forRemoval=true) public 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, ConfigModel)
insteadDescription copied from interface:SessionAccessService
Puts the given config model into the engine state read cache- Specified by:
setConfigurationModelEngineState
in interfaceSessionAccessService
- Parameters:
configId
- unique config idconfigModel
- model to cache
-
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:SessionAccessService
Clears the read cache for the configuration engine state and price summary states for the whole user session- Specified by:
removeConfigAttributeStates
in interfaceSessionAccessService
-
retrieveSessionAttributeContainer
protected ProductConfigSessionAttributeContainer retrieveSessionAttributeContainer()
-
retrieveSessionAttributeContainer
protected ProductConfigSessionAttributeContainer retrieveSessionAttributeContainer(boolean createLazy)
-
setPricingProvider
@Deprecated(since="1811", forRemoval=true) public void setPricingProvider(PricingProvider provider)
Deprecated, for removal: This API element is subject to removal in a future version.* @deprecated since 18.11.0 - caching decision is moved toProviderFactory
- Specified by:
setPricingProvider
in interfaceSessionAccessService
- Parameters:
provider
- provider to cache
-
getPricingProvider
@Deprecated(since="1811", forRemoval=true) public PricingProvider getPricingProvider()
Deprecated, for removal: This API element is subject to removal in a future version.* @deprecated since 18.11.0 - caching decision is moved toProviderFactory
- Specified by:
getPricingProvider
in interfaceSessionAccessService
- Returns:
- Configuration provider
-
getPriceSummaryState
@Deprecated(since="1811", forRemoval=true) public 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)
insteadDescription copied from interface:SessionAccessService
Retrieves the price summary for a given runtime configuration, specified via its runtime id- Specified by:
getPriceSummaryState
in interfaceSessionAccessService
- Parameters:
configId
- id of the configuration- Returns:
- price summary model
-
setPriceSummaryState
@Deprecated(since="1811", forRemoval=true) public 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)
insteadDescription copied from interface:SessionAccessService
Puts the given price summary model into the price summary model state read cache- Specified by:
setPriceSummaryState
in interfaceSessionAccessService
- Parameters:
configId
- unique config idpriceSummaryModel
- model to cache
-
removeConfigAttributeState
@Deprecated(since="1811", forRemoval=true) public 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)
insteadDescription copied from interface:SessionAccessService
Removes the given configuration engine state and price summary model from read cache for engine state- Specified by:
removeConfigAttributeState
in interfaceSessionAccessService
- Parameters:
configId
- unique config id
-
setAnalyticsProvider
@Deprecated(since="1811", forRemoval=true) public void setAnalyticsProvider(AnalyticsProvider analyticsProvider)
Deprecated, for removal: This API element is subject to removal in a future version.* @deprecated since 18.11.0 - caching decision is moved toProviderFactory
- Specified by:
setAnalyticsProvider
in interfaceSessionAccessService
-
getAnalyticsProvider
@Deprecated(since="1811", forRemoval=true) public AnalyticsProvider getAnalyticsProvider()
Deprecated, for removal: This API element is subject to removal in a future version.* @deprecated since 18.11.0 - caching decision is moved toProviderFactory
- Specified by:
getAnalyticsProvider
in interfaceSessionAccessService
- Returns:
- return the cached analytics provider
-
setAnalyticData
@Deprecated(since="1811", forRemoval=true) public 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)
insteadDescription copied from interface:SessionAccessService
Sets analytic data into the cached map- Specified by:
setAnalyticData
in interfaceSessionAccessService
- Parameters:
configId
- id of the configurationanalyticsDocument
- analytics document to be stored
-
getAnalyticData
@Deprecated(since="1811", forRemoval=true) public 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)
insteadDescription copied from interface:SessionAccessService
Retrieves analytic data from the cached map- Specified by:
getAnalyticData
in interfaceSessionAccessService
- Parameters:
configId
- id of the configuration- Returns:
- anlytics document
-
purge
public void purge()
Description copied from interface:SessionAccessService
Purges the entire session (with regards to CPQ artifacts)- Specified by:
purge
in interfaceSessionAccessService
-
getMaxCachedConfigsInSession
protected int getMaxCachedConfigsInSession()
-
setMaxCachedConfigsInSession
public void setMaxCachedConfigsInSession(int maxCachedConfigsInSession)
Re-reading a configuration from the configuration engine can be expensive, especially for large configurations. This is only necessary when the configuration was updated since the last time being read. To make life for callers easier, this implementation features a simple read-cache for configurations based on the user session. So any calls to read configuration will always result in a cache hit until the configuration is updated.- Parameters:
maxCachedConfigsInSession
- set the maximum number of configs to be cached in the session. Default is 10.
-
ensureThatNotToManyConfigsAreCachedInSession
protected void ensureThatNotToManyConfigsAreCachedInSession()
-
removeConfigAttributesFromSessionCache
protected void removeConfigAttributesFromSessionCache(java.lang.String configId)
-
getSessionService
protected SessionService getSessionService()
-
getConfigIdForProduct
public java.lang.String getConfigIdForProduct(java.lang.String productCode)
Description copied from interface:SessionAccessService
Get the runtime configuration currently associated with the given product- Specified by:
getConfigIdForProduct
in interfaceSessionAccessService
- 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
-
setConfigIdForProduct
public void setConfigIdForProduct(java.lang.String productCode, java.lang.String configId)
Description copied from interface:SessionAccessService
Links a product code with a given runtime configuration- Specified by:
setConfigIdForProduct
in interfaceSessionAccessService
- Parameters:
productCode
- code of product, for which the link to the runtime configuration should be createdconfigId
- runtime configuration id
-
removeConfigIdForProduct
public void removeConfigIdForProduct(java.lang.String pCode)
Description copied from interface:SessionAccessService
Removes the link between product code and runtime configuration- Specified by:
removeConfigIdForProduct
in interfaceSessionAccessService
- Parameters:
pCode
- code of product, for which the link to the runtime configuration should be deleted
-
setCartEntryForProduct
@Deprecated(since="1808", forRemoval=true) public 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.Description copied from interface:SessionAccessService
Stores cart entry in session per product key- Specified by:
setCartEntryForProduct
in interfaceSessionAccessService
- Parameters:
productKey
- product keycartEntryId
- String representation of the cart entry primary key
-
getCartEntryForProduct
@Deprecated(since="1808", forRemoval=true) public 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.Description copied from interface:SessionAccessService
Retrieves cart entry key per product- Specified by:
getCartEntryForProduct
in interfaceSessionAccessService
- Parameters:
productKey
- product key- Returns:
- String representation of the cart entry primary key
-
removeCartEntryForProduct
@Deprecated(since="1808", forRemoval=true) public 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.Description copied from interface:SessionAccessService
Removes cart entry key for product- Specified by:
removeCartEntryForProduct
in interfaceSessionAccessService
- Parameters:
productKey
- product key
-
setDraftConfigIdForCartEntry
public void setDraftConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)
Description copied from interface:SessionAccessService
Stores darfat configuration ID for a cart entry key into the session- Specified by:
setDraftConfigIdForCartEntry
in interfaceSessionAccessService
- Parameters:
cartEntryKey
- String representation of the cart entry primary keyconfigId
- ID of a runtime configuration object
-
removeDraftConfigIdForCartEntry
public void removeDraftConfigIdForCartEntry(java.lang.String cartEntryKey)
Description copied from interface:SessionAccessService
Removes draft config ID for cart entry- Specified by:
removeDraftConfigIdForCartEntry
in interfaceSessionAccessService
- Parameters:
cartEntryKey
- cart entry key
-
getProductForConfigId
public java.lang.String getProductForConfigId(java.lang.String configId)
Description copied from interface:SessionAccessService
Get the product for the given runtime configuration id- Specified by:
getProductForConfigId
in interfaceSessionAccessService
- Parameters:
configId
- configuration id- Returns:
- product code if link is present, otherwise null
-
-