public class AdminImportMgrEE extends AdminImportMgr implements AdminImportMgrIf
| Modifier and Type | Class and Description |
|---|---|
private class |
AdminImportMgrEE.OrderDetails
Used to return order information by the method getOrderIdentifier()
|
AdminBaseMgr.StaticData| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
availableChars |
private java.util.HashMap<java.lang.String,AdminCountry> |
countryMap |
protected static org.apache.commons.logging.Log |
log
the log
|
appEngadminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir| Constructor and Description |
|---|
AdminImportMgrEE(KKAdminIf adminEng,
com.konakart.appif.KKEngIf appEng)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
AdminOption[] |
createOptionsFromProductQuantityEncodedKey(java.lang.String encodedKey)
Receives an encoded key from the products_quantity table in the format 3{4}4{6} and creates
an array of AdminOption objects.
|
private boolean |
doesOrderExistForId(int orderId)
Determines whether an order exists for the order id passed in as a parameter
|
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.
|
private AdminCountry |
getCountryFromIsoCode(java.lang.String iso3Code,
java.lang.String isoNumericCode)
Find the country from an ISO code
|
AdminCustomer |
getCustomerForEmail(java.lang.String emailAddr)
Get customer for email
|
private java.util.Date |
getDefaultIfEmpty(java.util.Date in)
Returns a default value for an empty date
|
private java.lang.String |
getDefaultIfEmpty(java.lang.String in)
Returns a default value for an empty string
|
private java.lang.String |
getNullIfEmpty(java.lang.String in)
Returns null for an empty string
|
private AdminImportMgrEE.OrderDetails |
getOrderIdentifier(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOMsgBase msgBase,
java.lang.String orderIdStr,
java.lang.String orderNumber)
Common code to get an order identifier from the message
|
private int |
getOrderIdForNumber(java.lang.String orderNumber)
Get the order Id for the specified order number
|
private int |
getProdIdFromSku(java.lang.String sku,
boolean searchVariants)
Get the product id from the SKU
|
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
|
private boolean |
notifyCustomer(int orderStatusId)
Determines whether a customer should automatically be notified based on the orderStatusId
passed in as a parameter
|
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.
|
protected boolean |
updateSingleProductPrices(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOProductPriceUpdateInMsg updateMsg,
com.konakart.erp.jaxb.IOProductPricesContainer container)
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, updateStaticVariablesNowprotected static org.apache.commons.logging.Log log
private static final java.lang.String availableChars
private java.util.HashMap<java.lang.String,AdminCountry> countryMap
public AdminImportMgrEE(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 AdminImportMgrIfupdateOrder in class AdminImportMgrlogSB - the logSBupdateMsg - the updateMsgjava.lang.Exception - an unexpected exceptionprivate boolean notifyCustomer(int orderStatusId)
throws java.lang.Exception
orderStatusId - the orderStatusIdjava.lang.Exception - an unexpected exceptionprivate boolean doesOrderExistForId(int orderId)
throws org.apache.torque.TorqueException
orderId - the orderIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)private int getOrderIdForNumber(java.lang.String orderNumber)
throws java.lang.Exception
orderNumber - the order numberjava.lang.Exception - an unexpected Exception exceptionpublic boolean updateProductPrices(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOProductPriceUpdateInMsg updateMsg)
throws java.lang.Exception
updateProductPrices in interface AdminImportMgrIfupdateProductPrices in class AdminImportMgrlogSB - the logSBupdateMsg - the updateMsgjava.lang.Exception - an unexpected exceptionprotected boolean updateSingleProductPrices(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOProductPriceUpdateInMsg updateMsg,
com.konakart.erp.jaxb.IOProductPricesContainer container)
throws java.lang.Exception
logSB - the logSBupdateMsg - the updateMsgcontainer - the IOProductPricesContainerjava.lang.Exception - an unexpected exceptionpublic AdminOption[] createOptionsFromProductQuantityEncodedKey(java.lang.String encodedKey)
encodedKey - the encodedKeypublic boolean updateProduct(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOProductUpdateInMsg updateMsg)
throws java.lang.Exception
updateProduct in interface AdminImportMgrIfupdateProduct in class AdminImportMgrlogSB - the logSBupdateMsg - the updateMsgjava.lang.Exception - an unexpected exceptionprivate int getProdIdFromSku(java.lang.String sku,
boolean searchVariants)
throws java.lang.Exception
sku - the skusearchVariants - If true we also search the products_quantity table if we can't find the product in
the products tablejava.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 AdminImportMgrIfregisterCustomer in class AdminImportMgrlogSB - 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 AdminImportMgrIfmatchCustomer in class AdminImportMgrlogSB - the logSBmatchInMsg - the matchInMsgjava.lang.Exception - an unexpected exceptionprivate java.lang.String getNullIfEmpty(java.lang.String in)
in - the inprivate java.lang.String getDefaultIfEmpty(java.lang.String in)
in - the inprivate java.util.Date getDefaultIfEmpty(java.util.Date in)
in - the inpublic java.lang.String getRandomPassword()
throws java.lang.Exception
getRandomPassword in interface AdminImportMgrIfgetRandomPassword in class AdminImportMgrjava.lang.Exception - an unexpected exceptionpublic boolean exportInvoice(java.lang.StringBuffer logSB,
com.konakart.erp.jaxb.IOInvoiceInMsg invoiceMsg)
throws java.lang.Exception
exportInvoice in interface AdminImportMgrIfexportInvoice in class AdminImportMgrlogSB - 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 AdminImportMgrIfpaymentCapture in class AdminImportMgrlogSB - the logSBcaptureMsg - the captureMsgjava.lang.Exception - an unexpected exceptionprivate AdminImportMgrEE.OrderDetails getOrderIdentifier(java.lang.StringBuffer logSB, com.konakart.erp.jaxb.IOMsgBase msgBase, java.lang.String orderIdStr, java.lang.String orderNumber) throws java.lang.Exception
logSB - the logSBmsgBase - the msgBaseorderIdStr - the orderIdStrorderNumber - the orderNumberjava.lang.Exception - an unexpected exceptionprivate AdminCountry getCountryFromIsoCode(java.lang.String iso3Code, java.lang.String isoNumericCode) throws java.lang.Exception
iso3Code - the iso3CodeisoNumericCode - the isoNumericCodejava.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
log in interface AdminImportMgrIflog in class AdminImportMgrlogSB - the logSBmsgBase - the msgBasemsg - the msgjava.io.IOException - an unexpected IOException exceptionpublic AdminCustomer getCustomerForEmail(java.lang.String emailAddr) throws java.lang.Exception
getCustomerForEmail in interface AdminImportMgrIfgetCustomerForEmail in class AdminImportMgremailAddr - the emailAddrjava.lang.Exception - an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.