org.broadleafcommerce.core.order.service.legacy
Class LegacyMergeCartServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.service.legacy.LegacyMergeCartServiceImpl
All Implemented Interfaces:
MergeCartService

Deprecated.

@Deprecated
public class LegacyMergeCartServiceImpl
extends Object
implements MergeCartService

These methods used to exist in LegacyCartService.

Author:
apazzolini

Field Summary
protected  FulfillmentGroupService fulfillmentGroupService
          Deprecated.  
 
Constructor Summary
LegacyMergeCartServiceImpl()
          Deprecated.  
 
Method Summary
protected  OrderItem addOrderItemToOrder(Order order, OrderItem newOrderItem, Boolean priceOrder)
          Deprecated.  
 MergeCartResponse mergeCart(Customer customer, Order anonymousCart)
          Deprecated. Delegates to mergeCart(Customer, Order, boolean) with priceOrder set to true Merges the anonymous cart with the customer's current cart, taking into consideration the active status of the SKUs to merge.
 MergeCartResponse mergeCart(Customer customer, Order anonymousCart, boolean priceOrder)
          Deprecated. Merges the anonymous cart with the customer's current cart, taking into consideration the active status of the SKUs to merge.
protected  Order mergeGiftWrapOrderItems(MergeCartResponse mergeCartResponse, Order customerCart, Map<OrderItem,OrderItem> oldNewItemMap)
          Deprecated.  
protected  Order mergeOfferCodes(Order anonymousCart, Order customerCart)
          Deprecated.  
protected  Order mergeRegularOrderItems(Order anonymousCart, MergeCartResponse mergeCartResponse, Order customerCart, Map<OrderItem,OrderItem> oldNewItemMap)
          Deprecated.  
 ReconstructCartResponse reconstructCart(Customer customer)
          Deprecated. Delegates to reconstructCart(Customer, boolean) with priceOrder set to true Reconstruct the cart using previous stored state taking into consideration sku activation
 ReconstructCartResponse reconstructCart(Customer customer, boolean priceOrder)
          Deprecated. Reconstruct the cart using previous stored state taking into consideration sku activation
protected  Order removeExpiredGiftWrapOrderItems(MergeCartResponse mergeCartResponse, Order customerCart, Map<OrderItem,OrderItem> oldNewItemMap)
          Deprecated.  
protected  Order removeItemFromOrder(Order order, OrderItem item, boolean priceOrder)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fulfillmentGroupService

protected FulfillmentGroupService fulfillmentGroupService
Deprecated. 
Constructor Detail

LegacyMergeCartServiceImpl

public LegacyMergeCartServiceImpl()
Deprecated. 
Method Detail

mergeCart

public MergeCartResponse mergeCart(Customer customer,
                                   Order anonymousCart)
                            throws PricingException
Deprecated. 
Description copied from interface: MergeCartService
Delegates to mergeCart(Customer, Order, boolean) with priceOrder set to true Merges the anonymous cart with the customer's current cart, taking into consideration the active status of the SKUs to merge. For example, if the customer had a SKU in their anonymous cart that is no longer active, it will not be merged into the new cart.

Specified by:
mergeCart in interface MergeCartService
Parameters:
customer - the customer whose cart is to be merged
Returns:
the response containing the cart, any items added to the cart, and any items removed from the cart
Throws:
PricingException

reconstructCart

public ReconstructCartResponse reconstructCart(Customer customer)
                                        throws PricingException
Deprecated. 
Description copied from interface: MergeCartService
Delegates to reconstructCart(Customer, boolean) with priceOrder set to true Reconstruct the cart using previous stored state taking into consideration sku activation

Specified by:
reconstructCart in interface MergeCartService
Parameters:
customer - the customer whose cart is to be reconstructed
Returns:
the response containing the cart and any items removed from the cart
Throws:
PricingException

mergeCart

public MergeCartResponse mergeCart(Customer customer,
                                   Order anonymousCart,
                                   boolean priceOrder)
                            throws PricingException
Deprecated. 
Description copied from interface: MergeCartService
Merges the anonymous cart with the customer's current cart, taking into consideration the active status of the SKUs to merge. For example, if the customer had a SKU in their anonymous cart that is no longer active, it will not be merged into the new cart.

Specified by:
mergeCart in interface MergeCartService
Parameters:
customer - the customer whose cart is to be merged
priceOrder - whether or not to price the order
Returns:
the response containing the cart, any items added to the cart, and any items removed from the cart
Throws:
PricingException

reconstructCart

public ReconstructCartResponse reconstructCart(Customer customer,
                                               boolean priceOrder)
                                        throws PricingException
Deprecated. 
Description copied from interface: MergeCartService
Reconstruct the cart using previous stored state taking into consideration sku activation

Specified by:
reconstructCart in interface MergeCartService
Parameters:
customer - the customer whose cart is to be reconstructed
Returns:
the response containing the cart and any items removed from the cart
Throws:
PricingException

mergeGiftWrapOrderItems

protected Order mergeGiftWrapOrderItems(MergeCartResponse mergeCartResponse,
                                        Order customerCart,
                                        Map<OrderItem,OrderItem> oldNewItemMap)
                                 throws PricingException
Deprecated. 
Throws:
PricingException

removeExpiredGiftWrapOrderItems

protected Order removeExpiredGiftWrapOrderItems(MergeCartResponse mergeCartResponse,
                                                Order customerCart,
                                                Map<OrderItem,OrderItem> oldNewItemMap)
                                         throws PricingException
Deprecated. 
Throws:
PricingException

mergeOfferCodes

protected Order mergeOfferCodes(Order anonymousCart,
                                Order customerCart)
Deprecated. 

mergeRegularOrderItems

protected Order mergeRegularOrderItems(Order anonymousCart,
                                       MergeCartResponse mergeCartResponse,
                                       Order customerCart,
                                       Map<OrderItem,OrderItem> oldNewItemMap)
                                throws PricingException
Deprecated. 
Throws:
PricingException

addOrderItemToOrder

protected OrderItem addOrderItemToOrder(Order order,
                                        OrderItem newOrderItem,
                                        Boolean priceOrder)
                                 throws PricingException
Deprecated. 
Throws:
PricingException

removeItemFromOrder

protected Order removeItemFromOrder(Order order,
                                    OrderItem item,
                                    boolean priceOrder)
                             throws PricingException
Deprecated. 
Throws:
PricingException


Copyright © 2012. All Rights Reserved.