public class ExportMgrEE extends ExportMgr implements ExportMgrIf
| Modifier and Type | Class and Description |
|---|---|
protected class |
ExportMgrEE.IPNHistoryComparator
To sort the IPNHistory classes
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
erpOutputQueuePrefixtemplateBaseDir| Constructor and Description |
|---|
ExportMgrEE(KKEngIf eng)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
exportCustomer(java.lang.String storeId,
int customerId,
CustomerRegistrationIf custReg,
java.lang.String type)
Get the customer from the customer Id and export it
|
void |
exportOrder(java.lang.String storeId,
int orderId)
Write the order with the specified Id to a queue
|
void |
exportOrder(java.lang.String storeId,
OrderIf order)
Write the order to a queue
|
IOAddress |
getBillingAddressFromOrder(OrderIf order,
java.util.HashMap<java.lang.String,CountryIf> countryMap)
Create an IOAddress for the billing address
|
IOAddress |
getCustomerAddressFromOrder(OrderIf order,
java.util.HashMap<java.lang.String,CountryIf> countryMap)
Create an IOAddress for the customer
|
protected java.util.Date |
getDateFromCalendar(java.util.Calendar cal)
Get a date from a calendar
|
IOAddress |
getDeliverAddressFromOrder(OrderIf order,
java.util.HashMap<java.lang.String,CountryIf> countryMap)
Create an IOAddress for the delivery address
|
IOCustomerOut |
getIOCustomer(int customerId,
CustomerRegistrationIf custReg)
Get an IOCustomerOut object from a kkCustomerId
|
IOOrderOut |
getIOOrder(OrderIf orderIn)
Creates an IOOrder object (ready to export) from an OrderIf object.
|
protected java.lang.String |
operationToString(int objectType,
int operationType) |
void |
updateObject(java.lang.String storeId,
int objectType,
int operationType,
int kkObjectId)
Writes an updateObject message to the queue.
|
void |
updateObject(java.lang.String storeId,
int objectType,
int operationType,
int kkObjectId,
java.lang.String objectId1,
java.lang.String objectId2,
java.lang.String value1,
java.lang.String value2)
Writes an updateObject message to the queue.
|
void |
writeToQueue(java.lang.String storeId,
java.lang.String msg)
Method to post data to a queue based on the storeId
|
getERPOutputQueuePrefix, getIntegrations, isERPEnabled, isExportCustomer, isExportOrder, isUpdateObjectEnabled, setERPOutputQueuePrefixacquireLock, addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkRequired, escapeHTML, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, getAdminEngMgr, getBasketMgr, getBillingMgr, getBookableProductMgr, getCacheMgr, getCatMgr, getConfigMgr, getCookieMgr, getCurrMgr, getCustMgr, getCustomerIdFromSession, getCustomerStatsMgr, getCustomerTagMgr, getEmailMgr, getEng, getEventMgr, getExportMgr, getHTMLEscaper, getKonaKartConfig, getKonaKartConfig, getKonaKartConfig, getLangMgr, getManuMgr, getMiscItemMgr, getMiscPriceMgr, getMode, getModeString, getMqMgr, getMultiStoreMgr, getNewCriteria, getNewCriteria, getOrderIntegrationMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getProductsToCategoresCriteria, getPromMgr, getPunchOutMgr, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getStoreMgr, getStoreTime, getSuggestionMgr, getTaxMgr, getTemplate, getTemplateRoot, getVelocityContextMgr, getWishListMgr, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isClassPresent, isCommunity, isDeadlockException, isEnterprise, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreSharedDb, isMultiStoreShareProducts, isMultiVendor, isUnix, manageThrowable, releaseLock, updateStaticVariablesNowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetERPOutputQueuePrefix, isERPEnabled, isExportCustomer, isExportOrder, isUpdateObjectEnabled, setERPOutputQueuePrefixpublic ExportMgrEE(KKEngIf eng) throws java.lang.Exception
eng - the engjava.lang.Exception - an unexpected exceptionpublic void exportOrder(java.lang.String storeId,
OrderIf order)
throws java.lang.Exception
exportOrder in interface ExportMgrIfexportOrder in class ExportMgrstoreId - the storeIdorder - the orderjava.lang.Exception - an unexpected exceptionpublic void exportOrder(java.lang.String storeId,
int orderId)
throws java.lang.Exception
exportOrder in interface ExportMgrIfexportOrder in class ExportMgrstoreId - the storeIdorderId - the orderIdjava.lang.Exception - an unexpected exceptionpublic IOOrderOut getIOOrder(OrderIf orderIn) throws java.lang.Exception
getIOOrder in interface ExportMgrIfgetIOOrder in class ExportMgrorderIn - the orderInjava.lang.Exception - an unexpected exceptionpublic IOAddress getCustomerAddressFromOrder(OrderIf order, java.util.HashMap<java.lang.String,CountryIf> countryMap) throws com.konakart.app.KKException
getCustomerAddressFromOrder in interface ExportMgrIfgetCustomerAddressFromOrder in class ExportMgrorder - the ordercountryMap - the countryMapcom.konakart.app.KKException - an unexpected KKException exceptionpublic IOAddress getBillingAddressFromOrder(OrderIf order, java.util.HashMap<java.lang.String,CountryIf> countryMap) throws java.lang.Exception
getBillingAddressFromOrder in interface ExportMgrIfgetBillingAddressFromOrder in class ExportMgrorder - the ordercountryMap - the countryMapjava.lang.Exception - an unexpected exceptionpublic IOAddress getDeliverAddressFromOrder(OrderIf order, java.util.HashMap<java.lang.String,CountryIf> countryMap) throws java.lang.Exception
getDeliverAddressFromOrder in interface ExportMgrIfgetDeliverAddressFromOrder in class ExportMgrorder - the ordercountryMap - the countryMapjava.lang.Exception - an unexpected exceptionprotected java.util.Date getDateFromCalendar(java.util.Calendar cal)
cal - the calpublic void exportCustomer(java.lang.String storeId,
int customerId,
CustomerRegistrationIf custReg,
java.lang.String type)
throws java.lang.Exception
exportCustomer in interface ExportMgrIfexportCustomer in class ExportMgrstoreId - the storeIdcustomerId - the customerIdcustReg - the custRegtype - INSERT or UPDATEjava.lang.Exception - an unexpected exceptionpublic IOCustomerOut getIOCustomer(int customerId, CustomerRegistrationIf custReg) throws java.lang.Exception
getIOCustomer in interface ExportMgrIfgetIOCustomer in class ExportMgrcustomerId - the customerIdcustReg - the custRegjava.lang.Exception - an unexpected exceptionpublic void writeToQueue(java.lang.String storeId,
java.lang.String msg)
throws java.lang.Exception
writeToQueue in interface ExportMgrIfwriteToQueue in class ExportMgrstoreId - the storeIdmsg - the msgjava.lang.Exception - an unexpected exceptionpublic void updateObject(java.lang.String storeId,
int objectType,
int operationType,
int kkObjectId)
throws java.lang.Exception
updateObject in interface ExportMgrIfupdateObject in class ExportMgrstoreId - the storeIdobjectType - Determines the type of object
operationType - Determines the type of operation
kkObjectId - Id of the KonaKart object being updatedjava.lang.Exception - an unexpected exceptionpublic void updateObject(java.lang.String storeId,
int objectType,
int operationType,
int kkObjectId,
java.lang.String objectId1,
java.lang.String objectId2,
java.lang.String value1,
java.lang.String value2)
throws java.lang.Exception
updateObject in interface ExportMgrIfupdateObject in class ExportMgrstoreId - the storeIdobjectType - Determines the type of object
operationType - Determines the type of operation
kkObjectId - Id of the KonaKart object being updatedobjectId1 - Additional identifier that can be used by the ERP to identify the object.objectId2 - Additional identifier that can be used by the ERP to identify the object.value1 - Optional value to simplify the processing of the message.value2 - Optional value to simplify the processing of the message.java.lang.Exception - an unexpected exceptionprotected java.lang.String operationToString(int objectType,
int operationType)
Copyright © 2018 DS Data Systems UK Ltd.