com.elasticpath.cmweb.ajaxservice.impl
Class OrderAjaxServiceImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.cmweb.ajaxservice.impl.OrderAjaxServiceImpl
All Implemented Interfaces:
OrderAjaxService, EpService

public class OrderAjaxServiceImpl
extends AbstractEpServiceImpl
implements OrderAjaxService

This service provides access to functionality and data (beans) for manipulating order on the Javascript client.


Constructor Summary
OrderAjaxServiceImpl()
           
 
Method Summary
 Order addOrderNote(long orderUid, OrderNote newOrderNote)
          Add an orderNote.
 java.util.List findOrderByCriteria(OrderSearchCriteria orderSearchCriteria, int maxResults)
          Retrieve the list of OrderInfoAjaxBeans, whose specified property contain the given criteria value.
 void setOrderService(OrderService orderService)
          Set the orderService instance.
 Order updateOrderBillingAddress(long orderUid, OrderAddress billingAddress)
          Update the billing address of the order with the given orderUid.
 Order updateOrderStatus(long orderUid, OrderStatus newOrderStatus)
          Update the status of the order with the given orderUid.
 
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Constructor Detail

OrderAjaxServiceImpl

public OrderAjaxServiceImpl()
Method Detail

addOrderNote

public Order addOrderNote(long orderUid,
                          OrderNote newOrderNote)
Add an orderNote.

Specified by:
addOrderNote in interface OrderAjaxService
Parameters:
orderUid - the orderUid.
newOrderNote - the new order note.
Returns:
the update order.

findOrderByCriteria

public java.util.List findOrderByCriteria(OrderSearchCriteria orderSearchCriteria,
                                          int maxResults)
Retrieve the list of OrderInfoAjaxBeans, whose specified property contain the given criteria value. Set maxResults to -1 where use the global maxCmSearchResultCount setting in elasticpath.xml.

Specified by:
findOrderByCriteria in interface OrderAjaxService
Parameters:
orderSearchCriteria - criteria for order search.
maxResults - the max number of orders to return on search.
Returns:
list of orders matching the given criteria.

setOrderService

public void setOrderService(OrderService orderService)
Set the orderService instance.

Parameters:
orderService - the orderService instance.

updateOrderBillingAddress

public Order updateOrderBillingAddress(long orderUid,
                                       OrderAddress billingAddress)
Update the billing address of the order with the given orderUid.

Specified by:
updateOrderBillingAddress in interface OrderAjaxService
Parameters:
orderUid - the orderUid.
billingAddress - the update billing address.
Returns:
the update order.

updateOrderStatus

public Order updateOrderStatus(long orderUid,
                               OrderStatus newOrderStatus)
Update the status of the order with the given orderUid.

Specified by:
updateOrderStatus in interface OrderAjaxService
Parameters:
orderUid - the orderUid.
newOrderStatus - the new order status.
Returns:
the update order.