public interface ExportMgrIf
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
|
IOAddress |
getDeliverAddressFromOrder(OrderIf order,
java.util.HashMap<java.lang.String,CountryIf> countryMap)
Create an IOAddress for the delivery address
|
java.lang.String |
getERPOutputQueuePrefix() |
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.
|
boolean |
isERPEnabled() |
boolean |
isExportCustomer() |
boolean |
isExportOrder() |
boolean |
isUpdateObjectEnabled(int objectType,
int operationType)
Utility that returns true or false depending to determine whether a message should be
exported when an object has been modified
|
void |
setERPOutputQueuePrefix(java.lang.String erpOutputQueuePrefix) |
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
|
void exportOrder(java.lang.String storeId, OrderIf order) throws java.lang.Exception
storeId
- the storeIdorder
- the orderjava.lang.Exception
- an unexpected exceptionvoid exportOrder(java.lang.String storeId, int orderId) throws java.lang.Exception
storeId
- the storeIdorderId
- the orderIdjava.lang.Exception
- an unexpected exceptionIOOrderOut getIOOrder(OrderIf orderIn) throws java.lang.Exception
orderIn
- the orderInjava.lang.Exception
- an unexpected exceptionIOAddress getCustomerAddressFromOrder(OrderIf order, java.util.HashMap<java.lang.String,CountryIf> countryMap) throws com.konakart.app.KKException
order
- the ordercountryMap
- the countryMapcom.konakart.app.KKException
- an unexpected KKException exceptionIOAddress getBillingAddressFromOrder(OrderIf order, java.util.HashMap<java.lang.String,CountryIf> countryMap) throws java.lang.Exception
order
- the ordercountryMap
- the countryMapjava.lang.Exception
- an unexpected exceptionIOAddress getDeliverAddressFromOrder(OrderIf order, java.util.HashMap<java.lang.String,CountryIf> countryMap) throws java.lang.Exception
order
- the ordercountryMap
- the countryMapjava.lang.Exception
- an unexpected exceptionvoid exportCustomer(java.lang.String storeId, int customerId, CustomerRegistrationIf custReg, java.lang.String type) throws java.lang.Exception
storeId
- the storeIdcustomerId
- the customerIdcustReg
- the custRegtype
- INSERT or UPDATEjava.lang.Exception
- an unexpected exceptionIOCustomerOut getIOCustomer(int customerId, CustomerRegistrationIf custReg) throws java.lang.Exception
customerId
- the customerIdcustReg
- the custRegjava.lang.Exception
- an unexpected exceptionvoid writeToQueue(java.lang.String storeId, java.lang.String msg) throws java.lang.Exception
storeId
- the storeIdmsg
- the msgjava.lang.Exception
- an unexpected exceptionjava.lang.String getERPOutputQueuePrefix()
void setERPOutputQueuePrefix(java.lang.String erpOutputQueuePrefix)
erpOutputQueuePrefix
- the erpOutputQueuePrefix to setvoid updateObject(java.lang.String storeId, int objectType, int operationType, int kkObjectId) throws java.lang.Exception
storeId
- 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 exceptionvoid 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
storeId
- 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 exceptionboolean isUpdateObjectEnabled(int objectType, int operationType) throws java.lang.Exception
objectType
- Determines the type of object
operationType
- Determines the type of operation
java.lang.Exception
- an unexpected exceptionboolean isERPEnabled() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionboolean isExportCustomer() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionboolean isExportOrder() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.