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

java.lang.Object
  extended by org.broadleafcommerce.core.order.service.OrderServiceImpl
      extended by org.broadleafcommerce.core.order.service.legacy.LegacyOrderServiceImpl
          extended by org.broadleafcommerce.core.order.service.legacy.LegacyCartServiceImpl
All Implemented Interfaces:
LegacyCartService, LegacyOrderService, OrderService

Deprecated.

@Deprecated
public class LegacyCartServiceImpl
extends LegacyOrderServiceImpl
implements LegacyCartService

This legacy implementation should no longer be used as of 2.0 The new interface and implementation are OrderService and OrderServiceImpl


Field Summary
protected  CustomerService customerService
          Deprecated.  
 
Fields inherited from class org.broadleafcommerce.core.order.service.legacy.LegacyOrderServiceImpl
categoryDao, fulfillmentGroupDao, fulfillmentGroupItemDao, fulfillmentGroupService, orderItemDao, orderItemService, productDao, skuDao
 
Fields inherited from class org.broadleafcommerce.core.order.service.OrderServiceImpl
addItemWorkflow, automaticallyMergeLikeItems, deleteEmptyNamedOrders, mergeCartService, moveNamedOrderItems, nullOrderFactory, offerDao, offerService, orderDao, paymentInfoDao, pricingService, removeItemWorkflow, securePaymentInfoService, updateItemWorkflow
 
Constructor Summary
LegacyCartServiceImpl()
          Deprecated.  
 
Method Summary
 Order addAllItemsToCartFromNamedOrder(Order namedOrder)
          Deprecated.  
 Order addAllItemsToCartFromNamedOrder(Order namedOrder, boolean priceOrder)
          Deprecated.  
 Order addItem(Long orderId, OrderItemRequestDTO orderItemRequestDTO, boolean priceOrder)
          Deprecated. Initiates the addItem workflow that will attempt to add the given quantity of the specified item to the Order.
 MergeCartResponse mergeCart(Customer customer, Order anonymousCart)
          Deprecated.  
 MergeCartResponse mergeCart(Customer customer, Order anonymousCart, boolean priceOrder)
          Deprecated. Merge the anonymous cart with the customer's cart taking into consideration sku activation
 Order moveAllItemsToCartFromNamedOrder(Order namedOrder)
          Deprecated.  
 Order moveAllItemsToCartFromNamedOrder(Order namedOrder, boolean priceOrder)
          Deprecated.  
 OrderItem moveItemToCartFromNamedOrder(Long customerId, String orderName, Long orderItemId, Integer quantity)
          Deprecated.  
 OrderItem moveItemToCartFromNamedOrder(Long customerId, String orderName, Long orderItemId, Integer quantity, boolean priceOrder)
          Deprecated.  
 OrderItem moveItemToCartFromNamedOrder(Order namedOrder, OrderItem orderItem)
          Deprecated.  
 OrderItem moveItemToCartFromNamedOrder(Order namedOrder, OrderItem orderItem, boolean priceOrder)
          Deprecated.  
 ReconstructCartResponse reconstructCart(Customer customer)
          Deprecated.  
 ReconstructCartResponse reconstructCart(Customer customer, boolean priceOrder)
          Deprecated. Reconstruct the cart using previous stored state taking into consideration sku activation
 Order removeItem(Long orderId, Long orderItemId, boolean priceOrder)
          Deprecated. Initiates the removeItem workflow that will attempt to remove the specified OrderItem from the given Order
 Order updateItemQuantity(Long orderId, OrderItemRequestDTO orderItemRequestDTO, boolean priceOrder)
          Deprecated. Initiates the updateItem workflow that will attempt to update the item quantity for the specified OrderItem in the given Order.
 
Methods inherited from class org.broadleafcommerce.core.order.service.legacy.LegacyOrderServiceImpl
addBundleItemToOrder, addBundleItemToOrder, addDiscreteItemToOrder, addDiscreteItemToOrder, addDynamicPriceDiscreteItemToOrder, addDynamicPriceDiscreteItemToOrder, addFulfillmentGroupToOrder, addFulfillmentGroupToOrder, addFulfillmentGroupToOrder, addFulfillmentGroupToOrder, addGiftWrapItemToOrder, addItemToFulfillmentGroup, addItemToFulfillmentGroup, addItemToFulfillmentGroup, addItemToFulfillmentGroup, addItemToFulfillmentGroup, addItemToOrder, addOrderItemToBundle, addOrderItemToOrder, addOrderItemToOrder, addOrUpdateOrderItemAttributes, addPaymentToOrder, addSkuToOrder, addSkuToOrder, addSkuToOrder, addSkuToOrder, bundleItemMatches, checkSkuForMatch, createBundleOrderItemRequest, createDefaultFulfillmentGroup, createDiscreteOrderItemRequest, createDiscreteOrderItemRequest, createDiscreteOrderItemRequest, createFulfillmentGroupItemFromOrderItem, determineCategory, determineSku, findDefaultFulfillmentGroupForOrder, findLastMatchingBundleItem, findLastMatchingDiscreteItem, findLastMatchingItem, findMatchingSku, findOrderByOrderNumber, getFulfillmentGroupDao, getFulfillmentGroupItemDao, getOrderDao, getOrderItemService, getPaymentInfoDao, itemMatches, moveItemToOrder, moveItemToOrder, persistOrder, readPaymentInfosForOrder, removeAllFulfillmentGroupsFromOrder, removeAllFulfillmentGroupsFromOrder, removeFulfillmentGroupFromOrder, removeFulfillmentGroupFromOrder, removeItemFromBundle, removeItemFromOrder, removeItemFromOrder, removeItemFromOrder, removeItemFromOrder, removeNamedOrderForCustomer, removeOrderItemAttribute, removeOrderItemFromFullfillmentGroup, setFulfillmentGroupDao, setFulfillmentGroupItemDao, setOrderDao, setOrderItemService, setPaymentInfoDao, updateItemQuantity, updateItemQuantity, updateItemQuantity, updateOrder, validateOrder, validateProduct
 
Methods inherited from class org.broadleafcommerce.core.order.service.OrderServiceImpl
addAllItemsFromNamedOrder, addGiftWrapItemToOrder, addItemFromNamedOrder, addItemFromNamedOrder, addOfferCode, addPaymentToOrder, cancelOrder, confirmOrder, createNamedOrderForCustomer, createNewCartForCustomer, findCartForCustomer, findLastMatchingItem, findNamedOrderForCustomer, findOrderById, findOrdersForCustomer, findOrdersForCustomer, findPaymentInfosForOrder, getAutomaticallyMergeLikeItems, getCartOperationExceptionRootCause, getNullOrder, isDeleteEmptyNamedOrders, isMoveNamedOrderItems, persist, removeAllOfferCodes, removeAllPaymentsFromOrder, removeOfferCode, removePaymentsFromOrder, save, setAutomaticallyMergeLikeItems, setDeleteEmptyNamedOrders, setMoveNamedOrderItems
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.broadleafcommerce.core.order.service.legacy.LegacyOrderService
addBundleItemToOrder, addBundleItemToOrder, addDiscreteItemToOrder, addDiscreteItemToOrder, addDynamicPriceDiscreteItemToOrder, addDynamicPriceDiscreteItemToOrder, addFulfillmentGroupToOrder, addFulfillmentGroupToOrder, addFulfillmentGroupToOrder, addFulfillmentGroupToOrder, addGiftWrapItemToOrder, addItemToFulfillmentGroup, addItemToFulfillmentGroup, addItemToFulfillmentGroup, addItemToFulfillmentGroup, addItemToFulfillmentGroup, addItemToOrder, addOrderItemToBundle, addOrderItemToOrder, addOrderItemToOrder, addOrUpdateOrderItemAttributes, addPaymentToOrder, addSkuToOrder, addSkuToOrder, addSkuToOrder, addSkuToOrder, createDefaultFulfillmentGroup, createDiscreteOrderItemRequest, findDefaultFulfillmentGroupForOrder, readPaymentInfosForOrder, removeAllFulfillmentGroupsFromOrder, removeAllFulfillmentGroupsFromOrder, removeFulfillmentGroupFromOrder, removeFulfillmentGroupFromOrder, removeItemFromBundle, removeItemFromOrder, removeItemFromOrder, removeItemFromOrder, removeItemFromOrder, removeNamedOrderForCustomer, removeOrderItemAttribute, updateItemQuantity, updateItemQuantity, updateItemQuantity
 
Methods inherited from interface org.broadleafcommerce.core.order.service.OrderService
addAllItemsFromNamedOrder, addGiftWrapItemToOrder, addItemFromNamedOrder, addItemFromNamedOrder, addOfferCode, addPaymentToOrder, cancelOrder, confirmOrder, createNamedOrderForCustomer, createNewCartForCustomer, findCartForCustomer, findLastMatchingItem, findNamedOrderForCustomer, findOrderById, findOrderByOrderNumber, findOrdersForCustomer, findOrdersForCustomer, findPaymentInfosForOrder, getAutomaticallyMergeLikeItems, getNullOrder, isDeleteEmptyNamedOrders, isMoveNamedOrderItems, removeAllOfferCodes, removeAllPaymentsFromOrder, removeOfferCode, removePaymentsFromOrder, save, setAutomaticallyMergeLikeItems, setDeleteEmptyNamedOrders, setMoveNamedOrderItems
 

Field Detail

customerService

protected CustomerService customerService
Deprecated. 
Constructor Detail

LegacyCartServiceImpl

public LegacyCartServiceImpl()
Deprecated. 
Method Detail

addAllItemsToCartFromNamedOrder

public Order addAllItemsToCartFromNamedOrder(Order namedOrder)
                                      throws PricingException
Deprecated. 
Specified by:
addAllItemsToCartFromNamedOrder in interface LegacyCartService
Throws:
PricingException

addAllItemsToCartFromNamedOrder

public Order addAllItemsToCartFromNamedOrder(Order namedOrder,
                                             boolean priceOrder)
                                      throws PricingException
Deprecated. 
Specified by:
addAllItemsToCartFromNamedOrder in interface LegacyCartService
Throws:
PricingException

moveItemToCartFromNamedOrder

public OrderItem moveItemToCartFromNamedOrder(Long customerId,
                                              String orderName,
                                              Long orderItemId,
                                              Integer quantity)
                                       throws PricingException
Deprecated. 
Specified by:
moveItemToCartFromNamedOrder in interface LegacyCartService
Throws:
PricingException

moveItemToCartFromNamedOrder

public OrderItem moveItemToCartFromNamedOrder(Long customerId,
                                              String orderName,
                                              Long orderItemId,
                                              Integer quantity,
                                              boolean priceOrder)
                                       throws PricingException
Deprecated. 
Specified by:
moveItemToCartFromNamedOrder in interface LegacyCartService
Throws:
PricingException

moveItemToCartFromNamedOrder

public OrderItem moveItemToCartFromNamedOrder(Order namedOrder,
                                              OrderItem orderItem)
                                       throws PricingException
Deprecated. 
Specified by:
moveItemToCartFromNamedOrder in interface LegacyCartService
Throws:
PricingException

moveItemToCartFromNamedOrder

public OrderItem moveItemToCartFromNamedOrder(Order namedOrder,
                                              OrderItem orderItem,
                                              boolean priceOrder)
                                       throws PricingException
Deprecated. 
Specified by:
moveItemToCartFromNamedOrder in interface LegacyCartService
Throws:
PricingException

moveAllItemsToCartFromNamedOrder

public Order moveAllItemsToCartFromNamedOrder(Order namedOrder)
                                       throws PricingException
Deprecated. 
Specified by:
moveAllItemsToCartFromNamedOrder in interface LegacyCartService
Throws:
PricingException

moveAllItemsToCartFromNamedOrder

public Order moveAllItemsToCartFromNamedOrder(Order namedOrder,
                                              boolean priceOrder)
                                       throws PricingException
Deprecated. 
Specified by:
moveAllItemsToCartFromNamedOrder in interface LegacyCartService
Throws:
PricingException

mergeCart

public MergeCartResponse mergeCart(Customer customer,
                                   Order anonymousCart)
                            throws PricingException
Deprecated. 
Specified by:
mergeCart in interface LegacyCartService
Throws:
PricingException

reconstructCart

public ReconstructCartResponse reconstructCart(Customer customer)
                                        throws PricingException
Deprecated. 
Specified by:
reconstructCart in interface LegacyCartService
Throws:
PricingException

mergeCart

public MergeCartResponse mergeCart(Customer customer,
                                   Order anonymousCart,
                                   boolean priceOrder)
                            throws PricingException
Deprecated. 
Description copied from interface: LegacyCartService
Merge the anonymous cart with the customer's cart taking into consideration sku activation

Specified by:
mergeCart in interface LegacyCartService
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,
                                               boolean priceOrder)
                                        throws PricingException
Deprecated. 
Description copied from interface: LegacyCartService
Reconstruct the cart using previous stored state taking into consideration sku activation

Specified by:
reconstructCart in interface LegacyCartService
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

addItem

public Order addItem(Long orderId,
                     OrderItemRequestDTO orderItemRequestDTO,
                     boolean priceOrder)
              throws AddToCartException
Deprecated. 
Description copied from interface: OrderService
Initiates the addItem workflow that will attempt to add the given quantity of the specified item to the Order. The item to be added can be determined in a few different ways. For example, the SKU can be specified directly or it can be determine based on a Product and potentially some specified ProductOptions for that given product. The minimum required parameters for OrderItemRequest are: productId and quantity or alternatively, skuId and quantity When priceOrder is false, the system will not reprice the order. This is more performant in cases such as bulk adds where the repricing could be done for the last item only.

Specified by:
addItem in interface OrderService
Overrides:
addItem in class OrderServiceImpl
Returns:
the order the item was added to
Throws:
AddToCartException
See Also:
OrderItemRequestDTO

updateItemQuantity

public Order updateItemQuantity(Long orderId,
                                OrderItemRequestDTO orderItemRequestDTO,
                                boolean priceOrder)
                         throws UpdateCartException
Deprecated. 
Description copied from interface: OrderService
Initiates the updateItem workflow that will attempt to update the item quantity for the specified OrderItem in the given Order. The new quantity is specified in the OrderItemRequestDTO Minimum required parameters for OrderItemRequest: orderItemId, quantity

Specified by:
updateItemQuantity in interface OrderService
Overrides:
updateItemQuantity in class OrderServiceImpl
Returns:
the order the item was added to
Throws:
UpdateCartException
See Also:
OrderItemRequestDTO

removeItem

public Order removeItem(Long orderId,
                        Long orderItemId,
                        boolean priceOrder)
                 throws RemoveFromCartException
Deprecated. 
Description copied from interface: OrderService
Initiates the removeItem workflow that will attempt to remove the specified OrderItem from the given Order

Specified by:
removeItem in interface OrderService
Overrides:
removeItem in class OrderServiceImpl
Returns:
the order the item was added to
Throws:
RemoveFromCartException
See Also:
OrderItemRequestDTO


Copyright © 2013. All Rights Reserved.