public class BaseModule
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
basePackage
Base package
|
protected static java.lang.String |
debugStackTraceExclusions
For excluding lines from debug stack traces - to eliminate unhelpful information
|
Constructor and Description |
---|
BaseModule() |
Modifier and Type | Method and Description |
---|---|
protected BasketMgrIf |
getBasketMgr() |
protected CategoryMgrIf |
getCatMgr() |
protected ConfigurationMgrIf |
getConfigMgr() |
protected KKConfiguration |
getConfiguration(java.lang.String key) |
protected java.lang.String |
getConfigurationValue(java.lang.String key) |
protected java.math.BigDecimal |
getConfigurationValueAsBigDecimalWithDefault(java.lang.String key,
java.math.BigDecimal def) |
protected boolean |
getConfigurationValueAsBool(java.lang.String key,
boolean def) |
protected int |
getConfigurationValueAsIntWithDefault(java.lang.String key,
int def) |
protected CurrencyMgrIf |
getCurrMgr() |
protected CustomerMgrIf |
getCustMgr() |
protected CustomerTagMgrIf |
getCustTagMgr() |
protected static java.lang.String |
getDebugStackTraceExclusions() |
protected EmailMgrIf |
getEmailMgr() |
protected KKEng |
getEng() |
protected LanguageMgrIf |
getLangMgr() |
java.lang.String |
getModuleClassName()
Gets the name of the module class.
|
protected MultiStoreMgrIf |
getMultiStoreMgr() |
protected KKCriteria |
getNewCriteria(boolean allStores)
Gets a new KKCriteria object with the option of it being for all stores when in multi-store
single db mode.
|
protected OrderMgrIf |
getOrderMgr() |
protected OrderTotalMgrIf |
getOrderTotalMgr() |
protected PaymentMgrIf |
getPaymentMgr() |
protected ProductMgrIf |
getProdMgr() |
protected PromotionMgrIf |
getPromMgr() |
protected java.lang.String |
getRandomText(int length)
Returns a random String of the length specified
|
protected java.lang.String |
getRandomText(java.lang.String allowedChars,
int length)
Returns a random String of the length specified choosing only characters from the
allowedChars String
|
protected java.util.ResourceBundle |
getResourceBundle(java.lang.String mutex,
java.lang.String bundleName,
java.util.HashMap<java.util.Locale,java.util.ResourceBundle> resourceBundleMap,
java.util.Locale locale)
The resource bundle is fetched for the locale and stored in a static hash table.
|
protected RewardPointMgrIf |
getRewardPointMgr() |
protected SecurityMgrIf |
getSecMgr() |
protected ShippingMgrIf |
getShippingMgr() |
protected SolrMgrIf |
getSolrMgr() |
protected java.lang.String |
getStoreId()
Return the storeId
|
protected StoreMgrIf |
getStoreMgr() |
protected TaxMgrIf |
getTaxMgr() |
protected java.lang.String |
getZoneCodeForZoneName(java.lang.String zoneNameStr)
Try to find the zone code for the specified zone name.
|
protected void |
init(KKEngIf engine)
Init method called from the super class.
|
protected boolean |
isAvailable(KKEng engine,
java.lang.String configKey)
Called to determine whether the module is available
|
protected boolean |
isAvailable(java.lang.String configKey)
Called to determine whether the module is available
|
protected boolean |
isMultiStoreShareCustomersOrProducts()
Returns true if we need to share customers or products in multi-store single db mode
|
protected static void |
setDebugStackTraceExclusions(java.lang.String debugStackTraceExclusions) |
protected boolean |
updateStaticVariablesNow(long lastUpdatedMS)
Checks whether we should update the static variables now given the last updated was as
specified.
|
public static final java.lang.String basePackage
protected static java.lang.String debugStackTraceExclusions
protected void init(KKEngIf engine)
engine
- a KKEngIf engineprotected boolean updateStaticVariablesNow(long lastUpdatedMS)
lastUpdatedMS
- the last time the static variables were updated (using system time)protected java.util.ResourceBundle getResourceBundle(java.lang.String mutex, java.lang.String bundleName, java.util.HashMap<java.util.Locale,java.util.ResourceBundle> resourceBundleMap, java.util.Locale locale) throws com.konakart.app.KKException
mutex
- the mutexbundleName
- the bundleNameresourceBundleMap
- the resourceBundleMaplocale
- the localecom.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected boolean isAvailable(KKEng engine, java.lang.String configKey) throws com.konakart.app.KKException
engine
- the KonaKart EngineconfigKey
- the configuration keycom.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected boolean isAvailable(java.lang.String configKey) throws com.konakart.app.KKException
configKey
- the configuration keycom.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected java.lang.String getStoreId() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected KKConfiguration getConfiguration(java.lang.String key) throws com.konakart.app.KKException
key
- the configuration keycom.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected java.lang.String getConfigurationValue(java.lang.String key) throws com.konakart.app.KKException
key
- the configuration keycom.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected boolean getConfigurationValueAsBool(java.lang.String key, boolean def) throws com.konakart.app.KKException
key
- the configuration keydef
- the default value that is used if the key isn't foundcom.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected int getConfigurationValueAsIntWithDefault(java.lang.String key, int def) throws com.konakart.app.KKException
key
- the configuration keydef
- the default value that is used if the key isn't foundcom.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected java.math.BigDecimal getConfigurationValueAsBigDecimalWithDefault(java.lang.String key, java.math.BigDecimal def) throws com.konakart.app.KKException
key
- the configuration keydef
- the default value that is used if the key isn't foundcom.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected java.lang.String getZoneCodeForZoneName(java.lang.String zoneNameStr)
zoneNameStr
- the zone name to findprotected KKEng getEng()
protected TaxMgrIf getTaxMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected LanguageMgrIf getLangMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected CustomerMgrIf getCustMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected CustomerTagMgrIf getCustTagMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected ConfigurationMgrIf getConfigMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected ProductMgrIf getProdMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected CurrencyMgrIf getCurrMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected SecurityMgrIf getSecMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected CategoryMgrIf getCatMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected EmailMgrIf getEmailMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected OrderMgrIf getOrderMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected PromotionMgrIf getPromMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected BasketMgrIf getBasketMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected ShippingMgrIf getShippingMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected PaymentMgrIf getPaymentMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected OrderTotalMgrIf getOrderTotalMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected SolrMgrIf getSolrMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected MultiStoreMgrIf getMultiStoreMgr()
protected RewardPointMgrIf getRewardPointMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected StoreMgrIf getStoreMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected java.lang.String getRandomText(int length)
length
- the lengthprotected java.lang.String getRandomText(java.lang.String allowedChars, int length)
allowedChars
- a String containing the set of characters that can be usedlength
- the lengthprotected KKCriteria getNewCriteria(boolean allStores)
allStores
- the allStoresprotected boolean isMultiStoreShareCustomersOrProducts() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected exception from the KonaKart enginepublic java.lang.String getModuleClassName()
protected static java.lang.String getDebugStackTraceExclusions()
protected static void setDebugStackTraceExclusions(java.lang.String debugStackTraceExclusions)
debugStackTraceExclusions
- the debugStackTraceExclusions to setCopyright © 2018 DS Data Systems UK Ltd.