Interface ConfigurationAbstractOrderIntegrationStrategy
-
- All Known Implementing Classes:
DefaultConfigurationAbstractOrderIntegrationStrategyImpl,PersistenceConfigurationAbstractOrderIntegrationStrategyImpl
public interface ConfigurationAbstractOrderIntegrationStrategyThis strategy manages the integration between carts, orders, quotes and product configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfinalizeCartEntry(AbstractOrderEntryModel entry)Removes links between cart entry, product and UI statusConfigModelgetConfigurationForAbstractOrderEntry(AbstractOrderEntryModel entry)Get configuration attached to a cart, quote or order entryConfigModelgetConfigurationForAbstractOrderEntryForOneTimeAccess(AbstractOrderEntryModel entry)Get configuration attached to a cart, quote or order entry for a one time accessjava.lang.StringgetExternalConfigurationForAbstractOrderEntry(AbstractOrderEntryModel entry)Get external configuration attached to a cart, quote or order entryvoidinvalidateCartEntryConfiguration(AbstractOrderEntryModel entry)Invalidates the configuration attached to a cart entry.booleanisKbVersionForEntryExisting(AbstractOrderEntryModel entry)Do we have a KB version corresponding to an abstract order entry?booleanisRuntimeConfigForEntryExisting(AbstractOrderEntryModel entry)Checks whether a runtimne configuration exists for the given entry.voidprepareForOrderReplication(AbstractOrderEntryModel entry)Prepares entry for order replicationvoidupdateAbstractOrderEntryOnLink(CommerceCartParameter parameters, AbstractOrderEntryModel entry)Update abstract order entry on link stepvoidupdateAbstractOrderEntryOnUpdate(java.lang.String configId, AbstractOrderEntryModel entry)Update abstract order entry on link step
-
-
-
Method Detail
-
updateAbstractOrderEntryOnLink
void updateAbstractOrderEntryOnLink(CommerceCartParameter parameters, AbstractOrderEntryModel entry)
Update abstract order entry on link step- Parameters:
parameters-entry-
-
updateAbstractOrderEntryOnUpdate
void updateAbstractOrderEntryOnUpdate(java.lang.String configId, AbstractOrderEntryModel entry)Update abstract order entry on link step- Parameters:
parameters-entry-
-
getConfigurationForAbstractOrderEntry
ConfigModel getConfigurationForAbstractOrderEntry(AbstractOrderEntryModel entry)
Get configuration attached to a cart, quote or order entry- Parameters:
entry-- Returns:
- Configuration runtime representation
-
getConfigurationForAbstractOrderEntryForOneTimeAccess
ConfigModel getConfigurationForAbstractOrderEntryForOneTimeAccess(AbstractOrderEntryModel entry)
Get configuration attached to a cart, quote or order entry for a one time access- Parameters:
entry-- Returns:
- Configuration runtime representation
-
getExternalConfigurationForAbstractOrderEntry
java.lang.String getExternalConfigurationForAbstractOrderEntry(AbstractOrderEntryModel entry)
Get external configuration attached to a cart, quote or order entry- Parameters:
entry-- Returns:
- Configuration in external format
-
isKbVersionForEntryExisting
boolean isKbVersionForEntryExisting(AbstractOrderEntryModel entry)
Do we have a KB version corresponding to an abstract order entry?- Parameters:
entry-- Returns:
-
finalizeCartEntry
void finalizeCartEntry(AbstractOrderEntryModel entry)
Removes links between cart entry, product and UI status- Parameters:
entry-
-
invalidateCartEntryConfiguration
void invalidateCartEntryConfiguration(AbstractOrderEntryModel entry)
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
void prepareForOrderReplication(AbstractOrderEntryModel entry)
Prepares entry for order replication- Parameters:
entry-
-
isRuntimeConfigForEntryExisting
boolean isRuntimeConfigForEntryExisting(AbstractOrderEntryModel entry)
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:
-
-