Class DefaultQuoteCartValidationStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.strategies.impl.DefaultQuoteCartValidationStrategy
-
- All Implemented Interfaces:
QuoteCartValidationStrategy
- Direct Known Subclasses:
DefaultC4cQuoteCartValidationStrategy,DefaultSapQuoteCartValidationStrategy
public class DefaultQuoteCartValidationStrategy extends java.lang.Object implements QuoteCartValidationStrategy
Default implementation ofQuoteCartValidationStrategy.
-
-
Constructor Summary
Constructors Constructor Description DefaultQuoteCartValidationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancompareEntries(java.util.List<AbstractOrderEntryModel> sourceEntries, java.util.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.
-
-
-
Method Detail
-
validate
public boolean validate(AbstractOrderModel source, AbstractOrderModel target)
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(java.util.List<AbstractOrderEntryModel> sourceEntries, java.util.List<AbstractOrderEntryModel> targetEntries)
-
-