|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakart.bl.BaseMgr
com.konakart.bl.OrderIntegrationMgr
public class OrderIntegrationMgr
Used to provide integration points when orders are saved and when the status of an order is changed.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
the log |
Fields inherited from class com.konakart.bl.BaseMgr |
---|
templateBaseDir |
Constructor Summary | |
---|---|
OrderIntegrationMgr(KKEngIf eng)
Constructor |
Method Summary | |
---|---|
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. |
void |
saveOrder(OrderIf order)
Called whenever an order is saved. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
public OrderIntegrationMgr(KKEngIf eng) throws java.lang.Exception
eng
-
java.lang.Exception
Method Detail |
---|
public OrderIf beforeSaveOrder(OrderIf order)
beforeSaveOrder
in interface OrderIntegrationMgrInterface
order
-
public void saveOrder(OrderIf order)
saveOrder
in interface OrderIntegrationMgrInterface
public void changeOrderStatus(int orderId, int currentStatus, int newStatus)
changeOrderStatus
in interface OrderIntegrationMgrInterface
public SubscriptionIf beforeInsertSubscription(SubscriptionIf subscription) throws java.lang.Exception
beforeInsertSubscription
in interface OrderIntegrationMgrInterface
subscription
-
java.lang.Exception
public void afterInsertSubscription(SubscriptionIf subscription) throws java.lang.Exception
afterInsertSubscription
in interface OrderIntegrationMgrInterface
subscription
-
java.lang.Exception
public SubscriptionIf beforeUpdateSubscription(SubscriptionIf subscription) throws java.lang.Exception
beforeUpdateSubscription
in interface OrderIntegrationMgrInterface
subscription
-
java.lang.Exception
public void afterUpdateSubscription(SubscriptionIf subscription) throws java.lang.Exception
afterUpdateSubscription
in interface OrderIntegrationMgrInterface
subscription
-
java.lang.Exception
public PdfResult createInvoice(OrderIf order)
The order record is updated in the database with the invoice_filename if the invoice is created successfully.
order
-
public 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
-
java.lang.Exception
public 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
-
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |