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 voidensureThatNotToManyConfigsAreCachedInSession()protected java.util.List<java.lang.String>findConfigIdInMap(java.lang.String configId, java.util.Map<java.lang.String,java.lang.String> sessionCartEntryConfigurations)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.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.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.java.lang.StringgetDraftConfigIdForCartEntry(java.lang.String cartEntryKey)gets the config id linked as draft to the given cart entryprotected intgetMaxCachedConfigsInSession()PriceSummaryModelgetPriceSummaryState(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.java.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()}protected SessionServicegetSessionService()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> TgetUiStatusForCartEntry(java.lang.String cartEntryKey)Retrieves object from the session for a given cart entry keyjava.lang.ObjectgetUiStatusForProduct(java.lang.String productKey)Retrieves object from the session for a given cart entry keyprotected <T> TgetUiStatusFromSession(java.lang.String key, boolean forCart, java.lang.String traceMessage)Retrieves UiStatus from sessionvoidpurge()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.protected voidremoveConfigAttributesFromSessionCache(java.lang.String configId)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 pCode)Removes the link between product code and runtime configurationvoidremoveDraftConfigIdForCartEntry(java.lang.String cartEntryKey)Removes draft config ID for cart entryprotected voidremoveProductRelatedSessionArtifacts(java.lang.String configId)voidremoveSessionArtifactsForCartEntry(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 productprotected voidremoveUiStatusFromSession(java.lang.String key, boolean forCart, java.lang.String traceMessage)Removes UiStatus object from sessionprotected ProductConfigSessionAttributeContainerretrieveSessionAttributeContainer()protected ProductConfigSessionAttributeContainerretrieveSessionAttributeContainer(boolean createLazy)voidsetAnalyticData(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.voidsetCartEntryForProduct(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, ConfigModel)insteadvoidsetConfigurationProvider(ConfigurationProvider provider)Deprecated, for removal: This API element is subject to removal in a future version.voidsetDraftConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)Stores darfat configuration ID for a cart entry key into the sessionvoidsetMaxCachedConfigsInSession(int maxCachedConfigsInSession)Re-reading a configuration from the configuration engine can be expensive, especially for large configurations.voidsetPriceSummaryState(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.voidsetSessionService(SessionService sessionService)voidsetSolrIndexedProperties(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 usedvoidsetUiStatusForCartEntry(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 sessionprotected voidsetUiStatusIntoSession(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:SessionAccessServicereturns the unique session id- Specified by:
getSessionIdin interfaceSessionAccessService- Returns:
- session id
-
setConfigIdForCartEntry
public void setConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)Description copied from interface:SessionAccessServiceStores configuration ID for a cart entry key into the session- Specified by:
setConfigIdForCartEntryin 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:SessionAccessServiceRetrieves config identifier from the session for a given cart entry key- Specified by:
getConfigIdForCartEntryin 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:SessionAccessServicegets the config id linked as draft to the given cart entry- Specified by:
getDraftConfigIdForCartEntryin interfaceSessionAccessService- Parameters:
cartEntryKey- cart entry key- Returns:
- config Id
-
getUiStatusForCartEntry
public <T> T getUiStatusForCartEntry(java.lang.String cartEntryKey)
Description copied from interface:SessionAccessServiceRetrieves object from the session for a given cart entry key- Specified by:
getUiStatusForCartEntryin 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:SessionAccessServiceStores object for a cart entry key into the session- Specified by:
setUiStatusForCartEntryin 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:SessionAccessServiceRetrieves object from the session for a given cart entry key- Specified by:
getUiStatusForProductin 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:SessionAccessServiceStores object for a product key into the session- Specified by:
setUiStatusForProductin 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:SessionAccessServiceRemoves object for a cart entry- Specified by:
removeUiStatusForCartEntryin 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:SessionAccessServiceRemoves object for a product- Specified by:
removeUiStatusForProductin interfaceSessionAccessService- Parameters:
productKey- Product key
-
getCartEntryForConfigId
public java.lang.String getCartEntryForConfigId(java.lang.String configId)
Description copied from interface:SessionAccessServiceRetrieves cart entry key belonging to a specific config ID- Specified by:
getCartEntryForConfigIdin 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:SessionAccessServiceget cart entry linked to the given draft configuration- Specified by:
getCartEntryForDraftConfigIdin 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:SessionAccessServiceRemoves all session artifacts belonging to a cart entry- Specified by:
removeSessionArtifactsForCartEntryin 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:SessionAccessServiceRemoves config ID for cart entry- Specified by:
removeConfigIdForCartEntryin 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:
getCachedNameMapin 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:
getSolrIndexedPropertiesin 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:SessionAccessServiceStores set of indexed properties- Specified by:
setSolrIndexedPropertiesin 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:
getConfigurationProviderin 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:
setConfigurationProviderin 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:SessionAccessServiceRetrieves the configuration model engine state- Specified by:
getConfigurationModelEngineStatein 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:SessionAccessServicePuts the given config model into the engine state read cache- Specified by:
setConfigurationModelEngineStatein 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:SessionAccessServiceClears the read cache for the configuration engine state and price summary states for the whole user session- Specified by:
removeConfigAttributeStatesin 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:
setPricingProviderin 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:
getPricingProviderin 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:SessionAccessServiceRetrieves the price summary for a given runtime configuration, specified via its runtime id- Specified by:
getPriceSummaryStatein 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:SessionAccessServicePuts the given price summary model into the price summary model state read cache- Specified by:
setPriceSummaryStatein 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:SessionAccessServiceRemoves the given configuration engine state and price summary model from read cache for engine state- Specified by:
removeConfigAttributeStatein 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:
setAnalyticsProviderin 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:
getAnalyticsProviderin 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:SessionAccessServiceSets analytic data into the cached map- Specified by:
setAnalyticDatain 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:SessionAccessServiceRetrieves analytic data from the cached map- Specified by:
getAnalyticDatain interfaceSessionAccessService- Parameters:
configId- id of the configuration- Returns:
- anlytics document
-
purge
public void purge()
Description copied from interface:SessionAccessServicePurges the entire session (with regards to CPQ artifacts)- Specified by:
purgein 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:SessionAccessServiceGet the runtime configuration currently associated with the given product- Specified by:
getConfigIdForProductin 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:SessionAccessServiceLinks a product code with a given runtime configuration- Specified by:
setConfigIdForProductin 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:SessionAccessServiceRemoves the link between product code and runtime configuration- Specified by:
removeConfigIdForProductin 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:SessionAccessServiceStores cart entry in session per product key- Specified by:
setCartEntryForProductin 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:SessionAccessServiceRetrieves cart entry key per product- Specified by:
getCartEntryForProductin 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:SessionAccessServiceRemoves cart entry key for product- Specified by:
removeCartEntryForProductin interfaceSessionAccessService- Parameters:
productKey- product key
-
setDraftConfigIdForCartEntry
public void setDraftConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)Description copied from interface:SessionAccessServiceStores darfat configuration ID for a cart entry key into the session- Specified by:
setDraftConfigIdForCartEntryin 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:SessionAccessServiceRemoves draft config ID for cart entry- Specified by:
removeDraftConfigIdForCartEntryin interfaceSessionAccessService- Parameters:
cartEntryKey- cart entry key
-
getProductForConfigId
public java.lang.String getProductForConfigId(java.lang.String configId)
Description copied from interface:SessionAccessServiceGet the product for the given runtime configuration id- Specified by:
getProductForConfigIdin interfaceSessionAccessService- Parameters:
configId- configuration id- Returns:
- product code if link is present, otherwise null
-
-