|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OrderMgrIf
OrderMgrIf Interface which an implementation of this manager must adhere to.
| Method Summary | |
|---|---|
Order |
changeDeliveryAddress(java.lang.String sessionId,
OrderIf order,
AddressIf deliveryAddress)
The current delivery address is substituted with the new one. |
void |
changeOrderStatus(int orderId,
int status,
boolean customerNotified,
java.lang.String comments)
The state of the current order id changed and an orders_status_history record is added to the order to keep track of the change. |
void |
changeOrderStatus(java.lang.String sessionId,
int orderId,
int status,
boolean customerNotified,
java.lang.String comments)
The state of the current order id changed and an orders_status_history record is added to the order to keep track of the change. |
Order |
createAndSaveOrder(java.lang.String emailAddr,
java.lang.String password,
CustomerRegistrationIf custReg,
BasketIf[] basketItemArray,
java.lang.String shippingModule,
java.lang.String paymentModule,
int languageId)
|
Order |
createOrder(java.lang.String sessionId,
BasketIf[] basketItemArray,
int languageId)
An order object is returned with all addresses populated with the default address of the customer referenced by the session Id. |
Order |
createOrderWithOptions(java.lang.String sessionId,
BasketIf[] basketItemArray,
CreateOrderOptionsIf options,
int languageId)
An order object is returned with all addresses populated with the default address of the customer referenced by the session Id. |
void |
deleteOrderIdForSecretKey(java.lang.String secretKey)
The order id stored in the database and indexed by the secretKey, is deleted |
OrderStatus[] |
getAllOrderStatuses(int languageId)
Returns an array of Order Status objects for a given language |
IpnHistory[] |
getIpnHistory(int orderId)
Retrieve an array of IpnHistory objects for an order. |
IpnHistory[] |
getIpnHistory(java.lang.String sessionId,
int orderId)
Retrieve an array of IpnHistory objects for an order. |
Order |
getOrder(java.lang.String sessionId,
int orderId,
int languageId)
Retrieve an order for the customer referenced by the sessionId. |
Order |
getOrderForOrderId(int orderId,
int languageId)
Retrieve an order for an orderId. |
int |
getOrderIdFromSecretKey(java.lang.String secretKey)
The order id stored in the database and indexed by the secretKey, is returned |
Orders |
getOrdersPerCustomer(DataDescriptorIf dataDesc,
java.lang.String sessionId,
int languageId)
Retrieve a number of orders for the customer referenced by the sessionId. |
int |
getOrderStatus(java.lang.String sessionId,
int orderId)
Get the order status for an order. |
java.lang.String |
getSecretKeyForOrderId(int orderId)
Every time we send a notification to a payment gateway, we get a new secret key for the order, which is sent back to us in the reply. |
java.lang.String |
getStatusText(int statusId,
int languageId)
Returns the text of a status from the orders_status table |
TaxRate[] |
getTaxRateObjectsPerOrder(Order order)
Returns a list of TaxRate objects used by this order. |
int |
saveIpnHistory(java.lang.String sessionId,
IpnHistoryIf ipnHistory)
The IpnHistory object is saved in the database. |
int |
saveOrder(java.lang.String sessionId,
OrderIf order,
int languageId)
A new order is created in the DB. |
Orders |
searchForOrdersPerCustomer(java.lang.String sessionId,
DataDescriptorIf dataDesc,
OrderSearchIf orderSearch,
int languageId)
Return orders matching the search criteria. |
void |
setCreditCardDetailsOnOrder(java.lang.String sessionId,
int orderId,
CreditCardIf card)
The credit card details in the CreditCard object passed in as a parameter, are saved in the database for an existing order. |
void |
setRewardPointReservationId(int customerId,
int orderId,
int reservationId)
Verifies that the order belongs to the customer identified by the customerId
parameter and then updates the reservation id. |
void |
setRewardPointReservationId(java.lang.String sessionId,
int orderId,
int reservationId)
Verifies that the order belongs to the customer identified by the sessionId
parameter and then updates the reservation id. |
void |
updateInventory(java.lang.String sessionId,
int orderId)
If the STOCK_LIMITED configuration variable is set to true, we subtract the products in stock by the product orders. |
void |
updateInventoryWithOptions(java.lang.String sessionId,
int orderId,
CreateOrderOptionsIf options)
If the STOCK_LIMITED configuration variable is set to true, we subtract the products in stock by the product orders. |
| Method Detail |
|---|
int saveOrder(java.lang.String sessionId,
OrderIf order,
int languageId)
throws java.lang.Exception
sessionId - order - languageId -
java.lang.Exception
Order createOrder(java.lang.String sessionId,
BasketIf[] basketItemArray,
int languageId)
throws java.lang.Exception
sessionId - basketItemArray - languageId -
java.lang.Exception
Order createOrderWithOptions(java.lang.String sessionId,
BasketIf[] basketItemArray,
CreateOrderOptionsIf options,
int languageId)
throws java.lang.Exception
sessionId - basketItemArray - options - languageId -
java.lang.Exception
Order changeDeliveryAddress(java.lang.String sessionId,
OrderIf order,
AddressIf deliveryAddress)
throws java.lang.Exception
sessionId - order - deliveryAddress -
java.lang.Exception
TaxRate[] getTaxRateObjectsPerOrder(Order order)
throws java.lang.Exception
order -
java.lang.Exception
Orders getOrdersPerCustomer(DataDescriptorIf dataDesc,
java.lang.String sessionId,
int languageId)
throws java.lang.Exception
dataDesc - sessionId - languageId -
java.lang.Exception
Order getOrder(java.lang.String sessionId,
int orderId,
int languageId)
throws java.lang.Exception
sessionId - orderId - languageId -
java.lang.Exception
Order getOrderForOrderId(int orderId,
int languageId)
throws java.lang.Exception
orderId - languageId -
java.lang.Exception
java.lang.String getStatusText(int statusId,
int languageId)
throws java.lang.Exception
statusId - languageId -
java.lang.Exception
void changeOrderStatus(java.lang.String sessionId,
int orderId,
int status,
boolean customerNotified,
java.lang.String comments)
throws java.lang.Exception
sessionId - orderId - status - customerNotified - Has the customer been notifiedcomments -
java.lang.Exception
void changeOrderStatus(int orderId,
int status,
boolean customerNotified,
java.lang.String comments)
throws java.lang.Exception
orderId - status - customerNotified - Has the customer been notifiedcomments -
java.lang.Exception
void updateInventory(java.lang.String sessionId,
int orderId)
throws java.lang.Exception
sessionId - orderId -
java.lang.Exception
void updateInventoryWithOptions(java.lang.String sessionId,
int orderId,
CreateOrderOptionsIf options)
throws java.lang.Exception
sessionId - orderId - options -
java.lang.Exception
java.lang.String getSecretKeyForOrderId(int orderId)
throws java.lang.Exception
orderId -
java.lang.Exception
int getOrderIdFromSecretKey(java.lang.String secretKey)
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException
secretKey -
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
void deleteOrderIdForSecretKey(java.lang.String secretKey)
throws org.apache.torque.TorqueException
secretKey -
org.apache.torque.TorqueException
int saveIpnHistory(java.lang.String sessionId,
IpnHistoryIf ipnHistory)
throws java.lang.Exception
sessionId - ipnHistory -
java.lang.Exception
Order createAndSaveOrder(java.lang.String emailAddr,
java.lang.String password,
CustomerRegistrationIf custReg,
BasketIf[] basketItemArray,
java.lang.String shippingModule,
java.lang.String paymentModule,
int languageId)
throws java.lang.Exception
emailAddr - password - custReg - basketItemArray - shippingModule - paymentModule - languageId -
java.lang.Exception
void setCreditCardDetailsOnOrder(java.lang.String sessionId,
int orderId,
CreditCardIf card)
throws java.lang.Exception
sessionId - orderId - card -
java.lang.Exception
void setRewardPointReservationId(java.lang.String sessionId,
int orderId,
int reservationId)
throws java.lang.Exception
sessionId
parameter and then updates the reservation id.
sessionId - orderId - reservationId -
java.lang.Exception
void setRewardPointReservationId(int customerId,
int orderId,
int reservationId)
throws java.lang.Exception
customerId
parameter and then updates the reservation id.
customerId - orderId - reservationId -
java.lang.Exception
IpnHistory[] getIpnHistory(int orderId)
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException
orderId -
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
IpnHistory[] getIpnHistory(java.lang.String sessionId,
int orderId)
throws java.lang.Exception
sessionId - The session id of the logged in userorderId - The numeric id of the order
java.lang.Exception
int getOrderStatus(java.lang.String sessionId,
int orderId)
throws java.lang.Exception
sessionId - The session id of the logged in userorderId - The numeric id of the order
java.lang.Exception
Orders searchForOrdersPerCustomer(java.lang.String sessionId,
DataDescriptorIf dataDesc,
OrderSearchIf orderSearch,
int languageId)
throws java.lang.Exception
sessionId - dataDesc - orderSearch - languageId -
java.lang.Exception
OrderStatus[] getAllOrderStatuses(int languageId)
throws java.lang.Exception
languageId -
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||