Class QuotationGetItemsAggregationStrategy
java.lang.Object
com.skava.quotation.orchestration.aggregation.QuotationGetItemsAggregationStrategy
- All Implemented Interfaces:
org.apache.camel.AggregationStrategy
@Component("quotationGetItemsAggregationStrategy")
public class QuotationGetItemsAggregationStrategy
extends Object
implements org.apache.camel.AggregationStrategy
The Class CartGetItemsAggregationStrategy
This AggregationStrategy class is used to aggregate and construct the cart model
- Version:
- 8.0
- Author:
- Infosys Equinox
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.Exchange
aggregate
(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) This method is used to aggregate two exchanges together into a single exchange.void
checkPriceAndUpdateQuote
(org.apache.camel.Exchange newExchange, SFCart sfCart, CreateItemListRequest createItemList) void
checkValidInvalidResponse
(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) void
mergeInfoToQuoteItem
(SFCart sfCart, CreateItemListRequest createItemList) This method is used to merge price to quote skuvoid
updateQuotePrice
(org.apache.camel.Exchange newExchange, SFCart sfCart, CreateItemListRequest createItemList) This method is used to get price of skuMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.AggregationStrategy
aggregate, canPreComplete, onCompletion, onCompletion, onOptimisticLockFailure, preComplete, timeout
-
Field Details
-
INVALID_CATALOG
Invalid catalog response- See Also:
-
INVALID_PRICE
Invalid price response- See Also:
-
-
Constructor Details
-
QuotationGetItemsAggregationStrategy
public QuotationGetItemsAggregationStrategy()
-
-
Method Details
-
aggregate
public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) This method is used to aggregate two exchanges together into a single exchange.- Specified by:
aggregate
in interfaceorg.apache.camel.AggregationStrategy
- Parameters:
oldExchange
- Indicates the old exchange with cart responsenewExchange
- Indicates the new exchange with cart response- Returns:
- Returns new exchange with cart responses
-
checkValidInvalidResponse
public void checkValidInvalidResponse(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) -
updateQuotePrice
public void updateQuotePrice(org.apache.camel.Exchange newExchange, SFCart sfCart, CreateItemListRequest createItemList) This method is used to get price of sku -
checkPriceAndUpdateQuote
public void checkPriceAndUpdateQuote(org.apache.camel.Exchange newExchange, SFCart sfCart, CreateItemListRequest createItemList) -
mergeInfoToQuoteItem
This method is used to merge price to quote sku
-