public class OrderTotalMgr extends BaseMgr implements OrderTotalMgrIf
Modifier and Type | Class and Description |
---|---|
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
|
Modifier and Type | Field and Description |
---|---|
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
Configuration Key
|
protected static java.lang.String |
mutex
mutex
|
protected static java.lang.String |
mutex1
mutex
|
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
|
templateBaseDir
Constructor and Description |
---|
OrderTotalMgr(KKEngIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
OrderTotalInterface |
getOrderTotalModuleForName(java.lang.String moduleName)
Called to instantiate a orderTotal module.
|
Order |
getOrderTotals(OrderIf order,
int languageId)
The order object is populated with an array of order totals.
|
protected boolean |
isEnhancedVariantHandlingModeEnabled() |
void |
refreshConfigs()
Refreshes the configuration data for this manager
|
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
protected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
protected static java.lang.String mutex1
protected static java.util.Map<java.lang.String,OrderTotalMgr.StaticData> staticDataHM
public static final java.lang.String ot_total
public static final java.lang.String ot_shipping
public static final java.lang.String ot_subtotal
public static final java.lang.String ot_tax
protected static final java.lang.String MODULE_ORDER_TOTAL_INSTALLED
public static final java.lang.String TOTAL
public static final java.lang.String SUBTOTAL
public static final java.lang.String SHIPPING
public static final java.lang.String TAX
public static final java.lang.String LOWORDERFEE
public OrderTotalMgr(KKEngIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic void refreshConfigs() throws java.lang.Exception
OrderTotalMgrIf
refreshConfigs
in interface OrderTotalMgrIf
java.lang.Exception
- an unexpected exceptionprotected java.lang.String getJavaModuleName(java.lang.String moduleName)
There are however some special cases for osCommerce compatibility
moduleName
- the moduleNamepublic Order getOrderTotals(OrderIf order, int languageId) throws java.lang.Exception
getOrderTotals
in interface OrderTotalMgrIf
order
- The order objectlanguageId
- The id for the language that will be used. Value of -1 selects the default
language.java.lang.Exception
- an unexpected exceptionpublic OrderTotalInterface[] getAllOrderTotals() throws com.konakart.app.KKException
getAllOrderTotals
in interface OrderTotalMgrIf
com.konakart.app.KKException
- an unexpected exception from the KonaKart enginepublic OrderTotalInterface getOrderTotalModuleForName(java.lang.String moduleName) throws java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
getOrderTotalModuleForName
in interface OrderTotalMgrIf
moduleName
- the moduleNamejava.lang.IllegalArgumentException
- an unexpected IllegalArgumentException exceptionjava.lang.InstantiationException
- an unexpected InstantiationException exceptionjava.lang.IllegalAccessException
- an unexpected IllegalAccessException exceptionjava.lang.reflect.InvocationTargetException
- an unexpected InvocationTargetException exceptionjava.lang.ClassNotFoundException
- an unexpected ClassNotFoundException exceptionprotected boolean isEnhancedVariantHandlingModeEnabled() throws java.lang.Exception
java.lang.Exception
Copyright © 2018 DS Data Systems UK Ltd.