Interface SessionAccessService
- All Known Implementing Classes:
SessionAccessServiceImpl
public interface SessionAccessService
Accessing the session to set and read product configuration related entities like UIStatus or runtime configuration
ID per cart entry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringcache key of product configuration cache container -
Method Summary
Modifier and TypeMethodDescriptiongetCartEntryForConfigId(String configId) Retrieves cart entry key belonging to a specific config IDgetCartEntryForDraftConfigId(String configId) get cart entry linked to the given draft configurationgetConfigIdForCartEntry(String cartEntryKey) Retrieves config identifier from the session for a given cart entry keygetConfigIdForProduct(String productCode) Get the runtime configuration currently associated with the given productgetDraftConfigIdForCartEntry(String cartEntryKey) gets the config id linked as draft to the given cart entrygetProductForConfigId(String configId) Get the product for the given runtime configuration id<T> TgetUiStatusForCartEntry(String cartEntryKey) Retrieves object from the session for a given cart entry key<T> TgetUiStatusForProduct(String productKey) Retrieves object from the session for a given cart entry keyvoidpurge()Purges the entire session (with regards to CPQ artifacts)voidremoveConfigIdForCartEntry(String cartEntryKey) Removes config ID for cart entryvoidremoveConfigIdForProduct(String productCode) Removes the link between product code and runtime configurationvoidremoveDraftConfigIdForCartEntry(String cartEntryKey) Removes draft config ID for cart entryvoidremoveSessionArtifactsForCartEntry(String cartEntryId) Removes all session artifacts belonging to a cart entryvoidremoveUiStatusForCartEntry(String cartEntryKey) Removes object for a cart entryvoidremoveUiStatusForProduct(String productKey) Removes object for a productvoidsetConfigIdForCartEntry(String cartEntryKey, String configId) Stores configuration ID for a cart entry key into the sessionvoidsetConfigIdForProduct(String productCode, String configId) Links a product code with a given runtime configurationvoidsetDraftConfigIdForCartEntry(String cartEntryKey, String configId) Stores darfat configuration ID for a cart entry key into the sessionvoidsetUiStatusForCartEntry(String cartEntryKey, Object uiStatus) Stores object for a cart entry key into the sessionvoidsetUiStatusForProduct(String productKey, Object uiStatus) Stores object for a product key into the session
-
Field Details
-
PRODUCT_CONFIG_SESSION_ATTRIBUTE_CONTAINER
cache key of product configuration cache container- See Also:
-
-
Method Details
-
setConfigIdForCartEntry
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
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
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
Retrieves object from the session for a given cart entry key- Parameters:
productKey- Product key- Returns:
- ui status for product
-
setUiStatusForCartEntry
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
Stores object for a product key into the session- Parameters:
productKey- Product keyuiStatus- ui status for product
-
removeUiStatusForCartEntry
Removes object for a cart entry- Parameters:
cartEntryKey- String representation of the cart entry primary key
-
removeUiStatusForProduct
Removes object for a product- Parameters:
productKey- Product key
-
getCartEntryForConfigId
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
-
removeConfigIdForCartEntry
Removes config ID for cart entry- Parameters:
cartEntryKey- cart entry key
-
removeSessionArtifactsForCartEntry
Removes all session artifacts belonging to a cart entry- Parameters:
cartEntryId- cart entry keyproductKey- product key
-
purge
void purge()Purges the entire session (with regards to CPQ artifacts) -
getConfigIdForProduct
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
Get the product for the given runtime configuration id- Parameters:
configId- configuration id- Returns:
- product code if link is present, otherwise null
-
setConfigIdForProduct
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
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
get cart entry linked to the given draft configuration- Parameters:
configId- runtime configuration id- Returns:
- cartItemHandle
-
getDraftConfigIdForCartEntry
gets the config id linked as draft to the given cart entry- Parameters:
cartEntryKey- cart entry key- Returns:
- config Id
-
setDraftConfigIdForCartEntry
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
Removes draft config ID for cart entry- Parameters:
cartEntryKey- cart entry key
-