public class AdminImportMgr extends AdminBaseMgr implements AdminImportMgrIf
AdminBaseMgr.StaticData
Modifier and Type | Field and Description |
---|---|
protected com.konakart.appif.KKEngIf |
appEng
An instance of the application engine
|
protected static org.apache.commons.logging.Log |
log
the log
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminImportMgr(KKAdminIf adminEng,
com.konakart.appif.KKEngIf appEng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
exportInvoice(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOInvoiceInMsg invoiceMsg)
Allows the ERP system to associate an invoice file (typically in PDF format) with a KonaKart
order with the option of having the invoice sent out to a customer in an email by KonaKart.
|
AdminCustomer |
getCustomerForEmail(java.lang.String emailAddr)
Get customer for email
|
java.lang.String |
getRandomPassword()
Creates a random password
|
void |
log(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOMsgBase msgBase,
java.lang.String msg)
Common code for writing to the log file
|
boolean |
matchCustomer(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOMatchCustomerInMsg matchInMsg)
Method to match a customer that has been registered on the ERP
|
boolean |
paymentCapture(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOPaymentCaptureInMsg captureMsg)
In many cases when the customer confirms an order using his credit card, the funds are
reserved and not captured until the products are actually shipped.
|
boolean |
registerCustomer(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOCustomerInMsg custInMsg,
AdminServletMgrIf servletMgr)
Method to register a customer
|
boolean |
updateOrder(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOOrderUpdateInMsg updateMsg)
Update the order based on information contained in an IOOrderUpdate object.
|
boolean |
updateProduct(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOProductUpdateInMsg updateMsg)
Method to update a product quantity and / or prices.
|
boolean |
updateProductPrices(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOProductPriceUpdateInMsg updateMsg)
Method to update the prices of a product.
|
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 com.konakart.appif.KKEngIf appEng
public AdminImportMgr(KKAdminIf adminEng, com.konakart.appif.KKEngIf appEng) throws java.lang.Exception
adminEng
- the adminEngappEng
- the appEngjava.lang.Exception
- an unexpected exceptionpublic boolean updateOrder(java.lang.StringBuffer logSB, com.konakart.erp.jaxb.IOOrderUpdateInMsg updateMsg) throws java.lang.Exception
updateOrder
in interface AdminImportMgrIf
logSB
- the logSBupdateMsg
- the updateMsgjava.lang.Exception
- an unexpected exceptionpublic boolean updateProduct(java.lang.StringBuffer logSB, com.konakart.erp.jaxb.IOProductUpdateInMsg updateMsg) throws java.lang.Exception
updateProduct
in interface AdminImportMgrIf
logSB
- the logSBupdateMsg
- the updateMsgjava.lang.Exception
- an unexpected exceptionpublic boolean updateProductPrices(java.lang.StringBuffer logSB, com.konakart.erp.jaxb.IOProductPriceUpdateInMsg updateMsg) throws java.lang.Exception
updateProductPrices
in interface AdminImportMgrIf
logSB
- the logSBupdateMsg
- the updateMsgjava.lang.Exception
- an unexpected exceptionpublic boolean registerCustomer(java.lang.StringBuffer logSB, com.konakart.erp.jaxb.IOCustomerInMsg custInMsg, AdminServletMgrIf servletMgr) throws java.lang.Exception
registerCustomer
in interface AdminImportMgrIf
logSB
- the logSBcustInMsg
- the custInMsgservletMgr
- the servletMgrjava.lang.Exception
- an unexpected exceptionpublic boolean matchCustomer(java.lang.StringBuffer logSB, com.konakart.erp.jaxb.IOMatchCustomerInMsg matchInMsg) throws java.lang.Exception
matchCustomer
in interface AdminImportMgrIf
logSB
- the logSBmatchInMsg
- the matchInMsgjava.lang.Exception
- an unexpected exceptionpublic java.lang.String getRandomPassword() throws java.lang.Exception
getRandomPassword
in interface AdminImportMgrIf
java.lang.Exception
- an unexpected exceptionpublic boolean exportInvoice(java.lang.StringBuffer logSB, com.konakart.erp.jaxb.IOInvoiceInMsg invoiceMsg) throws java.lang.Exception
exportInvoice
in interface AdminImportMgrIf
logSB
- the logSBinvoiceMsg
- the invoiceMsgjava.lang.Exception
- an unexpected exceptionpublic boolean paymentCapture(java.lang.StringBuffer logSB, com.konakart.erp.jaxb.IOPaymentCaptureInMsg captureMsg) throws java.lang.Exception
paymentCapture
in interface AdminImportMgrIf
logSB
- the logSBcaptureMsg
- the captureMsgjava.lang.Exception
- an unexpected exceptionpublic void log(java.lang.StringBuffer logSB, com.konakart.erp.jaxb.IOMsgBase msgBase, java.lang.String msg) throws java.io.IOException, com.konakart.app.KKException
log
in interface AdminImportMgrIf
logSB
- the logSBmsgBase
- the msgBasemsg
- the msgjava.io.IOException
- an unexpected IOException exceptioncom.konakart.app.KKException
- an unexpected KKException exceptionpublic AdminCustomer getCustomerForEmail(java.lang.String emailAddr) throws java.lang.Exception
getCustomerForEmail
in interface AdminImportMgrIf
emailAddr
- the emailAddrjava.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.