org.broadleafcommerce.core.order.service
Interface OrderService

All Known Subinterfaces:
CartService
All Known Implementing Classes:
CartServiceImpl, OrderServiceImpl

public interface OrderService


Method Summary
 OrderItem addBundleItemToOrder(Order order, BundleOrderItemRequest itemRequest)
           
 OrderItem addBundleItemToOrder(Order order, BundleOrderItemRequest itemRequest, boolean priceOrder)
           
 OrderItem addDiscreteItemToOrder(Order order, DiscreteOrderItemRequest itemRequest)
           
 OrderItem addDiscreteItemToOrder(Order order, DiscreteOrderItemRequest itemRequest, boolean priceOrder)
           
 OrderItem addDynamicPriceDiscreteItemToOrder(Order order, DiscreteOrderItemRequest itemRequest, HashMap skuPricingConsiderations)
           
 OrderItem addDynamicPriceDiscreteItemToOrder(Order order, DiscreteOrderItemRequest itemRequest, HashMap skuPricingConsiderations, boolean priceOrder)
           
 FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest)
           
 FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest, boolean priceOrder)
           
 FulfillmentGroup addFulfillmentGroupToOrder(Order order, FulfillmentGroup fulfillmentGroup)
           
 FulfillmentGroup addFulfillmentGroupToOrder(Order order, FulfillmentGroup fulfillmentGroup, boolean priceOrder)
           
 OrderItem addGiftWrapItemToOrder(Order order, GiftWrapOrderItemRequest itemRequest)
           
 OrderItem addGiftWrapItemToOrder(Order order, GiftWrapOrderItemRequest itemRequest, boolean priceOrder)
           
 FulfillmentGroup addItemToFulfillmentGroup(OrderItem item, FulfillmentGroup fulfillmentGroup)
           
 FulfillmentGroup addItemToFulfillmentGroup(OrderItem item, FulfillmentGroup fulfillmentGroup, boolean priceOrder)
           
 FulfillmentGroup addItemToFulfillmentGroup(OrderItem item, FulfillmentGroup fulfillmentGroup, int quantity)
           
 FulfillmentGroup addItemToFulfillmentGroup(OrderItem item, FulfillmentGroup fulfillmentGroup, int quantity, boolean priceOrder)
           
 Order addOfferCode(Order order, OfferCode offerCode, boolean priceOrder)
           
 OrderItem addOrderItemToBundle(Order order, BundleOrderItem bundle, DiscreteOrderItem newOrderItem, boolean priceOrder)
           
 OrderItem addOrderItemToOrder(Order order, OrderItem newOrderItem)
           
 OrderItem addOrderItemToOrder(Order order, OrderItem newOrderItem, boolean priceOrder)
           
 Order addOrUpdateOrderItemAttributes(Order order, OrderItem item, Map<String,String> attributeValues, boolean priceOrder)
          Adds the passed in name/value pair to the order-item.
 PaymentInfo addPaymentToOrder(Order order, PaymentInfo payment)
           
 PaymentInfo addPaymentToOrder(Order order, PaymentInfo payment, Referenced securePaymentInfo)
           
 OrderItem addSkuToOrder(Long orderId, Long skuId, Long productId, Long categoryId, Integer quantity)
           
 OrderItem addSkuToOrder(Long orderId, Long skuId, Long productId, Long categoryId, Integer quantity, boolean priceOrder)
           
 OrderItem addSkuToOrder(Long orderId, Long skuId, Long productId, Long categoryId, Integer quantity, boolean priceOrder, Map<String,String> orderItemAttributes)
           
 OrderItem addSkuToOrder(Long orderId, Long skuId, Long productId, Long categoryId, Integer quantity, Map<String,String> orderItemAttributes)
           
 void cancelOrder(Order order)
           
 Order confirmOrder(Order order)
           
 FulfillmentGroup createDefaultFulfillmentGroup(Order order, Address address)
           
 DiscreteOrderItemRequest createDiscreteOrderItemRequest(Long skuId, Long productId, Long categoryId, Integer quantity)
           
 Order createNamedOrderForCustomer(String name, Customer customer)
           
 FulfillmentGroup findDefaultFulfillmentGroupForOrder(Order order)
           
 Order findNamedOrderForCustomer(String name, Customer customer)
           
 Order findOrderById(Long orderId)
           
 Order findOrderByOrderNumber(String orderNumber)
           
 List<Order> findOrdersForCustomer(Customer customer)
           
 List<Order> findOrdersForCustomer(Customer customer, OrderStatus status)
           
 List<PaymentInfo> readPaymentInfosForOrder(Order order)
           
 void removeAllFulfillmentGroupsFromOrder(Order order)
           
 void removeAllFulfillmentGroupsFromOrder(Order order, boolean priceOrder)
           
 Order removeAllOfferCodes(Order order, boolean priceOrder)
           
 void removeAllPaymentsFromOrder(Order order)
           
 void removeFulfillmentGroupFromOrder(Order order, FulfillmentGroup fulfillmentGroup)
           
 void removeFulfillmentGroupFromOrder(Order order, FulfillmentGroup fulfillmentGroup, boolean priceOrder)
           
 Order removeItemFromBundle(Order order, BundleOrderItem bundle, OrderItem item, boolean priceOrder)
           
 Order removeItemFromOrder(Long orderId, Long itemId)
           
 Order removeItemFromOrder(Long orderId, Long itemId, boolean priceOrder)
           
 Order removeItemFromOrder(Order order, OrderItem item)
           
 Order removeItemFromOrder(Order order, OrderItem item, boolean priceOrder)
           
 void removeNamedOrderForCustomer(String name, Customer customer)
           
 Order removeOfferCode(Order order, OfferCode offerCode, boolean priceOrder)
           
 Order removeOrderItemAttribute(Order order, OrderItem item, String attributeName, boolean priceOrder)
          Adds the passed in name/value pair to the order-item.
 void removePaymentsFromOrder(Order order, PaymentInfoType paymentInfoType)
           
 Order save(Order order, Boolean priceOrder)
           
 void updateItemQuantity(Order order, OrderItem item)
           
 void updateItemQuantity(Order order, OrderItem item, boolean priceOrder)
           
 

Method Detail

createNamedOrderForCustomer

Order createNamedOrderForCustomer(String name,
                                  Customer customer)

save

Order save(Order order,
           Boolean priceOrder)
           throws PricingException
Throws:
PricingException

findOrderById

Order findOrderById(Long orderId)

findOrdersForCustomer

List<Order> findOrdersForCustomer(Customer customer)

findOrdersForCustomer

List<Order> findOrdersForCustomer(Customer customer,
                                  OrderStatus status)

findNamedOrderForCustomer

Order findNamedOrderForCustomer(String name,
                                Customer customer)

findDefaultFulfillmentGroupForOrder

FulfillmentGroup findDefaultFulfillmentGroupForOrder(Order order)

addDiscreteItemToOrder

OrderItem addDiscreteItemToOrder(Order order,
                                 DiscreteOrderItemRequest itemRequest)
                                 throws PricingException
Throws:
PricingException

addDiscreteItemToOrder

OrderItem addDiscreteItemToOrder(Order order,
                                 DiscreteOrderItemRequest itemRequest,
                                 boolean priceOrder)
                                 throws PricingException
Throws:
PricingException

addGiftWrapItemToOrder

OrderItem addGiftWrapItemToOrder(Order order,
                                 GiftWrapOrderItemRequest itemRequest)
                                 throws PricingException
Throws:
PricingException

addGiftWrapItemToOrder

OrderItem addGiftWrapItemToOrder(Order order,
                                 GiftWrapOrderItemRequest itemRequest,
                                 boolean priceOrder)
                                 throws PricingException
Throws:
PricingException

addBundleItemToOrder

OrderItem addBundleItemToOrder(Order order,
                               BundleOrderItemRequest itemRequest)
                               throws PricingException
Throws:
PricingException

addBundleItemToOrder

OrderItem addBundleItemToOrder(Order order,
                               BundleOrderItemRequest itemRequest,
                               boolean priceOrder)
                               throws PricingException
Throws:
PricingException

addPaymentToOrder

PaymentInfo addPaymentToOrder(Order order,
                              PaymentInfo payment)

addPaymentToOrder

PaymentInfo addPaymentToOrder(Order order,
                              PaymentInfo payment,
                              Referenced securePaymentInfo)

addFulfillmentGroupToOrder

FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest)
                                            throws PricingException
Throws:
PricingException

addFulfillmentGroupToOrder

FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest,
                                            boolean priceOrder)
                                            throws PricingException
Throws:
PricingException

addFulfillmentGroupToOrder

FulfillmentGroup addFulfillmentGroupToOrder(Order order,
                                            FulfillmentGroup fulfillmentGroup)
                                            throws PricingException
Throws:
PricingException

addFulfillmentGroupToOrder

FulfillmentGroup addFulfillmentGroupToOrder(Order order,
                                            FulfillmentGroup fulfillmentGroup,
                                            boolean priceOrder)
                                            throws PricingException
Throws:
PricingException

addItemToFulfillmentGroup

FulfillmentGroup addItemToFulfillmentGroup(OrderItem item,
                                           FulfillmentGroup fulfillmentGroup,
                                           int quantity)
                                           throws PricingException
Throws:
PricingException

addItemToFulfillmentGroup

FulfillmentGroup addItemToFulfillmentGroup(OrderItem item,
                                           FulfillmentGroup fulfillmentGroup,
                                           int quantity,
                                           boolean priceOrder)
                                           throws PricingException
Throws:
PricingException

addItemToFulfillmentGroup

FulfillmentGroup addItemToFulfillmentGroup(OrderItem item,
                                           FulfillmentGroup fulfillmentGroup)
                                           throws PricingException
Throws:
PricingException

addItemToFulfillmentGroup

FulfillmentGroup addItemToFulfillmentGroup(OrderItem item,
                                           FulfillmentGroup fulfillmentGroup,
                                           boolean priceOrder)
                                           throws PricingException
Throws:
PricingException

updateItemQuantity

void updateItemQuantity(Order order,
                        OrderItem item)
                        throws ItemNotFoundException,
                               PricingException
Throws:
ItemNotFoundException
PricingException

updateItemQuantity

void updateItemQuantity(Order order,
                        OrderItem item,
                        boolean priceOrder)
                        throws ItemNotFoundException,
                               PricingException
Throws:
ItemNotFoundException
PricingException

removeFulfillmentGroupFromOrder

void removeFulfillmentGroupFromOrder(Order order,
                                     FulfillmentGroup fulfillmentGroup)
                                     throws PricingException
Throws:
PricingException

removeFulfillmentGroupFromOrder

void removeFulfillmentGroupFromOrder(Order order,
                                     FulfillmentGroup fulfillmentGroup,
                                     boolean priceOrder)
                                     throws PricingException
Throws:
PricingException

removeItemFromOrder

Order removeItemFromOrder(Order order,
                          OrderItem item)
                          throws PricingException
Throws:
PricingException

removeItemFromOrder

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

addOfferCode

Order addOfferCode(Order order,
                   OfferCode offerCode,
                   boolean priceOrder)
                   throws PricingException,
                          OfferMaxUseExceededException
Throws:
PricingException
OfferMaxUseExceededException

removeOfferCode

Order removeOfferCode(Order order,
                      OfferCode offerCode,
                      boolean priceOrder)
                      throws PricingException
Throws:
PricingException

removeAllOfferCodes

Order removeAllOfferCodes(Order order,
                          boolean priceOrder)
                          throws PricingException
Throws:
PricingException

removeNamedOrderForCustomer

void removeNamedOrderForCustomer(String name,
                                 Customer customer)

confirmOrder

Order confirmOrder(Order order)

cancelOrder

void cancelOrder(Order order)

removeAllFulfillmentGroupsFromOrder

void removeAllFulfillmentGroupsFromOrder(Order order)
                                         throws PricingException
Throws:
PricingException

removeAllFulfillmentGroupsFromOrder

void removeAllFulfillmentGroupsFromOrder(Order order,
                                         boolean priceOrder)
                                         throws PricingException
Throws:
PricingException

readPaymentInfosForOrder

List<PaymentInfo> readPaymentInfosForOrder(Order order)

addSkuToOrder

OrderItem addSkuToOrder(Long orderId,
                        Long skuId,
                        Long productId,
                        Long categoryId,
                        Integer quantity)
                        throws PricingException
Throws:
PricingException

addSkuToOrder

OrderItem addSkuToOrder(Long orderId,
                        Long skuId,
                        Long productId,
                        Long categoryId,
                        Integer quantity,
                        Map<String,String> orderItemAttributes)
                        throws PricingException
Throws:
PricingException

addSkuToOrder

OrderItem addSkuToOrder(Long orderId,
                        Long skuId,
                        Long productId,
                        Long categoryId,
                        Integer quantity,
                        boolean priceOrder)
                        throws PricingException
Throws:
PricingException

addSkuToOrder

OrderItem addSkuToOrder(Long orderId,
                        Long skuId,
                        Long productId,
                        Long categoryId,
                        Integer quantity,
                        boolean priceOrder,
                        Map<String,String> orderItemAttributes)
                        throws PricingException
Throws:
PricingException

removeItemFromOrder

Order removeItemFromOrder(Long orderId,
                          Long itemId)
                          throws PricingException
Throws:
PricingException

removeItemFromOrder

Order removeItemFromOrder(Long orderId,
                          Long itemId,
                          boolean priceOrder)
                          throws PricingException
Throws:
PricingException

removeAllPaymentsFromOrder

void removeAllPaymentsFromOrder(Order order)

createDefaultFulfillmentGroup

FulfillmentGroup createDefaultFulfillmentGroup(Order order,
                                               Address address)

addOrderItemToOrder

OrderItem addOrderItemToOrder(Order order,
                              OrderItem newOrderItem)
                              throws PricingException
Throws:
PricingException

addOrderItemToOrder

OrderItem addOrderItemToOrder(Order order,
                              OrderItem newOrderItem,
                              boolean priceOrder)
                              throws PricingException
Throws:
PricingException

findOrderByOrderNumber

Order findOrderByOrderNumber(String orderNumber)

removePaymentsFromOrder

void removePaymentsFromOrder(Order order,
                             PaymentInfoType paymentInfoType)

createDiscreteOrderItemRequest

DiscreteOrderItemRequest createDiscreteOrderItemRequest(Long skuId,
                                                        Long productId,
                                                        Long categoryId,
                                                        Integer quantity)

addDynamicPriceDiscreteItemToOrder

OrderItem addDynamicPriceDiscreteItemToOrder(Order order,
                                             DiscreteOrderItemRequest itemRequest,
                                             HashMap skuPricingConsiderations)
                                             throws PricingException
Throws:
PricingException

addDynamicPriceDiscreteItemToOrder

OrderItem addDynamicPriceDiscreteItemToOrder(Order order,
                                             DiscreteOrderItemRequest itemRequest,
                                             HashMap skuPricingConsiderations,
                                             boolean priceOrder)
                                             throws PricingException
Throws:
PricingException

addOrderItemToBundle

OrderItem addOrderItemToBundle(Order order,
                               BundleOrderItem bundle,
                               DiscreteOrderItem newOrderItem,
                               boolean priceOrder)
                               throws PricingException
Throws:
PricingException

removeItemFromBundle

Order removeItemFromBundle(Order order,
                           BundleOrderItem bundle,
                           OrderItem item,
                           boolean priceOrder)
                           throws PricingException
Throws:
PricingException

addOrUpdateOrderItemAttributes

Order addOrUpdateOrderItemAttributes(Order order,
                                     OrderItem item,
                                     Map<String,String> attributeValues,
                                     boolean priceOrder)
                                     throws ItemNotFoundException,
                                            PricingException
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 or empty string and the attribute exists, it is removed from the order item.

Parameters:
order -
item -
attributeValues -
priceOrder -
Returns:
Throws:
ItemNotFoundException
PricingException

removeOrderItemAttribute

Order removeOrderItemAttribute(Order order,
                               OrderItem item,
                               String attributeName,
                               boolean priceOrder)
                               throws ItemNotFoundException,
                                      PricingException
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.

Parameters:
order -
item -
attributeName -
priceOrder -
Returns:
Throws:
ItemNotFoundException
PricingException


Copyright © 2012. All Rights Reserved.