public class OrderIntegrationMgr extends BaseMgr implements OrderIntegrationMgrInterface
Modifier and Type | Class and Description |
---|---|
protected class |
OrderIntegrationMgr.TaxModuleData
Used to store the static data of this module
|
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
templateBaseDir
Constructor and Description |
---|
OrderIntegrationMgr(KKEngIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
OrderIf |
afterCreateOrder(OrderIf order)
Called just before returning the order from the CreateOrder method.
|
void |
afterInsertSubscription(SubscriptionIf subscription)
Called after a Subscription object has been saved in the database.
|
void |
afterUpdateSubscription(SubscriptionIf subscription)
Called after a Subscription object has been updated in the database.
|
SubscriptionIf |
beforeInsertSubscription(SubscriptionIf subscription)
Called just before a subscription is inserted.
|
OrderIf |
beforeSaveOrder(OrderIf order)
Called just before an order is saved.
|
SubscriptionIf |
beforeUpdateSubscription(SubscriptionIf subscription)
Called just before a subscription is updated.
|
void |
changeOrderStatus(int orderId,
int currentStatus,
int newStatus)
Called whenever the status of an order is changed.
|
PdfResult |
createInvoice(OrderIf order)
Creates the PDF invoice using the AdminPdfMgr if the code is present.
|
java.lang.String |
createOrderNumber(OrderIf order)
This method allows you to introduce a proprietary algorithm for creating the order number for
an order just before the order is saved.
|
java.lang.String |
createTrackingNumber(OrderIf order)
This method allows you to generate a tracking number for an order just before the order is
saved.
|
java.util.HashMap<java.lang.String,OrderIntegrationMgr.TaxModuleData> |
getTaxModuleMap() |
void |
saveOrder(OrderIf order)
Called whenever an order is saved.
|
acquireLock, 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, updateStaticVariablesNow
public OrderIntegrationMgr(KKEngIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic OrderIf afterCreateOrder(OrderIf order)
afterCreateOrder
in interface OrderIntegrationMgrInterface
order
- the orderpublic OrderIf beforeSaveOrder(OrderIf order)
beforeSaveOrder
in interface OrderIntegrationMgrInterface
order
- the orderpublic void saveOrder(OrderIf order)
saveOrder
in interface OrderIntegrationMgrInterface
order
- the orderpublic void changeOrderStatus(int orderId, int currentStatus, int newStatus)
changeOrderStatus
in interface OrderIntegrationMgrInterface
orderId
- the orderIdcurrentStatus
- the currentStatusnewStatus
- the newStatuspublic SubscriptionIf beforeInsertSubscription(SubscriptionIf subscription) throws java.lang.Exception
beforeInsertSubscription
in interface OrderIntegrationMgrInterface
subscription
- the subscriptionjava.lang.Exception
- an unexpected exceptionpublic void afterInsertSubscription(SubscriptionIf subscription) throws java.lang.Exception
afterInsertSubscription
in interface OrderIntegrationMgrInterface
subscription
- the subscriptionjava.lang.Exception
- an unexpected exceptionpublic SubscriptionIf beforeUpdateSubscription(SubscriptionIf subscription) throws java.lang.Exception
beforeUpdateSubscription
in interface OrderIntegrationMgrInterface
subscription
- the subscriptionjava.lang.Exception
- an unexpected exceptionpublic void afterUpdateSubscription(SubscriptionIf subscription) throws java.lang.Exception
afterUpdateSubscription
in interface OrderIntegrationMgrInterface
subscription
- the subscriptionjava.lang.Exception
- an unexpected exceptionpublic PdfResult createInvoice(OrderIf order)
The order record is updated in the database with the invoice_filename if the invoice is created successfully.
order
- the orderpublic java.lang.String createOrderNumber(OrderIf order) throws java.lang.Exception
saveOrder()
method.
The value returned by this method populates the orderNumber
attribute of the
order when it is saved.
If a null value is returned, then the order number of the order is left unchanged.
If an exception is thrown, the exception will be also thrown by the saveOrder() method and
the order will not be saved.
createOrderNumber
in interface OrderIntegrationMgrInterface
order
- the orderjava.lang.Exception
- an unexpected exceptionpublic java.lang.String createTrackingNumber(OrderIf order) throws java.lang.Exception
saveOrder()
method. The value returned by this method
populates the trackingNumber
attribute of the order when it is saved.createTrackingNumber
in interface OrderIntegrationMgrInterface
order
- the orderjava.lang.Exception
- an unexpected exceptionpublic java.util.HashMap<java.lang.String,OrderIntegrationMgr.TaxModuleData> getTaxModuleMap()
Copyright © 2018 DS Data Systems UK Ltd.