Class SessionAccessFacadeImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.facades.impl.SessionAccessFacadeImpl
-
- All Implemented Interfaces:
SessionAccessFacade
- Direct Known Subclasses:
DummySessionAccessFacade
public class SessionAccessFacadeImpl extends java.lang.Object implements SessionAccessFacade
Default implementation ofSessionAccessFacade
-
-
Constructor Summary
Constructors Constructor Description SessionAccessFacadeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected ConfigurationAbstractOrderEntryLinkStrategygetAbstractOrderEntryLinkStrategy()java.lang.StringgetCartEntryForConfigId(java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - callConfigurationAbstractOrderEntryLinkStrategy.getCartEntryForConfigId(String)insteadjava.lang.StringgetCartEntryForProduct(java.lang.String productKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - callConfigurationAbstractOrderEntryLinkStrategy.getConfigIdForCartEntry(String)and thenConfigurationAbstractOrderEntryLinkStrategy.getCartEntryForConfigId(String)insteadjava.lang.StringgetConfigIdForCartEntry(java.lang.String cartEntryKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - callConfigurationAbstractOrderEntryLinkStrategy.getConfigIdForCartEntry(String)insteadprotected ConfigurationModelCacheStrategygetConfigModelCacheStrategy()ConfigModelgetConfigurationModelEngineState(java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - callConfigurationModelCacheStrategy.getConfigurationModelEngineState(String)insteadprotected SessionAccessServicegetSessionAccessService()java.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()} instead<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 keyvoidremoveCartEntryForProduct(java.lang.String productKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - do not link cart entry and product diretly.voidremoveConfigIdForCartEntry(java.lang.String cartEntryKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - callConfigurationAbstractOrderEntryLinkStrategy.removeConfigIdForCartEntry(String)insteadvoidremoveUiStatusForCartEntry(java.lang.String cartEntryKey)Removes object for a cart entryvoidremoveUiStatusForProduct(java.lang.String productKey)Removes object for a productvoidsetAbstractOrderEntryLinkStrategy(ConfigurationAbstractOrderEntryLinkStrategy configurationAbstractOrderEntryLinkStrategy)voidsetCartEntryForProduct(java.lang.String productKey, java.lang.String cartEntryKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - do not link cart entry and product diretly.voidsetConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - callConfigurationAbstractOrderEntryLinkStrategy.setConfigIdForCartEntry(String, String)insteadvoidsetConfigModelCacheStrategy(ConfigurationModelCacheStrategy configModelCacheStrategy)voidsetSessionAccessService(SessionAccessService sessionAccessService)voidsetUiStatusForCartEntry(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
-
-
-
Method Detail
-
setConfigIdForCartEntry
@Deprecated(since="1808", forRemoval=true) public void setConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - callConfigurationAbstractOrderEntryLinkStrategy.setConfigIdForCartEntry(String, String)insteadDescription copied from interface:SessionAccessFacadeStores configuration ID for a cart entry key into the session- Specified by:
setConfigIdForCartEntryin interfaceSessionAccessFacade- Parameters:
cartEntryKey- String representation of the cart entry primary keyconfigId- ID of a runtime configuration object
-
getConfigIdForCartEntry
@Deprecated(since="1808", forRemoval=true) public java.lang.String getConfigIdForCartEntry(java.lang.String cartEntryKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - callConfigurationAbstractOrderEntryLinkStrategy.getConfigIdForCartEntry(String)insteadDescription copied from interface:SessionAccessFacadeRetrieves configuration identifier from the session for a given cart entry key- Specified by:
getConfigIdForCartEntryin interfaceSessionAccessFacade- Parameters:
cartEntryKey- String representation of the cart entry primary key- Returns:
- ID of a runtime configuration object
-
getUiStatusForCartEntry
public <T> T getUiStatusForCartEntry(java.lang.String cartEntryKey)
Description copied from interface:SessionAccessFacadeRetrieves object from the session for a given cart entry key- Specified by:
getUiStatusForCartEntryin interfaceSessionAccessFacade- Parameters:
cartEntryKey- String representation of the cart entry primary key- Returns:
- T which represents the UiStatus
-
setUiStatusForCartEntry
public void setUiStatusForCartEntry(java.lang.String cartEntryKey, java.lang.Object uiStatus)Description copied from interface:SessionAccessFacadeStores object for a cart entry key into the session- Specified by:
setUiStatusForCartEntryin interfaceSessionAccessFacade- Parameters:
cartEntryKey- String representation of the cart entry primary keyuiStatus- the status of the UI
-
setUiStatusForProduct
public void setUiStatusForProduct(java.lang.String productKey, java.lang.Object uiStatus)Description copied from interface:SessionAccessFacadeStores object for a product key into the session- Specified by:
setUiStatusForProductin interfaceSessionAccessFacade- Parameters:
productKey- Product keyuiStatus- the status of the UI
-
getUiStatusForProduct
public <T> T getUiStatusForProduct(java.lang.String productKey)
Description copied from interface:SessionAccessFacadeRetrieves object from the session for a given cart entry key- Specified by:
getUiStatusForProductin interfaceSessionAccessFacade- Parameters:
productKey- Product key- Returns:
- T which represents the UiStatus
-
removeUiStatusForCartEntry
public void removeUiStatusForCartEntry(java.lang.String cartEntryKey)
Description copied from interface:SessionAccessFacadeRemoves object for a cart entry- Specified by:
removeUiStatusForCartEntryin interfaceSessionAccessFacade- Parameters:
cartEntryKey- String representation of the cart entry primary key
-
removeUiStatusForProduct
public void removeUiStatusForProduct(java.lang.String productKey)
Description copied from interface:SessionAccessFacadeRemoves object for a product- Specified by:
removeUiStatusForProductin interfaceSessionAccessFacade- Parameters:
productKey- Product key
-
getCartEntryForConfigId
@Deprecated(since="1808", forRemoval=true) public java.lang.String getCartEntryForConfigId(java.lang.String configId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - callConfigurationAbstractOrderEntryLinkStrategy.getCartEntryForConfigId(String)insteadDescription copied from interface:SessionAccessFacadeRetrieves cart entry key belonging to a specific config ID- Specified by:
getCartEntryForConfigIdin interfaceSessionAccessFacade- Parameters:
configId- ID of the configuration- Returns:
- String representation of the cart entry primary key
-
setCartEntryForProduct
@Deprecated(since="1808", forRemoval=true) public void setCartEntryForProduct(java.lang.String productKey, java.lang.String cartEntryKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - do not link cart entry and product diretly. always link and read via aconfig id.Description copied from interface:SessionAccessFacadeStores cart entry in session per product key- Specified by:
setCartEntryForProductin interfaceSessionAccessFacade- Parameters:
productKey- product keycartEntryKey- 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 - callConfigurationAbstractOrderEntryLinkStrategy.getConfigIdForCartEntry(String)and thenConfigurationAbstractOrderEntryLinkStrategy.getCartEntryForConfigId(String)insteadDescription copied from interface:SessionAccessFacadeRetrieves cart entry key per product- Specified by:
getCartEntryForProductin interfaceSessionAccessFacade- 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 - do not link cart entry and product diretly. always link and read via aconfig id.Description copied from interface:SessionAccessFacadeRemoves cart entry key for product- Specified by:
removeCartEntryForProductin interfaceSessionAccessFacade- Parameters:
productKey- product key
-
removeConfigIdForCartEntry
@Deprecated(since="1808", forRemoval=true) public void removeConfigIdForCartEntry(java.lang.String cartEntryKey)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08.0 - callConfigurationAbstractOrderEntryLinkStrategy.removeConfigIdForCartEntry(String)insteadDescription copied from interface:SessionAccessFacadeRemoves configuration ID for cart entry- Specified by:
removeConfigIdForCartEntryin interfaceSessionAccessFacade- Parameters:
cartEntryKey- key of the cart entry
-
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()} insteadDescription copied from interface:SessionAccessFacadeRetrieves current session id- Specified by:
getSessionIdin interfaceSessionAccessFacade- Returns:
- session id of the current session
-
getConfigurationModelEngineState
@Deprecated(since="1808", 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.08.0 - callConfigurationModelCacheStrategy.getConfigurationModelEngineState(String)insteadDescription copied from interface:SessionAccessFacadeRetrieves configModel from the session cache for a given configId- Specified by:
getConfigurationModelEngineStatein interfaceSessionAccessFacade- Parameters:
configId- ID of the configuration- Returns:
- configuration model
-
getAbstractOrderEntryLinkStrategy
protected ConfigurationAbstractOrderEntryLinkStrategy getAbstractOrderEntryLinkStrategy()
-
setAbstractOrderEntryLinkStrategy
public void setAbstractOrderEntryLinkStrategy(ConfigurationAbstractOrderEntryLinkStrategy configurationAbstractOrderEntryLinkStrategy)
-
setSessionAccessService
public void setSessionAccessService(SessionAccessService sessionAccessService)
- Parameters:
sessionAccessService- injects the underlying session access service
-
getSessionAccessService
protected SessionAccessService getSessionAccessService()
-
getConfigModelCacheStrategy
protected ConfigurationModelCacheStrategy getConfigModelCacheStrategy()
-
setConfigModelCacheStrategy
public void setConfigModelCacheStrategy(ConfigurationModelCacheStrategy configModelCacheStrategy)
-
-