Interface ConfigurationAbstractOrderEntryLinkStrategy
-
- All Known Implementing Classes:
DefaultConfigurationAbstractOrderEntryLinkStrategyImpl
,PersistenceConfigurationAbstractOrderEntryLinkStrategyImpl
public interface ConfigurationAbstractOrderEntryLinkStrategy
This strategy manages the link between a given cart entry and the corresponding runtime configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getCartEntryForConfigId(java.lang.String configId)
Retrieves cart entry key belonging to a specific config IDjava.lang.String
getCartEntryForDraftConfigId(java.lang.String configId)
Retrieves cart entry key belonging to a specific darfted config IDjava.lang.String
getConfigIdForCartEntry(java.lang.String cartEntryKey)
Retrieves config identifier from the session for a given cart entry key.java.lang.String
getDraftConfigIdForCartEntry(java.lang.String cartEntryKey)
Retrieves the drafted config identifier from the session for a given cart entry key.boolean
isDocumentRelated(java.lang.String configId)
Checks whether the given configuration is realted to any documentvoid
removeConfigIdForCartEntry(java.lang.String cartEntryKey)
Removes config ID for cart entryvoid
removeDraftConfigIdForCartEntry(java.lang.String cartEntryKey)
Removes the drafted config ID for a cart entryvoid
removeSessionArtifactsForCartEntry(java.lang.String cartEntryId)
Removes all session artifacts belonging to a cart entryvoid
setConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)
Stores configuration ID for a cart entry key into the sessionvoid
setDraftConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)
Stores the draft configuration ID for a cart entry key into the session
-
-
-
Method Detail
-
setConfigIdForCartEntry
void setConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)
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
void setDraftConfigIdForCartEntry(java.lang.String cartEntryKey, java.lang.String configId)
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
java.lang.String getConfigIdForCartEntry(java.lang.String cartEntryKey)
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
java.lang.String getDraftConfigIdForCartEntry(java.lang.String cartEntryKey)
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
java.lang.String getCartEntryForConfigId(java.lang.String configId)
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
-
getCartEntryForDraftConfigId
java.lang.String getCartEntryForDraftConfigId(java.lang.String configId)
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
void removeConfigIdForCartEntry(java.lang.String cartEntryKey)
Removes config ID for cart entry- Parameters:
cartEntryKey
- cart entry key
-
removeDraftConfigIdForCartEntry
void removeDraftConfigIdForCartEntry(java.lang.String cartEntryKey)
Removes the drafted config ID for a cart entry- Parameters:
cartEntryKey
- cart entry key
-
removeSessionArtifactsForCartEntry
void removeSessionArtifactsForCartEntry(java.lang.String cartEntryId)
Removes all session artifacts belonging to a cart entry- Parameters:
cartEntryId
- cart entry keyproductKey
- product key
-
isDocumentRelated
boolean isDocumentRelated(java.lang.String configId)
Checks whether the given configuration is realted to any document- Parameters:
configId
- configId- Returns:
- true if the config is related to any document
-
-