com.konakart.bl.modules.ordertotal
Class OrderTotalMgr

java.lang.Object
  extended by com.konakart.bl.BaseMgr
      extended by com.konakart.bl.modules.ordertotal.OrderTotalMgr
All Implemented Interfaces:
OrderTotalMgrIf

public class OrderTotalMgr
extends BaseMgr
implements OrderTotalMgrIf

Order Total Manager


Nested Class Summary
protected  class OrderTotalMgr.OrderTotalModuleSortOrderComparator
          Used to sort the modules before they are called
protected  class OrderTotalMgr.OrderTotalSortOrderComparator
          Used to sort the modules before they are displayed
protected  class OrderTotalMgr.StaticData
          Used to store the static data of this manager
 
Field Summary
protected static org.apache.commons.logging.Log log
          the log
static java.lang.String LOWORDERFEE
          ot_loworderfee
protected static java.lang.String MODULE_ORDER_TOTAL_INSTALLED
           
protected static java.lang.String mutex
           
protected static java.lang.String mutex1
           
static java.lang.String ot_shipping
          ot_shipping
static java.lang.String ot_subtotal
          ot_subtotal
static java.lang.String ot_tax
          ot_tax
static java.lang.String ot_total
          ot_total
static java.lang.String SHIPPING
          ot_shipping
protected static java.util.Map<java.lang.String,OrderTotalMgr.StaticData> staticDataHM
          Hash Map that contains the static data
static java.lang.String SUBTOTAL
          ot_subtotal
static java.lang.String TAX
          ot_tax
static java.lang.String TOTAL
          ot_total
 
Fields inherited from class com.konakart.bl.BaseMgr
templateBaseDir
 
Constructor Summary
OrderTotalMgr(KKEngIf eng)
          Constructor
 
Method Summary
 OrderTotalInterface[] getAllOrderTotals()
          Get a list of all installed order total modules
protected  java.lang.String getJavaModuleName(java.lang.String moduleName)
          Whatever the module name is, the package name is the module name in lowercase and the class name starts with an upper case character.
 Order getOrderTotals(OrderIf order, int languageId)
          Returns an Order object populated with an array of order total objects.
 void refreshConfigs()
          Refreshes the configuration data for this manager
 
Methods inherited from class com.konakart.bl.BaseMgr
addInsertAttr, addInsertAttr, checkRequired, getAdminEngMgr, getBasketMgr, getBillingMgr, getBookableProductMgr, getCatMgr, getConfigMgr, getCookieMgr, getCurrMgr, getCustMgr, getCustomerIdFromSession, getCustomerStatsMgr, getCustomerTagMgr, getEmailMgr, getEng, getLangMgr, getManuMgr, getMiscItemMgr, getMode, getModeString, getMqMgr, getMultiStoreMgr, getNewCriteria, getNewCriteria, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getPromMgr, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getTaxMgr, getTemplate, getTemplateRoot, getVelocityContextMgr, getWishListMgr, init, isEnterprise, isMultiStoreShareCustomers, isMultiStoreShareProducts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
the log


mutex

protected static java.lang.String mutex

mutex1

protected static java.lang.String mutex1

staticDataHM

protected static java.util.Map<java.lang.String,OrderTotalMgr.StaticData> staticDataHM
Hash Map that contains the static data


ot_total

public static final java.lang.String ot_total
ot_total

See Also:
Constant Field Values

ot_shipping

public static final java.lang.String ot_shipping
ot_shipping

See Also:
Constant Field Values

ot_subtotal

public static final java.lang.String ot_subtotal
ot_subtotal

See Also:
Constant Field Values

ot_tax

public static final java.lang.String ot_tax
ot_tax

See Also:
Constant Field Values

MODULE_ORDER_TOTAL_INSTALLED

protected static final java.lang.String MODULE_ORDER_TOTAL_INSTALLED
See Also:
Constant Field Values

TOTAL

public static final java.lang.String TOTAL
ot_total

See Also:
Constant Field Values

SUBTOTAL

public static final java.lang.String SUBTOTAL
ot_subtotal

See Also:
Constant Field Values

SHIPPING

public static final java.lang.String SHIPPING
ot_shipping

See Also:
Constant Field Values

TAX

public static final java.lang.String TAX
ot_tax

See Also:
Constant Field Values

LOWORDERFEE

public static final java.lang.String LOWORDERFEE
ot_loworderfee

See Also:
Constant Field Values
Constructor Detail

OrderTotalMgr

public OrderTotalMgr(KKEngIf eng)
              throws java.lang.Exception
Constructor

Parameters:
eng -
Throws:
java.lang.Exception
Method Detail

refreshConfigs

public void refreshConfigs()
                    throws java.lang.Exception
Description copied from interface: OrderTotalMgrIf
Refreshes the configuration data for this manager

Specified by:
refreshConfigs in interface OrderTotalMgrIf
Throws:
java.lang.Exception

getJavaModuleName

protected java.lang.String getJavaModuleName(java.lang.String moduleName)
Whatever the module name is, the package name is the module name in lowercase and the class name starts with an upper case character.

There are however some special cases for osCommerce compatibility

Parameters:
moduleName -
Returns:
Returns the java compatible name

getOrderTotals

public Order getOrderTotals(OrderIf order,
                            int languageId)
                     throws java.lang.Exception
Description copied from interface: OrderTotalMgrIf
Returns an Order object populated with an array of order total objects.

Specified by:
getOrderTotals in interface OrderTotalMgrIf
Parameters:
order -
languageId -
Returns:
An array of shipping quotes
Throws:
java.lang.Exception

getAllOrderTotals

public OrderTotalInterface[] getAllOrderTotals()
                                        throws KKException
Get a list of all installed order total modules

Specified by:
getAllOrderTotals in interface OrderTotalMgrIf
Returns:
Returns an array of OrderTotalInterface objects
Throws:
KKException


Copyright © 2011 DS Data Systems UK Ltd.