|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OrderService
Provides storage and access to Order
objects.
Method Summary | |
---|---|
Order |
add(Order order)
Adds the given order. |
Order |
addOrderReturn(long orderUid,
OrderReturn orderReturn)
Add the given OrderReturn to the order with given uid. |
java.util.List |
findAllUids()
Returns all order uids as a list. |
java.util.List |
findByCreatedDate(java.util.Date date)
Retrieves list of Order where the created date is later than the specified date. |
java.util.List |
findByUids(java.util.Collection orderUids)
Returns a list of Order based on the given uids. |
java.util.List |
findOrder(java.lang.String propertyName,
java.lang.String criteriaValue,
boolean isExactMatch)
Retrieve the list of orders, whose specified property matches the given criteria value. |
java.util.List |
findOrderAdvanced(AdvancedOrderSearchCriteria orderSearchCriteria,
int maxResults)
Advanced order search function based on the orderSearchCriteria and the max number of results to return. |
java.util.List |
findOrderByCriteria(OrderSearchCriteria orderSearchCriteria)
Retrieve the list of orders, whose specified property contain the given criteria value. |
java.util.List |
findOrderByCriteria(OrderSearchCriteria orderSearchCriteria,
int maxResults)
Retrieve the list of orders, whose specified property contain the given criteria value. |
java.util.List |
findOrderByCustomerCriteria(java.lang.String propertyName,
java.lang.String criteriaValue,
boolean isExactMatch)
Retrieve the list of orders, whose belonged customer's specified property matches the given criteria value. |
java.util.List |
findOrderByStatus(int orderStatus,
int paymentStatus,
int shipmentStatus)
Retrieve the list of orders with the specified statuses. |
java.util.List |
findUidsByModifiedDate(java.util.Date date)
Retrieves list of Order uids where the last modified date is later than the specified date. |
Order |
get(long orderUid)
Get the order with the given UID. |
java.lang.String |
getNextOrderNumber()
Returns the next order number. |
java.lang.Object |
getObject(long uid)
Generic get method for all persistable domain models. |
Order |
getOrderDetail(long uid)
Return the fully initialized order object. |
java.util.Map |
getOrderPaymentStatusMap()
Returns a map of order payment statuses. |
java.util.Map |
getOrderReturnReasonMap()
Returns a map of order return reasons. |
java.util.Map |
getOrderShipmentStatusMap()
Returns a map of order shipment statuses. |
java.util.Map |
getOrderSkuReturnQtyMap(long orderUid)
Get the orderSku uid -> returned quantity map for the order with given uid. |
java.util.Map |
getOrderStatusMap()
Returns a map of order statuses. |
java.util.List |
list()
List all orders stored in the database. |
OrderReturn |
recalculateOrderReturn(long orderUid,
OrderReturn orderReturn)
Recalculate the order return taxes, before-tax total and total. |
Order |
releaseOrderShipment(long orderUid,
long orderShipmentUid,
java.lang.String trackingCode,
boolean captureFund,
boolean sendConfEmail)
Capture the order balance amount and update the OrderShipment status on success. |
void |
setOrderPaymentStatusFactory(OrderPaymentStatusFactory orderPaymentStatusFactory)
Sets the OrderPaymentStatusFactory instance. |
void |
setOrderReturnReasonFactory(OrderReturnReasonFactory orderReturnReasonFactory)
Sets the OrderReturnReasonFactory instance. |
void |
setOrderShipmentStatusFactory(OrderShipmentStatusFactory orderShipmentStatusFactory)
Sets the OrderShipmentStatusFactory instance. |
OrderSku |
setOrderSkuProduct(OrderSku orderSku)
Retrieve the Product associated with the given orderSku based on the productUid saved. |
OrderSku |
setOrderSkuProductSku(OrderSku orderSku)
Retrieve the Product associated with the given orderSku based on the productUid saved. |
void |
setOrderStatusFactory(OrderStatusFactory orderStatusFactory)
Sets the OrderStatusFactory instance. |
Order |
update(Order order)
Updates the given order. |
Methods inherited from interface com.elasticpath.service.EpPersistenceService |
---|
getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
Order add(Order order) throws EpServiceException
order
- the order to add
EpServiceException
- - in case of any errorsOrder addOrderReturn(long orderUid, OrderReturn orderReturn)
OrderReturn
to the order with given uid.
orderUid
- orderUid the uid of the order.orderReturn
- orderReturn to be added.
java.util.List findAllUids()
java.util.List findByCreatedDate(java.util.Date date)
Order
where the created date is later than the specified date.
date
- date to compare with the created date
Order
whose created date is later than the specified datejava.util.List findByUids(java.util.Collection orderUids)
Order
based on the given uids. The returned orders will be populated based on the given load tuner.
orderUids
- a collection of order uids
Order
sjava.util.List findOrder(java.lang.String propertyName, java.lang.String criteriaValue, boolean isExactMatch)
propertyName
- order property to search on.criteriaValue
- criteria value to be used for searching.isExactMatch
- true for doing an exact match; false for doing a fuzzy match.
java.util.List findOrderAdvanced(AdvancedOrderSearchCriteria orderSearchCriteria, int maxResults)
orderSearchCriteria
- the order search criteria.maxResults
- the max number of orders to return on search.
java.util.List findOrderByCriteria(OrderSearchCriteria orderSearchCriteria)
orderSearchCriteria
- criteria for order search.
java.util.List findOrderByCriteria(OrderSearchCriteria orderSearchCriteria, int maxResults)
orderSearchCriteria
- criteria for order search.maxResults
- the max number of orders to return on search.
java.util.List findOrderByCustomerCriteria(java.lang.String propertyName, java.lang.String criteriaValue, boolean isExactMatch)
propertyName
- order's belonged customer property to search on.criteriaValue
- criteria value to be used for searching.isExactMatch
- true for doing an exact match; false for doing a fuzzy match.
java.util.List findOrderByStatus(int orderStatus, int paymentStatus, int shipmentStatus)
orderStatus
- the status of the orderpaymentStatus
- the status of the paymentreturnSummaryNodeshipmentStatus
- the status of the shipment
java.util.List findUidsByModifiedDate(java.util.Date date)
Order
uids where the last modified date is later than the specified date.
date
- date to compare with the last modified date
Order
whose last modified date is later than the specified dateOrder get(long orderUid) throws EpServiceException
orderUid
- the order UID
EpServiceException
- - in case of any errorsjava.lang.String getNextOrderNumber()
String
java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- the persisted instance uid
EpServiceException
- - in case of any errorsOrder getOrderDetail(long uid) throws EpServiceException
uid
- the persisted instance uid
EpServiceException
- - in case of any errorsjava.util.Map getOrderPaymentStatusMap()
java.util.Map getOrderReturnReasonMap()
java.util.Map getOrderShipmentStatusMap()
java.util.Map getOrderSkuReturnQtyMap(long orderUid)
orderUid
- the uid of the order.
java.util.Map getOrderStatusMap()
java.util.List list() throws EpServiceException
EpServiceException
- - in case of any errorsOrderReturn recalculateOrderReturn(long orderUid, OrderReturn orderReturn)
orderUid
- the uid of the order.orderReturn
- the orderReturn to be recalculated.
Order releaseOrderShipment(long orderUid, long orderShipmentUid, java.lang.String trackingCode, boolean captureFund, boolean sendConfEmail)
OrderShipment
status on success.
orderUid
- the uid of the order.orderShipmentUid
- the uid of the orderShipment to be released.trackingCode
- the trakcingCode for the orderShipment to be released.captureFund
- need to capture fund for this release or notsendConfEmail
- need to send customer a shipment confirmation email or not
void setOrderPaymentStatusFactory(OrderPaymentStatusFactory orderPaymentStatusFactory)
OrderPaymentStatusFactory
instance.
orderPaymentStatusFactory
- the OrderPaymentStatusFactory
instance.void setOrderReturnReasonFactory(OrderReturnReasonFactory orderReturnReasonFactory)
OrderReturnReasonFactory
instance.
orderReturnReasonFactory
- the OrderReturnReasonFactory
instance.void setOrderShipmentStatusFactory(OrderShipmentStatusFactory orderShipmentStatusFactory)
OrderShipmentStatusFactory
instance.
orderShipmentStatusFactory
- the OrderShipmentStatusFactory
instance.OrderSku setOrderSkuProduct(OrderSku orderSku)
orderSku
- the orderSku instatnce
OrderSku setOrderSkuProductSku(OrderSku orderSku)
orderSku
- the orderSku instatnce
void setOrderStatusFactory(OrderStatusFactory orderStatusFactory)
OrderStatusFactory
instance.
orderStatusFactory
- the OrderStatusFactory
instance.Order update(Order order) throws EpServiceException
order
- the order to update
EpServiceException
- - in case of any errors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |