public class AdminOrderIntegrationMgr extends AdminBaseMgr implements AdminOrderIntegrationMgrInterface
AdminBaseMgr.StaticData
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
protected static java.lang.String |
mutex
Mutex
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminOrderIntegrationMgr(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
afterInsertOrderReturn(AdminOrderReturn orderReturn)
Called after an order return has been inserted
|
void |
changeOrderReturnStatus(int orderReturnId,
int currentStatus,
int newStatus)
Called whenever the state of an order return changes
|
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 void |
exportOrder(int orderId,
int operationType,
int newStatus)
Exports the order for ERP XML Integration.
|
java.lang.String |
getCouponCode(java.lang.String options)
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.
|
java.lang.String |
getRMACode(int orderId)
This method may be customized in order to implement an algorithm that creates an RMA code for
the order.
|
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 |
manageMultiVendor(int orderId,
int currentStatus,
int newStatus)
We determine whether this order has a parent.
|
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
|
addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkAPICallEnabled, checkIntInRange, checkIntIsSet, checkRequired, executeQuery, executeQuery, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminContentMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustPwdHistMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminEngineCacheMgr, getAdminEventMgr, getAdminExecuteMgr, getAdminFileMgr, getAdminFilterMgr, getAdminHtmlMgr, getAdminImportMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminMiscPriceMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminServletMgr, getAdminShipmentMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminSuggestionMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getDebugStackTraceExclusions, getEmailThreadGracefulShutdownTimeout, getExportMgr, getExportMgr, getExportXMLData, getIntFromString, getKkAdminPropsFilePath, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getNewCriteria, getNewCriteria, getOtherModuleByName, getPostSearchText, getPreSearchText, getProductsToCategoresCriteria, getPropertyValue, getPropertyValue, getPropertyValueAsBool, getPropertyValueAsInt, getPropertyValueAsLong, getRecordCount, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isCommunity, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, isUnix, isWindows, manageException, manageThrowable, refreshConfigs, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNow
protected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
public AdminOrderIntegrationMgr(KKAdminIf eng) throws java.lang.Exception
eng
- KKAdmin enginejava.lang.Exception
- an unexpected exceptionpublic void changeOrderStatus(int orderId, int currentStatus, int newStatus)
AdminOrderIntegrationMgrInterface
changeOrderStatus
in interface AdminOrderIntegrationMgrInterface
orderId
- Id of the ordercurrentStatus
- Current state of the ordernewStatus
- New state of the orderprotected void createInvoice(int orderId)
orderId
- the orderIdprotected void manageDigitalDownloads(int orderId)
orderId
- the orderIdprivate void manageGiftRegistries(int orderId)
orderId
- the orderIdprivate void manageGiftCertificates(int orderId)
orderId
- the orderIdprivate java.lang.String getGiftCertificateFilePath(AdminOrderProduct op, java.lang.String couponCode) throws java.io.IOException
op
- the opcouponCode
- the couponCodejava.io.IOException
- an unexpected IOException exceptionpublic java.lang.String getCouponCode(java.lang.String options)
getCouponCode
in interface AdminOrderIntegrationMgrInterface
options
- Optional parameter to control the type of code returnedprivate void manageRewardPoints(int orderId)
locale
attribute of the order.orderId
- the orderIdprivate 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
- the orderIdprivate com.konakart.appif.ExportOrderResponseIf createXmlOrderExport(int orderId)
orderId
- the orderIdprivate void exportOrder(int orderId, int operationType, int newStatus)
orderId
- the id of the order to post to the Message QueueoperationType
- The type of operationnewStatus
- The new order stateprivate void postOrderToQueue(int orderId)
orderId
- the id of the order to post to the Message Queueprivate void manageTaxCloud(int orderId)
orderId
- the orderIdprivate void manageBookings(int orderId)
orderId
- the orderIdprivate void manageMultiVendor(int orderId, int currentStatus, int newStatus)
newStatus
is
Delivered then we look at the current status of all of the vendor orders to see whether they
have all been fully delivered. If this is the case then we set the status of the parent order
to delivered otherwise to partially delivered.orderId
- the orderIdcurrentStatus
- the currentStatusnewStatus
- the newStatuspublic java.lang.String getRMACode(int orderId)
getRMACode
in interface AdminOrderIntegrationMgrInterface
orderId
- Id of the orderpublic void afterInsertOrderReturn(AdminOrderReturn orderReturn)
afterInsertOrderReturn
in interface AdminOrderIntegrationMgrInterface
orderReturn
- The order return that has just been insertedpublic void changeOrderReturnStatus(int orderReturnId, int currentStatus, int newStatus)
changeOrderReturnStatus
in interface AdminOrderIntegrationMgrInterface
orderReturnId
- Id of the order returncurrentStatus
- Current statusnewStatus
- New statusCopyright © 2018 DS Data Systems UK Ltd.