Class DefaultQuoteCartValidationStrategy
java.lang.Object
de.hybris.platform.commerceservices.order.strategies.impl.DefaultQuoteCartValidationStrategy
- All Implemented Interfaces:
QuoteCartValidationStrategy
public class DefaultQuoteCartValidationStrategy
extends Object
implements QuoteCartValidationStrategy
Default implementation of
QuoteCartValidationStrategy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancompareEntries(List<AbstractOrderEntryModel> sourceEntries, List<AbstractOrderEntryModel> targetEntries) booleanvalidate(AbstractOrderModel source, AbstractOrderModel target) Verifies that there are no differences in
1) Total Price
2) Total Discounts
3) Order Entries and Quantities
for the given abstract orders.
-
Constructor Details
-
DefaultQuoteCartValidationStrategy
public DefaultQuoteCartValidationStrategy()
-
-
Method Details
-
validate
Description copied from interface:QuoteCartValidationStrategyVerifies that there are no differences in
1) Total Price
2) Total Discounts
3) Order Entries and Quantities
for the given abstract orders.- Specified by:
validatein interfaceQuoteCartValidationStrategy- Parameters:
source- abstract order to comparetarget- abstract order to compare- Returns:
- true if there are no differences in the inspected attributes between the two orders, false otherwise
-
compareEntries
protected boolean compareEntries(List<AbstractOrderEntryModel> sourceEntries, List<AbstractOrderEntryModel> targetEntries)
-