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

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

Deprecated.

@Deprecated
public class LegacyOrderServiceImpl
extends OrderServiceImpl
implements LegacyOrderService

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


Field Summary
protected  CategoryDao categoryDao
          Deprecated.  
protected  FulfillmentGroupDao fulfillmentGroupDao
          Deprecated.  
protected  FulfillmentGroupItemDao fulfillmentGroupItemDao
          Deprecated.  
protected  FulfillmentGroupService fulfillmentGroupService
          Deprecated.  
protected  OrderItemDao orderItemDao
          Deprecated.  
protected  OrderItemService orderItemService
          Deprecated.  
protected  ProductDao productDao
          Deprecated.  
protected  SkuDao skuDao
          Deprecated.  
 
Fields inherited from class org.broadleafcommerce.core.order.service.OrderServiceImpl
addItemWorkflow, automaticallyMergeLikeItems, deleteEmptyNamedOrders, extensionManager, mergeCartService, moveNamedOrderItems, nullOrderFactory, offerDao, offerService, orderDao, paymentInfoDao, pricingRetryCountForLockFailure, pricingRetryWaitIntervalForLockFailure, pricingService, removeItemWorkflow, securePaymentInfoService, transactionManager, updateItemWorkflow
 
Constructor Summary
LegacyOrderServiceImpl()
          Deprecated.  
 
Method Summary
 OrderItem addBundleItemToOrder(Order order, BundleOrderItemRequest itemRequest)
          Deprecated. Used to create dynamic bundles groupings of order items.
 OrderItem addBundleItemToOrder(Order order, BundleOrderItemRequest itemRequest, boolean priceOrder)
          Deprecated. Used to create dynamic bundles groupings of order items.
 OrderItem addDiscreteItemToOrder(Order order, DiscreteOrderItemRequest itemRequest)
          Deprecated. 
 OrderItem addDiscreteItemToOrder(Order order, DiscreteOrderItemRequest itemRequest, boolean priceOrder)
          Deprecated. 
 OrderItem addDynamicPriceDiscreteItemToOrder(Order order, DiscreteOrderItemRequest itemRequest, HashMap skuPricingConsiderations)
          Deprecated. 
 OrderItem addDynamicPriceDiscreteItemToOrder(Order order, DiscreteOrderItemRequest itemRequest, HashMap skuPricingConsiderations, boolean priceOrder)
          Deprecated. 
 FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest)
          Deprecated.  
 FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest, boolean priceOrder)
          Deprecated.  
 FulfillmentGroup addFulfillmentGroupToOrder(Order order, FulfillmentGroup fulfillmentGroup)
          Deprecated.  
 FulfillmentGroup addFulfillmentGroupToOrder(Order order, FulfillmentGroup fulfillmentGroup, boolean priceOrder)
          Deprecated.  
 OrderItem addGiftWrapItemToOrder(Order order, GiftWrapOrderItemRequest itemRequest)
          Deprecated. Note: This method will automatically associate the given order to the given itemRequest such that then resulting OrderItem will already have an Order associated to it.
 FulfillmentGroup addItemToFulfillmentGroup(OrderItem item, FulfillmentGroup fulfillmentGroup)
          Deprecated.  
 FulfillmentGroup addItemToFulfillmentGroup(OrderItem item, FulfillmentGroup fulfillmentGroup, boolean priceOrder)
          Deprecated.  
 FulfillmentGroup addItemToFulfillmentGroup(OrderItem item, FulfillmentGroup fulfillmentGroup, int quantity)
          Deprecated.  
 FulfillmentGroup addItemToFulfillmentGroup(OrderItem item, FulfillmentGroup fulfillmentGroup, int quantity, boolean priceOrder)
          Deprecated.  
 FulfillmentGroup addItemToFulfillmentGroup(Order order, OrderItem item, FulfillmentGroup fulfillmentGroup, int quantity, boolean priceOrder)
          Deprecated.  
 Order addItemToOrder(Long orderId, OrderItemRequestDTO orderItemRequestDTO, boolean priceOrder)
          Deprecated. Adds an item to the passed in order.
 OrderItem addOrderItemToBundle(Order order, BundleOrderItem bundle, DiscreteOrderItem newOrderItem, boolean priceOrder)
          Deprecated.  
 OrderItem addOrderItemToOrder(Order order, OrderItem newOrderItem)
          Deprecated. 
 OrderItem addOrderItemToOrder(Order order, OrderItem newOrderItem, boolean priceOrder)
          Deprecated. 
 Order addOrUpdateOrderItemAttributes(Order order, OrderItem item, Map<String,String> attributeValues, boolean priceOrder)
          Deprecated. Adds the passed in name/value pair to the order-item.
 PaymentInfo addPaymentToOrder(Order order, PaymentInfo payment)
          Deprecated.  
 OrderItem addSkuToOrder(Long orderId, Long skuId, Long productId, Long categoryId, Integer quantity)
          Deprecated. 
 OrderItem addSkuToOrder(Long orderId, Long skuId, Long productId, Long categoryId, Integer quantity, boolean priceOrder)
          Deprecated. 
 OrderItem addSkuToOrder(Long orderId, Long skuId, Long productId, Long categoryId, Integer quantity, boolean priceOrder, Map<String,String> itemAttributes)
          Deprecated. 
 OrderItem addSkuToOrder(Long orderId, Long skuId, Long productId, Long categoryId, Integer quantity, Map<String,String> itemAttributes)
          Deprecated. 
protected  boolean bundleItemMatches(BundleOrderItem item1, BundleOrderItem item2)
          Deprecated.  
protected  boolean checkSkuForMatch(Sku sku, Map<String,String> attributeValues)
          Deprecated.  
protected  BundleOrderItemRequest createBundleOrderItemRequest(BundleOrderItem bundleOrderItem, List<DiscreteOrderItemRequest> discreteOrderItemRequests)
          Deprecated.  
 FulfillmentGroup createDefaultFulfillmentGroup(Order order, Address address)
          Deprecated.  
protected  DiscreteOrderItemRequest createDiscreteOrderItemRequest(DiscreteOrderItem discreteOrderItem)
          Deprecated.  
 DiscreteOrderItemRequest createDiscreteOrderItemRequest(Long orderId, Long skuId, Long productId, Long categoryId, Integer quantity)
          Deprecated. Not typically used in versions since 1.7.
 DiscreteOrderItemRequest createDiscreteOrderItemRequest(Order order, BundleOrderItem bundleOrderItem, Sku sku, Product product, Category category, Integer quantity, Map<String,String> itemAttributes)
          Deprecated.  
protected  FulfillmentGroupItem createFulfillmentGroupItemFromOrderItem(OrderItem orderItem, FulfillmentGroup fulfillmentGroup, int quantity)
          Deprecated.  
protected  Category determineCategory(Product product, Long categoryId)
          Deprecated.  
protected  Sku determineSku(Product product, Long skuId, Map<String,String> attributeValues)
          Deprecated.  
 FulfillmentGroup findDefaultFulfillmentGroupForOrder(Order order)
          Deprecated.  
protected  OrderItem findMatchingBundleItem(Order order, BundleOrderItem itemToFind)
          Deprecated.  
protected  OrderItem findMatchingDiscreteItem(Order order, DiscreteOrderItem itemToFind)
          Deprecated.  
protected  OrderItem findMatchingItem(Order order, OrderItem itemToFind)
          Deprecated.  
protected  Sku findMatchingSku(Product product, Map<String,String> attributeValues)
          Deprecated. Checks to make sure the correct SKU is still attached to the order.
 Order findOrderByOrderNumber(String orderNumber)
          Deprecated. Looks up Orders and returns the order matching the given orderNumber
 FulfillmentGroupDao getFulfillmentGroupDao()
          Deprecated.  
 FulfillmentGroupItemDao getFulfillmentGroupItemDao()
          Deprecated.  
 OrderDao getOrderDao()
          Deprecated.  
 OrderItemService getOrderItemService()
          Deprecated.  
 PaymentInfoDao getPaymentInfoDao()
          Deprecated.  
protected  boolean itemMatches(DiscreteOrderItem item1, DiscreteOrderItem item2)
          Deprecated.  
 Order moveItemToOrder(Order originalOrder, Order destinationOrder, OrderItem item)
          Deprecated.  
 Order moveItemToOrder(Order originalOrder, Order destinationOrder, OrderItem item, boolean priceOrder)
          Deprecated.  
protected  Order persistOrder(Order order)
          Deprecated.  
 List<PaymentInfo> readPaymentInfosForOrder(Order order)
          Deprecated.  
 void removeAllFulfillmentGroupsFromOrder(Order order)
          Deprecated.  
 void removeAllFulfillmentGroupsFromOrder(Order order, boolean priceOrder)
          Deprecated.  
 void removeFulfillmentGroupFromOrder(Order order, FulfillmentGroup fulfillmentGroup)
          Deprecated.  
 void removeFulfillmentGroupFromOrder(Order order, FulfillmentGroup fulfillmentGroup, boolean priceOrder)
          Deprecated.  
 Order removeItemFromBundle(Order order, BundleOrderItem bundle, OrderItem item, boolean priceOrder)
          Deprecated.  
 Order removeItemFromOrder(Long orderId, Long itemId)
          Deprecated.  
 Order removeItemFromOrder(Long orderId, Long itemId, boolean priceOrder)
          Deprecated.  
 Order removeItemFromOrder(Order order, OrderItem item)
          Deprecated.  
 Order removeItemFromOrder(Order order, OrderItem item, boolean priceOrder)
          Deprecated.  
 void removeNamedOrderForCustomer(String name, Customer customer)
          Deprecated.  
 Order removeOrderItemAttribute(Order order, OrderItem item, String attributeName, boolean priceOrder)
          Deprecated. Adds the passed in name/value pair to the order-item.
protected  void removeOrderItemFromFullfillmentGroup(Order order, OrderItem orderItem)
          Deprecated.  
 void setFulfillmentGroupDao(FulfillmentGroupDao fulfillmentGroupDao)
          Deprecated.  
 void setFulfillmentGroupItemDao(FulfillmentGroupItemDao fulfillmentGroupItemDao)
          Deprecated.  
 void setOrderDao(OrderDao orderDao)
          Deprecated.  
 void setOrderItemService(OrderItemService orderItemService)
          Deprecated.  
 void setPaymentInfoDao(PaymentInfoDao paymentInfoDao)
          Deprecated.  
 void updateItemQuantity(Order order, OrderItem item)
          Deprecated. Delegates to the fully parametrized method with priceOrder = true.
 void updateItemQuantity(Order order, OrderItem item, boolean priceOrder)
          Deprecated. Updates the quantity and reprices the order.
 void updateItemQuantity(Order order, OrderItemRequestDTO orderItemRequestDTO)
          Deprecated. From the given OrderItemRequestDTO object, this will look through the order's DiscreteOrderItems to find the item with the matching orderItemId and update this item's quantity with the value of the quantity field in the OrderItemRequestDTO.
protected  Order updateOrder(Order order, Boolean priceOrder)
          Deprecated.  
protected  Order validateOrder(Long orderId)
          Deprecated. Returns the order associated with the passed in orderId.
protected  Product validateProduct(Long productId)
          Deprecated.  
 
Methods inherited from class org.broadleafcommerce.core.order.service.OrderServiceImpl
addAllItemsFromNamedOrder, addGiftWrapItemToOrder, addItem, addItemFromNamedOrder, addItemFromNamedOrder, addItemWithPriceOverrides, addOfferCode, addPaymentToOrder, cancelOrder, compareAttributes, confirmOrder, createNamedOrderForCustomer, createNewCartForCustomer, deleteOrder, finalizeTransaction, findCartForCustomer, findLastMatchingItem, findMatchingItem, findNamedOrderForCustomer, findOrderById, findOrdersForCustomer, findOrdersForCustomer, findPaymentInfosForOrder, getAutomaticallyMergeLikeItems, getCartOperationExceptionRootCause, getNullOrder, isDeleteEmptyNamedOrders, isMoveNamedOrderItems, itemMatches, persist, removeAllOfferCodes, removeAllPaymentsFromOrder, removeItem, removeOfferCode, removePaymentFromOrder, removePaymentsFromOrder, save, setAutomaticallyMergeLikeItems, setDeleteEmptyNamedOrders, setMoveNamedOrderItems, updateItemQuantity
 
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.OrderService
addAllItemsFromNamedOrder, addGiftWrapItemToOrder, addItem, addItemFromNamedOrder, addItemFromNamedOrder, addItemWithPriceOverrides, addOfferCode, addPaymentToOrder, cancelOrder, confirmOrder, createNamedOrderForCustomer, createNewCartForCustomer, deleteOrder, findCartForCustomer, findLastMatchingItem, findNamedOrderForCustomer, findOrderById, findOrdersForCustomer, findOrdersForCustomer, findPaymentInfosForOrder, getAutomaticallyMergeLikeItems, getNullOrder, isDeleteEmptyNamedOrders, isMoveNamedOrderItems, removeAllOfferCodes, removeAllPaymentsFromOrder, removeItem, removeOfferCode, removePaymentFromOrder, removePaymentsFromOrder, save, setAutomaticallyMergeLikeItems, setDeleteEmptyNamedOrders, setMoveNamedOrderItems, updateItemQuantity
 

Field Detail

fulfillmentGroupDao

protected FulfillmentGroupDao fulfillmentGroupDao
Deprecated. 

fulfillmentGroupItemDao

protected FulfillmentGroupItemDao fulfillmentGroupItemDao
Deprecated. 

orderItemService

protected OrderItemService orderItemService
Deprecated. 

orderItemDao

protected OrderItemDao orderItemDao
Deprecated. 

skuDao

protected SkuDao skuDao
Deprecated. 

productDao

protected ProductDao productDao
Deprecated. 

categoryDao

protected CategoryDao categoryDao
Deprecated. 

fulfillmentGroupService

protected FulfillmentGroupService fulfillmentGroupService
Deprecated. 
Constructor Detail

LegacyOrderServiceImpl

public LegacyOrderServiceImpl()
Deprecated. 
Method Detail

findDefaultFulfillmentGroupForOrder

public FulfillmentGroup findDefaultFulfillmentGroupForOrder(Order order)
Deprecated. 
Specified by:
findDefaultFulfillmentGroupForOrder in interface LegacyOrderService

createDiscreteOrderItemRequest

public DiscreteOrderItemRequest createDiscreteOrderItemRequest(Order order,
                                                               BundleOrderItem bundleOrderItem,
                                                               Sku sku,
                                                               Product product,
                                                               Category category,
                                                               Integer quantity,
                                                               Map<String,String> itemAttributes)
Deprecated. 

createDiscreteOrderItemRequest

public DiscreteOrderItemRequest createDiscreteOrderItemRequest(Long orderId,
                                                               Long skuId,
                                                               Long productId,
                                                               Long categoryId,
                                                               Integer quantity)
Deprecated. 
Description copied from interface: LegacyOrderService
Not typically used in versions since 1.7. See: LegacyOrderService.addItemToOrder(Long, OrderItemRequestDTO, boolean)

Specified by:
createDiscreteOrderItemRequest in interface LegacyOrderService
Returns:

addGiftWrapItemToOrder

public OrderItem addGiftWrapItemToOrder(Order order,
                                        GiftWrapOrderItemRequest itemRequest)
                                 throws PricingException
Deprecated. 
Description copied from interface: LegacyOrderService
Note: This method will automatically associate the given order to the given itemRequest such that then resulting OrderItem will already have an Order associated to it.

Specified by:
addGiftWrapItemToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

addBundleItemToOrder

public OrderItem addBundleItemToOrder(Order order,
                                      BundleOrderItemRequest itemRequest)
                               throws PricingException
Deprecated. 
Description copied from interface: LegacyOrderService
Used to create dynamic bundles groupings of order items. Typically not used with ProductBundles which should instead call addProductToOrder. Prices the order after adding the bundle.

Specified by:
addBundleItemToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

addBundleItemToOrder

public OrderItem addBundleItemToOrder(Order order,
                                      BundleOrderItemRequest itemRequest,
                                      boolean priceOrder)
                               throws PricingException
Deprecated. 
Description copied from interface: LegacyOrderService
Used to create dynamic bundles groupings of order items. Typically not used with ProductBundles which should instead call addProductToOrder. Prices the order after adding the bundle if priceOrder = true. Clients may wish to perform many cart operations without pricing and then use priceOrder = true on the last operation to avoid exercising the pricing engine in a batch order update mode. NOTE: this will automatically associate the given order to the given itemRequest such that the resulting OrderItem will already have the Order associated to it

Specified by:
addBundleItemToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

removeItemFromOrder

public Order removeItemFromOrder(Long orderId,
                                 Long itemId)
                          throws PricingException
Deprecated. 
Specified by:
removeItemFromOrder in interface LegacyOrderService
Throws:
PricingException

removeItemFromOrder

public Order removeItemFromOrder(Long orderId,
                                 Long itemId,
                                 boolean priceOrder)
                          throws PricingException
Deprecated. 
Specified by:
removeItemFromOrder in interface LegacyOrderService
Throws:
PricingException

removeItemFromOrder

public Order removeItemFromOrder(Order order,
                                 OrderItem item)
                          throws PricingException
Deprecated. 
Specified by:
removeItemFromOrder in interface LegacyOrderService
Throws:
PricingException

removeItemFromOrder

public Order removeItemFromOrder(Order order,
                                 OrderItem item,
                                 boolean priceOrder)
                          throws PricingException
Deprecated. 
Specified by:
removeItemFromOrder in interface LegacyOrderService
Throws:
PricingException

moveItemToOrder

public Order moveItemToOrder(Order originalOrder,
                             Order destinationOrder,
                             OrderItem item)
                      throws PricingException
Deprecated. 
Throws:
PricingException

moveItemToOrder

public Order moveItemToOrder(Order originalOrder,
                             Order destinationOrder,
                             OrderItem item,
                             boolean priceOrder)
                      throws PricingException
Deprecated. 
Throws:
PricingException

addPaymentToOrder

public PaymentInfo addPaymentToOrder(Order order,
                                     PaymentInfo payment)
Deprecated. 
Specified by:
addPaymentToOrder in interface LegacyOrderService

addFulfillmentGroupToOrder

public FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest)
                                            throws PricingException
Deprecated. 
Specified by:
addFulfillmentGroupToOrder in interface LegacyOrderService
Throws:
PricingException

addFulfillmentGroupToOrder

public FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest,
                                                   boolean priceOrder)
                                            throws PricingException
Deprecated. 
Specified by:
addFulfillmentGroupToOrder in interface LegacyOrderService
Throws:
PricingException

addFulfillmentGroupToOrder

public FulfillmentGroup addFulfillmentGroupToOrder(Order order,
                                                   FulfillmentGroup fulfillmentGroup)
                                            throws PricingException
Deprecated. 
Specified by:
addFulfillmentGroupToOrder in interface LegacyOrderService
Throws:
PricingException

addFulfillmentGroupToOrder

public FulfillmentGroup addFulfillmentGroupToOrder(Order order,
                                                   FulfillmentGroup fulfillmentGroup,
                                                   boolean priceOrder)
                                            throws PricingException
Deprecated. 
Specified by:
addFulfillmentGroupToOrder in interface LegacyOrderService
Throws:
PricingException

addItemToFulfillmentGroup

public FulfillmentGroup addItemToFulfillmentGroup(OrderItem item,
                                                  FulfillmentGroup fulfillmentGroup,
                                                  int quantity)
                                           throws PricingException
Deprecated. 
Specified by:
addItemToFulfillmentGroup in interface LegacyOrderService
Throws:
PricingException

addItemToFulfillmentGroup

public FulfillmentGroup addItemToFulfillmentGroup(OrderItem item,
                                                  FulfillmentGroup fulfillmentGroup,
                                                  int quantity,
                                                  boolean priceOrder)
                                           throws PricingException
Deprecated. 
Specified by:
addItemToFulfillmentGroup in interface LegacyOrderService
Throws:
PricingException

addItemToFulfillmentGroup

public FulfillmentGroup addItemToFulfillmentGroup(Order order,
                                                  OrderItem item,
                                                  FulfillmentGroup fulfillmentGroup,
                                                  int quantity,
                                                  boolean priceOrder)
                                           throws PricingException
Deprecated. 
Specified by:
addItemToFulfillmentGroup in interface LegacyOrderService
Throws:
PricingException

addItemToFulfillmentGroup

public FulfillmentGroup addItemToFulfillmentGroup(OrderItem item,
                                                  FulfillmentGroup fulfillmentGroup)
                                           throws PricingException
Deprecated. 
Specified by:
addItemToFulfillmentGroup in interface LegacyOrderService
Throws:
PricingException

addItemToFulfillmentGroup

public FulfillmentGroup addItemToFulfillmentGroup(OrderItem item,
                                                  FulfillmentGroup fulfillmentGroup,
                                                  boolean priceOrder)
                                           throws PricingException
Deprecated. 
Specified by:
addItemToFulfillmentGroup in interface LegacyOrderService
Throws:
PricingException

updateItemQuantity

public void updateItemQuantity(Order order,
                               OrderItem item)
                        throws ItemNotFoundException,
                               PricingException
Deprecated. 
Description copied from interface: LegacyOrderService
Delegates to the fully parametrized method with priceOrder = true.

Specified by:
updateItemQuantity in interface LegacyOrderService
Throws:
ItemNotFoundException
PricingException

updateItemQuantity

public void updateItemQuantity(Order order,
                               OrderItemRequestDTO orderItemRequestDTO)
                        throws ItemNotFoundException,
                               PricingException
Deprecated. 
Description copied from interface: LegacyOrderService
From the given OrderItemRequestDTO object, this will look through the order's DiscreteOrderItems to find the item with the matching orderItemId and update this item's quantity with the value of the quantity field in the OrderItemRequestDTO.

Specified by:
updateItemQuantity in interface LegacyOrderService
Throws:
ItemNotFoundException
PricingException

updateItemQuantity

public void updateItemQuantity(Order order,
                               OrderItem item,
                               boolean priceOrder)
                        throws ItemNotFoundException,
                               PricingException
Deprecated. 
Description copied from interface: LegacyOrderService
Updates the quantity and reprices the order. Removes the orderItem if the quantity is updated to 0 (or less).

Specified by:
updateItemQuantity in interface LegacyOrderService
Throws:
ItemNotFoundException
PricingException

removeAllFulfillmentGroupsFromOrder

public void removeAllFulfillmentGroupsFromOrder(Order order)
                                         throws PricingException
Deprecated. 
Specified by:
removeAllFulfillmentGroupsFromOrder in interface LegacyOrderService
Throws:
PricingException

removeAllFulfillmentGroupsFromOrder

public void removeAllFulfillmentGroupsFromOrder(Order order,
                                                boolean priceOrder)
                                         throws PricingException
Deprecated. 
Specified by:
removeAllFulfillmentGroupsFromOrder in interface LegacyOrderService
Throws:
PricingException

removeFulfillmentGroupFromOrder

public void removeFulfillmentGroupFromOrder(Order order,
                                            FulfillmentGroup fulfillmentGroup)
                                     throws PricingException
Deprecated. 
Specified by:
removeFulfillmentGroupFromOrder in interface LegacyOrderService
Throws:
PricingException

removeFulfillmentGroupFromOrder

public void removeFulfillmentGroupFromOrder(Order order,
                                            FulfillmentGroup fulfillmentGroup,
                                            boolean priceOrder)
                                     throws PricingException
Deprecated. 
Specified by:
removeFulfillmentGroupFromOrder in interface LegacyOrderService
Throws:
PricingException

removeNamedOrderForCustomer

public void removeNamedOrderForCustomer(String name,
                                        Customer customer)
Deprecated. 
Specified by:
removeNamedOrderForCustomer in interface LegacyOrderService

readPaymentInfosForOrder

public List<PaymentInfo> readPaymentInfosForOrder(Order order)
Deprecated. 
Specified by:
readPaymentInfosForOrder in interface LegacyOrderService

itemMatches

protected boolean itemMatches(DiscreteOrderItem item1,
                              DiscreteOrderItem item2)
Deprecated. 

findMatchingDiscreteItem

protected OrderItem findMatchingDiscreteItem(Order order,
                                             DiscreteOrderItem itemToFind)
Deprecated. 

bundleItemMatches

protected boolean bundleItemMatches(BundleOrderItem item1,
                                    BundleOrderItem item2)
Deprecated. 

findMatchingBundleItem

protected OrderItem findMatchingBundleItem(Order order,
                                           BundleOrderItem itemToFind)
Deprecated. 

findMatchingItem

protected OrderItem findMatchingItem(Order order,
                                     OrderItem itemToFind)
Deprecated. 

addOrderItemToBundle

public OrderItem addOrderItemToBundle(Order order,
                                      BundleOrderItem bundle,
                                      DiscreteOrderItem newOrderItem,
                                      boolean priceOrder)
                               throws PricingException
Deprecated. 
Specified by:
addOrderItemToBundle in interface LegacyOrderService
Throws:
PricingException

removeItemFromBundle

public Order removeItemFromBundle(Order order,
                                  BundleOrderItem bundle,
                                  OrderItem item,
                                  boolean priceOrder)
                           throws PricingException
Deprecated. 
Specified by:
removeItemFromBundle in interface LegacyOrderService
Throws:
PricingException

addOrUpdateOrderItemAttributes

public Order addOrUpdateOrderItemAttributes(Order order,
                                            OrderItem item,
                                            Map<String,String> attributeValues,
                                            boolean priceOrder)
                                     throws ItemNotFoundException,
                                            PricingException
Deprecated. 
Adds the passed in name/value pair to the order-item. If the attribute already exists, then it is updated with the new value.

If the value passed in is null and the attribute exists, it is removed from the order item.

Specified by:
addOrUpdateOrderItemAttributes in interface LegacyOrderService
Parameters:
order -
item -
attributeValues -
priceOrder -
Returns:
Throws:
ItemNotFoundException
PricingException

removeOrderItemAttribute

public Order removeOrderItemAttribute(Order order,
                                      OrderItem item,
                                      String attributeName,
                                      boolean priceOrder)
                               throws ItemNotFoundException,
                                      PricingException
Deprecated. 
Description copied from interface: LegacyOrderService
Adds the passed in name/value pair to the order-item. If the attribute already exists, then it is updated with the new value. If the value passed in is null and the attribute exists, it is removed from the order item. You may wish to set priceOrder to false if performing set of cart operations to avoid the expense of exercising the pricing engine until you are ready to finalize pricing after adding the last item.

Specified by:
removeOrderItemAttribute in interface LegacyOrderService
Returns:
Throws:
ItemNotFoundException
PricingException

createDefaultFulfillmentGroup

public FulfillmentGroup createDefaultFulfillmentGroup(Order order,
                                                      Address address)
Deprecated. 
Specified by:
createDefaultFulfillmentGroup in interface LegacyOrderService

getOrderDao

public OrderDao getOrderDao()
Deprecated. 

setOrderDao

public void setOrderDao(OrderDao orderDao)
Deprecated. 

getPaymentInfoDao

public PaymentInfoDao getPaymentInfoDao()
Deprecated. 

setPaymentInfoDao

public void setPaymentInfoDao(PaymentInfoDao paymentInfoDao)
Deprecated. 

getFulfillmentGroupDao

public FulfillmentGroupDao getFulfillmentGroupDao()
Deprecated. 

setFulfillmentGroupDao

public void setFulfillmentGroupDao(FulfillmentGroupDao fulfillmentGroupDao)
Deprecated. 

getFulfillmentGroupItemDao

public FulfillmentGroupItemDao getFulfillmentGroupItemDao()
Deprecated. 

setFulfillmentGroupItemDao

public void setFulfillmentGroupItemDao(FulfillmentGroupItemDao fulfillmentGroupItemDao)
Deprecated. 

getOrderItemService

public OrderItemService getOrderItemService()
Deprecated. 

setOrderItemService

public void setOrderItemService(OrderItemService orderItemService)
Deprecated. 

findOrderByOrderNumber

public Order findOrderByOrderNumber(String orderNumber)
Deprecated. 
Description copied from interface: OrderService
Looks up Orders and returns the order matching the given orderNumber

Specified by:
findOrderByOrderNumber in interface OrderService
Overrides:
findOrderByOrderNumber in class OrderServiceImpl
Returns:
the requested Order

updateOrder

protected Order updateOrder(Order order,
                            Boolean priceOrder)
                     throws PricingException
Deprecated. 
Throws:
PricingException

persistOrder

protected Order persistOrder(Order order)
Deprecated. 

createFulfillmentGroupItemFromOrderItem

protected FulfillmentGroupItem createFulfillmentGroupItemFromOrderItem(OrderItem orderItem,
                                                                       FulfillmentGroup fulfillmentGroup,
                                                                       int quantity)
Deprecated. 

removeOrderItemFromFullfillmentGroup

protected void removeOrderItemFromFullfillmentGroup(Order order,
                                                    OrderItem orderItem)
Deprecated. 

createDiscreteOrderItemRequest

protected DiscreteOrderItemRequest createDiscreteOrderItemRequest(DiscreteOrderItem discreteOrderItem)
Deprecated. 

createBundleOrderItemRequest

protected BundleOrderItemRequest createBundleOrderItemRequest(BundleOrderItem bundleOrderItem,
                                                              List<DiscreteOrderItemRequest> discreteOrderItemRequests)
Deprecated. 

validateOrder

protected Order validateOrder(Long orderId)
Deprecated. 
Returns the order associated with the passed in orderId.

Parameters:
orderId -
Returns:

validateProduct

protected Product validateProduct(Long productId)
Deprecated. 

determineCategory

protected Category determineCategory(Product product,
                                     Long categoryId)
Deprecated. 

determineSku

protected Sku determineSku(Product product,
                           Long skuId,
                           Map<String,String> attributeValues)
Deprecated. 

findMatchingSku

protected Sku findMatchingSku(Product product,
                              Map<String,String> attributeValues)
Deprecated. 
Checks to make sure the correct SKU is still attached to the order. For example, if you have the SKU for a Large, Red T-shirt in the cart and your UI allows the user to change the one of the attributes (e.g. red to black), then it is possible that the SKU needs to be adjusted as well.


checkSkuForMatch

protected boolean checkSkuForMatch(Sku sku,
                                   Map<String,String> attributeValues)
Deprecated. 

addItemToOrder

public Order addItemToOrder(Long orderId,
                            OrderItemRequestDTO orderItemRequestDTO,
                            boolean priceOrder)
                     throws PricingException
Deprecated. 
Description copied from interface: LegacyOrderService
Adds an item to the passed in order. The orderItemRequest can be sparsely populated. 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:
addItemToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException
See Also:
OrderItemRequestDTO

addDiscreteItemToOrder

@Deprecated
public OrderItem addDiscreteItemToOrder(Order order,
                                                   DiscreteOrderItemRequest itemRequest)
                                 throws PricingException
Deprecated. 

Specified by:
addDiscreteItemToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

addDiscreteItemToOrder

@Deprecated
public OrderItem addDiscreteItemToOrder(Order order,
                                                   DiscreteOrderItemRequest itemRequest,
                                                   boolean priceOrder)
                                 throws PricingException
Deprecated. 

Specified by:
addDiscreteItemToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

addSkuToOrder

@Deprecated
public OrderItem addSkuToOrder(Long orderId,
                                          Long skuId,
                                          Long productId,
                                          Long categoryId,
                                          Integer quantity)
                        throws PricingException
Deprecated. 

Specified by:
addSkuToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

addSkuToOrder

@Deprecated
public OrderItem addSkuToOrder(Long orderId,
                                          Long skuId,
                                          Long productId,
                                          Long categoryId,
                                          Integer quantity,
                                          Map<String,String> itemAttributes)
                        throws PricingException
Deprecated. 

Specified by:
addSkuToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

addSkuToOrder

@Deprecated
public OrderItem addSkuToOrder(Long orderId,
                                          Long skuId,
                                          Long productId,
                                          Long categoryId,
                                          Integer quantity,
                                          boolean priceOrder)
                        throws PricingException
Deprecated. 

Specified by:
addSkuToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

addSkuToOrder

@Deprecated
public OrderItem addSkuToOrder(Long orderId,
                                          Long skuId,
                                          Long productId,
                                          Long categoryId,
                                          Integer quantity,
                                          boolean priceOrder,
                                          Map<String,String> itemAttributes)
                        throws PricingException
Deprecated. 

Specified by:
addSkuToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

addOrderItemToOrder

@Deprecated
public OrderItem addOrderItemToOrder(Order order,
                                                OrderItem newOrderItem,
                                                boolean priceOrder)
                              throws PricingException
Deprecated. 

Specified by:
addOrderItemToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

addOrderItemToOrder

@Deprecated
public OrderItem addOrderItemToOrder(Order order,
                                                OrderItem newOrderItem)
                              throws PricingException
Deprecated. 

Specified by:
addOrderItemToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

addDynamicPriceDiscreteItemToOrder

@Deprecated
public OrderItem addDynamicPriceDiscreteItemToOrder(Order order,
                                                               DiscreteOrderItemRequest itemRequest,
                                                               HashMap skuPricingConsiderations)
                                             throws PricingException
Deprecated. 

Specified by:
addDynamicPriceDiscreteItemToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException

addDynamicPriceDiscreteItemToOrder

@Deprecated
public OrderItem addDynamicPriceDiscreteItemToOrder(Order order,
                                                               DiscreteOrderItemRequest itemRequest,
                                                               HashMap skuPricingConsiderations,
                                                               boolean priceOrder)
                                             throws PricingException
Deprecated. 

Specified by:
addDynamicPriceDiscreteItemToOrder in interface LegacyOrderService
Returns:
Throws:
PricingException


Copyright © 2013. All Rights Reserved.