|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.bl.modules.BaseModule
com.konakart.bl.modules.ordertotal.BaseOrderTotalModule
public class BaseOrderTotalModule
Base Order Total Module
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
The Log instance for this application. |
protected java.util.List<OrderTotal> |
orderTotalList
A list of the current order totals so that an order total module can modify an order total that was previously called. |
| Fields inherited from class com.konakart.bl.modules.BaseModule |
|---|
basePackage |
| Constructor Summary | |
|---|---|
BaseOrderTotalModule()
|
|
| Method Summary | |
|---|---|
protected java.math.BigDecimal |
getCustomBigDecimal(java.lang.String customAttr,
int customId)
Utility method that gets a BigDecimal from one of the promotion custom attributes |
protected boolean |
getCustomBoolean(java.lang.String customAttr,
int customId)
Utility method that gets a boolean from one of the promotion custom attributes |
protected int |
getCustomInt(java.lang.String customAttr,
int customId)
Utility method that gets an int from one of the promotion custom attributes |
protected java.lang.String |
getCustomString(java.lang.String customAttr,
int customId)
Utility method that gets a String from one of the promotion custom attributes. |
protected OrderTotal |
getDiscountOrderTotalFromList(Order order,
java.util.List<OrderTotal> orderTotalList)
This is a helper method for the discount modules. |
java.util.List<OrderTotal> |
getOrderTotalList()
A list of the current order totals so that an order total module can modify an order total that was previously called. |
PromotionResult |
getPromotionResult(Product product,
Promotion promotion)
Returns an object containing the promotion discount |
void |
setOrderTotalList(java.util.List<OrderTotal> orderTotalList)
A list of the current order totals so that an order total module can modify an order total that was previously called. |
| Methods inherited from class com.konakart.bl.modules.BaseModule |
|---|
getBasketMgr, getCatMgr, getConfigMgr, getCurrMgr, getCustMgr, getEmailMgr, getEng, getLangMgr, getMultiStoreMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getPromMgr, getResourceBundle, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getTaxMgr, init, isAvailable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.logging.Log log
Log instance for this application.
protected java.util.List<OrderTotal> orderTotalList
| Constructor Detail |
|---|
public BaseOrderTotalModule()
| Method Detail |
|---|
protected int getCustomInt(java.lang.String customAttr,
int customId)
throws KKException
customAttr - customId -
KKException
protected java.math.BigDecimal getCustomBigDecimal(java.lang.String customAttr,
int customId)
throws KKException
customAttr - customId -
KKException
protected boolean getCustomBoolean(java.lang.String customAttr,
int customId)
throws KKException
customAttr - customId -
KKException
protected java.lang.String getCustomString(java.lang.String customAttr,
int customId)
throws KKException
customAttr - customId -
KKException
protected OrderTotal getDiscountOrderTotalFromList(Order order,
java.util.List<OrderTotal> orderTotalList)
throws java.lang.Exception
order - orderTotalList -
java.lang.Exceptionpublic java.util.List<OrderTotal> getOrderTotalList()
public void setOrderTotalList(java.util.List<OrderTotal> orderTotalList)
orderTotalList - the orderTotalList to set
public PromotionResult getPromotionResult(Product product,
Promotion promotion)
throws java.lang.Exception
product - promotion -
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||