public interface SessionAccessService
| Modifier and Type | Field and Description |
|---|---|
static String |
PRODUCT_CONFIG_SESSION_ATTRIBUTE_CONTAINER |
| Modifier and Type | Method and Description |
|---|---|
Map<String,ClassificationSystemCPQAttributesContainer> |
getCachedNameMap() |
String |
getCartEntryForConfigId(String configId)
Retrieves cart entry key belonging to a specific config ID
|
String |
getCartEntryForProduct(String productKey)
Retrieves cart entry key per product
|
String |
getConfigIdForCartEntry(String cartEntryKey)
Retrieves config identifier from the session for a given cart entry key
|
ConfigModel |
getConfigurationModelEngineState(String configId) |
ConfigurationProvider |
getConfigurationProvider()
get the configuration provider for this session
|
String |
getSessionId()
returns the unique session id
|
Set<String> |
getSolrIndexedProperties() |
<T> T |
getUiStatusForCartEntry(String cartEntryKey)
Retrieves object from the session for a given cart entry key
|
<T> T |
getUiStatusForProduct(String productKey)
Retrieves object from the session for a given cart entry key
|
void |
removeCartEntryForProduct(String productKey)
Removes cart entry key for product
|
void |
removeConfigIdForCartEntry(String cartEntryKey)
Removes config ID for cart entry
|
void |
removeConfigurationModelEngineState(String configId)
Removes the given configuration from read cache for engine state
|
void |
removeConfigurationModelEngineStates()
Clears the read cache for the configuration engine state for the whole user session
|
void |
removeSessionArtifactsForCartEntry(String cartEntryId,
String productKey)
Removes all session artifacts belonging to a cart entry
|
void |
removeUiStatusForCartEntry(String cartEntryKey)
Removes object for a cart entry
|
void |
removeUiStatusForProduct(String productKey)
Removes object for a product
|
void |
setCartEntryForProduct(String productKey,
String cartEntryId)
Stores cart entry in session per product key
|
void |
setConfigIdForCartEntry(String cartEntryKey,
String configId)
Stores configuration ID for a cart entry key into the session
|
void |
setConfigurationModelEngineState(String configId,
ConfigModel configModel)
Puts the given config model into the engine state read cache
|
void |
setConfigurationProvider(ConfigurationProvider provider)
cache the configuration provider in this session
|
void |
setSolrIndexedProperties(Set<String> solrTypes)
Stores set of indexed properties
|
void |
setUiStatusForCartEntry(String cartEntryKey,
Object uiStatus)
Stores object for a cart entry key into the session
|
void |
setUiStatusForProduct(String productKey,
Object uiStatus)
Stores object for a product key into the session
|
static final String PRODUCT_CONFIG_SESSION_ATTRIBUTE_CONTAINER
String getSessionId()
void setConfigIdForCartEntry(String cartEntryKey, String configId)
cartEntryKey - String representation of the cart entry primary keyconfigId - ID of a runtime configuration objectString getConfigIdForCartEntry(String cartEntryKey)
cartEntryKey - String representation of the cart entry primary key<T> T getUiStatusForCartEntry(String cartEntryKey)
cartEntryKey - String representation of the cart entry primary key<T> T getUiStatusForProduct(String productKey)
productKey - Product keyvoid setUiStatusForCartEntry(String cartEntryKey, Object uiStatus)
cartEntryKey - String representation of the cart entry primary keyuiStatus - Objectvoid setUiStatusForProduct(String productKey, Object uiStatus)
productKey - Product keyuiStatus - Objectvoid removeUiStatusForCartEntry(String cartEntryKey)
cartEntryKey - String representation of the cart entry primary keyvoid removeUiStatusForProduct(String productKey)
productKey - Product keyString getCartEntryForConfigId(String configId)
configId - void setCartEntryForProduct(String productKey, String cartEntryId)
productKey - cartEntryId - String representation of the cart entry primary keyString getCartEntryForProduct(String productKey)
productKey - void removeCartEntryForProduct(String productKey)
productKey - void removeConfigIdForCartEntry(String cartEntryKey)
cartEntryKey - void removeSessionArtifactsForCartEntry(String cartEntryId, String productKey)
cartEntryId - productKey - Map<String,ClassificationSystemCPQAttributesContainer> getCachedNameMap()
void setSolrIndexedProperties(Set<String> solrTypes)
solrTypes - ConfigurationProvider getConfigurationProvider()
void setConfigurationProvider(ConfigurationProvider provider)
provider - provider to cacheConfigModel getConfigurationModelEngineState(String configId)
configId - void setConfigurationModelEngineState(String configId, ConfigModel configModel)
configId - unique config idconfigModel - model to cachevoid removeConfigurationModelEngineState(String configId)
configId - unique config idvoid removeConfigurationModelEngineStates()
Copyright © 2017 SAP SE. All Rights Reserved.