Interface ConfigurationAbstractOrderEntryLinkStrategy
- All Known Implementing Classes:
PersistenceConfigurationAbstractOrderEntryLinkStrategyImpl
public interface ConfigurationAbstractOrderEntryLinkStrategy
This strategy manages the link between a given cart entry and the corresponding runtime configuration.
-
Method Summary
Modifier and TypeMethodDescriptiondefault AbstractOrderEntryModelgetAbstractOrderEntryForConfigId(String configId) Retrieves abstract order entry belonging to a specific config IDgetCartEntryForConfigId(String configId) Retrieves cart entry key belonging to a specific config IDgetCartEntryForDraftConfigId(String configId) Retrieves cart entry key belonging to a specific darfted config IDgetConfigIdForCartEntry(String cartEntryKey) Retrieves config identifier from the session for a given cart entry key.getDraftConfigIdForCartEntry(String cartEntryKey) Retrieves the drafted config identifier from the session for a given cart entry key.booleanisDocumentRelated(String configId) Checks whether the given configuration is realted to any documentvoidremoveConfigIdForCartEntry(String cartEntryKey) Removes config ID for cart entryvoidremoveDraftConfigIdForCartEntry(String cartEntryKey) Removes the drafted config ID for a cart entryvoidremoveSessionArtifactsForCartEntry(String cartEntryId) Removes all session artifacts belonging to a cart entryvoidsetConfigIdForCartEntry(String cartEntryKey, String configId) Stores configuration ID for a cart entry key into the sessionvoidsetDraftConfigIdForCartEntry(String cartEntryKey, String configId) Stores the draft configuration ID for a cart entry key into the session
-
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
-
setDraftConfigIdForCartEntry
Stores the draft 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. In case a draft configuration exists, this is returned with priority.- Parameters:
cartEntryKey- String representation of the cart entry primary key- Returns:
- ID of a runtime configuration object
-
getDraftConfigIdForCartEntry
Retrieves the drafted config identifier from the session for a given cart entry key. In case a draft configuration exists, this is returned with priority.- Parameters:
cartEntryKey- String representation of the cart entry primary key- Returns:
- ID of a runtime configuration object
-
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
-
getAbstractOrderEntryForConfigId
Retrieves abstract order entry belonging to a specific config ID- Parameters:
configId- id of the configuration- Returns:
- Abstract order entry model
-
getCartEntryForDraftConfigId
Retrieves cart entry key belonging to a specific darfted config ID- Parameters:
configId- id of the configuration maintained as draft- Returns:
- String representation of the cart entry primary key
-
removeConfigIdForCartEntry
Removes config ID for cart entry- Parameters:
cartEntryKey- cart entry key
-
removeDraftConfigIdForCartEntry
Removes the drafted config ID for a cart entry- Parameters:
cartEntryKey- cart entry key
-
removeSessionArtifactsForCartEntry
Removes all session artifacts belonging to a cart entry- Parameters:
cartEntryId- cart entry keyproductKey- product key
-
isDocumentRelated
Checks whether the given configuration is realted to any document- Parameters:
configId- configId- Returns:
- true if the config is related to any document
-