public class ShippingMgr extends BaseMgr implements ShippingMgrIf
Modifier and Type | Class and Description |
---|---|
protected class |
ShippingMgr.SortOrderComparator |
protected class |
ShippingMgr.StaticData
Used to store the static data of this manager
|
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
BOTH |
protected static java.lang.String |
FREE_SHIPPING |
protected static java.lang.String |
FREE_SHIPPING_DESCRIPTION |
protected static java.lang.String |
FREE_SHIPPING_OVER |
protected static java.lang.String |
FREE_SHIPPING_TITLE |
protected static java.lang.String |
INTERNATIONAL |
protected static org.apache.commons.logging.Log |
log
the log
|
protected static java.lang.String |
MODULE_SHIPPING_INSTALLED |
protected static java.lang.String |
mutex |
protected static java.lang.String |
NATIONAL |
protected static java.util.HashMap<java.util.Locale,java.util.ResourceBundle> |
resourceBundleMap |
protected static java.lang.String |
SHIPPING_BOX_PADDING |
protected static java.lang.String |
SHIPPING_BOX_WEIGHT |
protected static java.lang.String |
SHIPPING_DESTINATION |
protected static java.lang.String |
SHIPPING_MAX_WEIGHT |
protected static java.lang.String |
SHIPPING_ORIGIN_COUNTRY |
protected static java.lang.String |
SHIPPING_ORIGIN_ZIP |
protected static java.util.Map<java.lang.String,ShippingMgr.StaticData> |
staticDataHM
Hash Map that contains the static data
|
protected static java.lang.String |
STORE_COUNTRY |
templateBaseDir
Constructor and Description |
---|
ShippingMgr(KKEngIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkOrder(Order order)
Checks the order to see whether all compulsory attributes are present
|
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
|
java.util.ResourceBundle |
getResourceBundle(java.util.Locale locale)
The resource bundle is fetched for the locale and stored in a static hash table.
|
protected ShippingInfo |
getShippingInfo() |
ShippingQuote |
getShippingQuote(OrderIf order,
java.lang.String moduleName,
int languageId)
Returns a single ShippingQuote object for an order.
|
ShippingQuote[] |
getShippingQuotes(OrderIf order,
int languageId)
Returns an array of available ShippingQuote objects for an order.
|
protected ShippingQuote[] |
getShippingQuotesPrivate(OrderIf order,
java.lang.String moduleName,
int languageId) |
protected boolean |
isEnhancedVariantHandlingModeEnabled() |
void |
refreshConfigs()
Refresh Configuration Variables
|
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.util.HashMap<java.util.Locale,java.util.ResourceBundle> resourceBundleMap
protected static java.util.Map<java.lang.String,ShippingMgr.StaticData> staticDataHM
protected static final java.lang.String SHIPPING_ORIGIN_COUNTRY
protected static final java.lang.String SHIPPING_ORIGIN_ZIP
protected static final java.lang.String SHIPPING_MAX_WEIGHT
protected static final java.lang.String SHIPPING_BOX_WEIGHT
protected static final java.lang.String SHIPPING_BOX_PADDING
protected static final java.lang.String MODULE_SHIPPING_INSTALLED
protected static final java.lang.String FREE_SHIPPING
protected static final java.lang.String FREE_SHIPPING_OVER
protected static final java.lang.String SHIPPING_DESTINATION
protected static final java.lang.String STORE_COUNTRY
protected static final java.lang.String NATIONAL
protected static final java.lang.String INTERNATIONAL
protected static final java.lang.String BOTH
protected static final java.lang.String FREE_SHIPPING_TITLE
protected static final java.lang.String FREE_SHIPPING_DESCRIPTION
public ShippingMgr(KKEngIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic void refreshConfigs() throws java.lang.Exception
refreshConfigs
in interface ShippingMgrIf
java.lang.Exception
- an unexpected exceptionprotected ShippingInfo getShippingInfo() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected KKException exceptionpublic ShippingQuote[] getShippingQuotes(OrderIf order, int languageId) throws java.lang.Exception
ShippingMgrIf
getShippingQuotes
in interface ShippingMgrIf
order
- the orderlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionpublic ShippingQuote getShippingQuote(OrderIf order, java.lang.String moduleName, int languageId) throws java.lang.Exception
ShippingMgrIf
getShippingQuote
in interface ShippingMgrIf
order
- the ordermoduleName
- the moduleNamelanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionprotected ShippingQuote[] getShippingQuotesPrivate(OrderIf order, java.lang.String moduleName, int languageId) throws java.lang.Exception
order
- the ordermoduleName
- the module namelanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionprotected java.lang.String getJavaModuleName(java.lang.String moduleName)
moduleName
- the moduleNameprotected void checkOrder(Order order) throws com.konakart.app.KKException
order
- the ordercom.konakart.app.KKException
- an unexpected KKException exceptionpublic java.util.ResourceBundle getResourceBundle(java.util.Locale locale) throws com.konakart.app.KKException
getResourceBundle
in interface ShippingMgrIf
locale
- the localecom.konakart.app.KKException
- an unexpected KKException exceptionprotected boolean isEnhancedVariantHandlingModeEnabled() throws java.lang.Exception
java.lang.Exception
Copyright © 2018 DS Data Systems UK Ltd.