Interface ConfigurationAbstractOrderIntegrationStrategy
- All Known Implementing Classes:
PersistenceConfigurationAbstractOrderIntegrationStrategyImpl
public interface ConfigurationAbstractOrderIntegrationStrategy
This strategy manages the integration between carts, orders, quotes and product configuration.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves links between cart entry, product and UI statusGet configuration attached to a cart, quote or order entryGet configuration attached to a cart, quote or order entry for a one time accessGet external configuration attached to a cart, quote or order entryvoidInvalidates the configuration attached to a cart entry.booleanDo we have a KB version corresponding to an abstract order entry?booleanChecks whether a runtimne configuration exists for the given entry.voidPrepares entry for order replicationdefault ConfigModelRefresh cart entry configurationvoidupdateAbstractOrderEntryOnLink(CommerceCartParameter parameters, AbstractOrderEntryModel entry) Update abstract order entry on link stepvoidupdateAbstractOrderEntryOnUpdate(String configId, AbstractOrderEntryModel entry) Update abstract order entry on link step
-
Method Details
-
updateAbstractOrderEntryOnLink
void updateAbstractOrderEntryOnLink(CommerceCartParameter parameters, AbstractOrderEntryModel entry) Update abstract order entry on link step- Parameters:
parameters-entry-
-
updateAbstractOrderEntryOnUpdate
Update abstract order entry on link step- Parameters:
parameters-entry-
-
getConfigurationForAbstractOrderEntry
Get configuration attached to a cart, quote or order entry- Parameters:
entry-- Returns:
- Configuration runtime representation
-
getConfigurationForAbstractOrderEntryForOneTimeAccess
Get configuration attached to a cart, quote or order entry for a one time access- Parameters:
entry-- Returns:
- Configuration runtime representation
-
getExternalConfigurationForAbstractOrderEntry
Get external configuration attached to a cart, quote or order entry- Parameters:
entry-- Returns:
- Configuration in external format
-
isKbVersionForEntryExisting
Do we have a KB version corresponding to an abstract order entry?- Parameters:
entry-- Returns:
- True if KB version exists
-
finalizeCartEntry
Removes links between cart entry, product and UI status- Parameters:
entry-
-
invalidateCartEntryConfiguration
Invalidates the configuration attached to a cart entry. Forces the creation of a default configuration attached to the cart entry, replacing the invalid one- Parameters:
entry-
-
prepareForOrderReplication
Prepares entry for order replication- Parameters:
entry-
-
isRuntimeConfigForEntryExisting
Checks whether a runtimne configuration exists for the given entry. For example if a variant product was ordered diretly, no runtime configuration may exist.- Parameters:
entry-- Returns:
- True if RT configuration exists
-
refreshCartEntryConfiguration
Refresh cart entry configuration- Parameters:
entry- - abstract order entry- Returns:
- configuration model
-