|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminOrderIntegrationMgr
public class AdminOrderIntegrationMgr
A default implementation of the AdminOrderIntegrationMgrInterface
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
AdminBaseMgr.StaticData |
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
the log |
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir |
Constructor Summary | |
---|---|
AdminOrderIntegrationMgr(KKAdminIf eng)
Constructor |
Method Summary | |
---|---|
void |
changeOrderStatus(int orderId,
int currentStatus,
int newStatus)
Called just after an order status change |
protected void |
createInvoice(int orderId)
Creates the PDF invoice using the AdminPdfMgr if the code is present. |
private com.konakart.appif.ExportOrderResponseIf |
createOrderExportForShipping(int orderId)
Creates an Order Export file for the order. |
private com.konakart.appif.ExportOrderResponseIf |
createXmlOrderExport(int orderId)
Creates an XML Order Export file for the order. |
private java.lang.String |
getCouponCode()
Method returns a random coupon code. |
private java.lang.String |
getGiftCertificateFilePath(AdminOrderProduct op,
java.lang.String couponCode)
Creates and returns the path of the file that contains the code of the gift certificate that can be downloaded. |
private void |
manageBookings(int orderId)
We get the order from the database and check whether any of the ordered products are bookable products. |
protected void |
manageDigitalDownloads(int orderId)
We get the order from the database and check whether any of the ordered products are digital downloads. |
private void |
manageGiftCertificates(int orderId)
We get the order from the database and check whether any of the ordered products are gift certificates. |
private void |
manageGiftRegistries(int orderId)
We get the order from the database and check whether any of the ordered products were ordered from a gift registry. |
private void |
manageRewardPoints(int orderId)
We get the order from the database, and depending on the state of the order, reward points are assigned to the customer and / or removed from the customer's total. |
private void |
manageTaxCloud(int orderId)
The order details are sent to the tax cloud tax service. |
private void |
postOrderToQueue(int orderId)
Posts the order to the Order Message Queue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
public AdminOrderIntegrationMgr(KKAdminIf eng) throws java.lang.Exception
eng
- KKAdmin engine
java.lang.Exception
Method Detail |
---|
public void changeOrderStatus(int orderId, int currentStatus, int newStatus)
AdminOrderIntegrationMgrInterface
changeOrderStatus
in interface AdminOrderIntegrationMgrInterface
protected void createInvoice(int orderId)
orderId
- protected void manageDigitalDownloads(int orderId)
orderId
- private void manageGiftRegistries(int orderId)
orderId
- private void manageGiftCertificates(int orderId)
orderId
- private java.lang.String getGiftCertificateFilePath(AdminOrderProduct op, java.lang.String couponCode) throws java.io.IOException
op
- couponCode
-
java.io.IOException
private java.lang.String getCouponCode()
private void manageRewardPoints(int orderId)
locale
attribute of the order.
orderId
- private com.konakart.appif.ExportOrderResponseIf createOrderExportForShipping(int orderId)
Typically this would be used to create an import file for the purposes of integrating KonaKart with a 3rd Party system such as UPS WorldShip
orderId
-
private com.konakart.appif.ExportOrderResponseIf createXmlOrderExport(int orderId)
orderId
-
private void postOrderToQueue(int orderId)
orderId
- the id of the order to post to the Message Queueprivate void manageTaxCloud(int orderId)
orderId
- private void manageBookings(int orderId)
orderId
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |