public class AdminBaseMgr
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
AdminBaseMgr.StaticData
Used to store the static data of this manager
|
Modifier and Type | Field and Description |
---|---|
protected KKAdminIf |
adminEng
Our Admin Engine
|
protected static java.lang.String |
baseMgrMutex
mutex
|
protected static java.util.Map<java.lang.String,AdminBaseMgr.StaticData> |
baseStaticDataHM
Hash Map that contains the static data
|
protected static java.lang.String |
cDataEnd
CDATA end
|
protected static java.lang.String |
cDataStart
CDATA start
|
protected static java.lang.String |
debugStackTraceExclusions
For excluding lines from debug stack traces - to eliminate unhelpful information
|
protected java.lang.String |
kkAdminPropsFilePath
Properties file path for diagnostic purposes
|
protected org.apache.commons.configuration2.Configuration |
kkConf
Configuration from properties file
|
protected static java.lang.String |
kkInstanceId
The KonaKart Instance - read from the properties file
|
private static org.apache.commons.logging.Log |
log
the log
|
protected AdminMgrFactory |
mgrFactory
Factory for creating managers
|
protected static java.lang.String |
STORE_ID
store id
|
protected java.lang.String |
templateBaseDir
Velocity template base directory under WEB-INF/classes.
|
Constructor and Description |
---|
AdminBaseMgr()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected static void |
addInsertAttr(com.konakart.db.KKCriteria c,
java.lang.String attrName,
int value)
A utility method to not add integers that are equal to ConstantsMgr.NOT_SET
|
protected static void |
addInsertAttr(com.konakart.db.KKCriteria c,
java.lang.String attrName,
java.lang.Object value)
A utility to not add null objects
|
int |
addStringRuleConstraint(com.konakart.db.KKCriteria c,
java.lang.String value,
int rule,
org.apache.torque.map.ColumnMap colMap) |
protected int |
addStringRuleConstraint(com.konakart.db.KKCriteria c,
java.lang.String searchValue,
int searchRule,
java.lang.String attrId)
Add a String search constraint to the criteria.
|
protected void |
checkAPICallEnabled(java.lang.String apiCall)
Check in the properties that this API call has been enabled otherwise throw an exception
|
protected void |
checkIntInRange(int param,
int min,
int max,
java.lang.String paramName)
Throws an exception if the int parameter is not in the specified range.
|
protected void |
checkIntIsSet(int param,
java.lang.String paramType,
java.lang.String paramName)
Throws an exception if the int parameter is KKConstants.NOT_SET.
|
protected void |
checkRequired(java.lang.Object param,
java.lang.String paramType,
java.lang.String paramName)
Throws an exception with a proper message if the required parameter is null or null or empty
for the case of a string.
|
protected java.util.List<com.workingdogs.village.Record> |
executeQuery(java.lang.String query)
Execute query that works for all engine modes
|
protected java.util.List<com.workingdogs.village.Record> |
executeQuery(java.lang.String query,
java.util.List<java.lang.Object> whereValues)
Execute query that works for all engine modes
|
protected AdminAddressMgrIf |
getAdminAddressMgr() |
protected AdminAuditMgrIf |
getAdminAuditMgr() |
protected AdminBillingMgrIf |
getAdminBillingMgr() |
protected AdminBookableProductMgrIf |
getAdminBookableProductMgr() |
protected AdminCategoryMgrIf |
getAdminCatMgr() |
protected AdminConfigurationMgrIf |
getAdminConfigMgr() |
protected AdminContentMgrIf |
getAdminContentMgr() |
protected AdminCurrencyMgrIf |
getAdminCurrMgr() |
protected AdminCustomerMgrIf |
getAdminCustMgr() |
protected AdminCustomerPwdHistMgrIf |
getAdminCustPwdHistMgr() |
protected AdminCustomerTagMgrIf |
getAdminCustTagMgr() |
protected AdminEmailMgrIf |
getAdminEmailMgr() |
KKAdminIf |
getAdminEng() |
protected AdminEngineCacheMgrIf |
getAdminEngineCacheMgr() |
protected AdminEventMgrIf |
getAdminEventMgr() |
protected AdminExecuteMgrIf |
getAdminExecuteMgr() |
AdminFileMgrIf |
getAdminFileMgr() |
AdminFilterMgrIf |
getAdminFilterMgr() |
AdminHtmlMgrIf |
getAdminHtmlMgr() |
protected AdminImportMgrIf |
getAdminImportMgr(KKAdminIf _adminEng,
com.konakart.appif.KKEngIf _eng) |
protected AdminLanguageMgrIf |
getAdminLanguageMgr() |
protected AdminManufacturerMgrIf |
getAdminManuMgr() |
AdminMessageMgrIf |
getAdminMessageMgr() |
protected AdminMiscItemMgrIf |
getAdminMiscItemMgr() |
protected AdminMiscPriceMgrIf |
getAdminMiscPriceMgr() |
protected AdminModulesMgrIf |
getAdminModulesMgr() |
AdminMultiStoreMgrIf |
getAdminMultiStoreMgr() |
protected AdminOrderMgrIf |
getAdminOrderMgr() |
protected AdminPdfMgrIf |
getAdminPdfMgr() |
protected AdminProdAttrMgrIf |
getAdminProdAttrMgr() |
protected AdminProductMgrIf |
getAdminProdMgr() |
protected AdminPromotionMgrIf |
getAdminPromMgr() |
AdminReviewMgrIf |
getAdminReviewMgr() |
protected AdminSearchRuleMgrIf |
getAdminSearchRuleMgr() |
protected AdminSecurityMgrIf |
getAdminSecMgr() |
protected AdminServletMgrIf |
getAdminServletMgr() |
protected AdminShipmentMgrIf |
getAdminShipmentMgr() |
AdminSolrMgrIf |
getAdminSolrMgr() |
AdminStoreMgrIf |
getAdminStoreMgr() |
AdminSuggestionMgrIf |
getAdminSuggestionMgr() |
protected AdminTagMgrIf |
getAdminTagMgr() |
protected AdminTaxMgrIf |
getAdminTaxMgr() |
AdminValidationMgrIf |
getAdminValidationMgr() |
AdminVelocityContextMgrIf |
getAdminVelocityContextMgr() |
AdminWishListMgrIf |
getAdminWishListMgr() |
boolean |
getBooleanFromString(java.lang.String value,
boolean def)
Get a boolean value for the String
|
protected static java.lang.String |
getDebugStackTraceExclusions() |
protected int |
getEmailThreadGracefulShutdownTimeout() |
protected com.konakart.blif.ExportMgrIf |
getExportMgr() |
protected com.konakart.blif.ExportMgrIf |
getExportMgr(com.konakart.appif.KKEngIf storefrontEngine) |
protected ExportXMLDataIf |
getExportXMLData()
Finds and returns an implementation of the ExportXMLDataIf on the class path
|
int |
getIntFromString(java.lang.String value,
int def)
Get an integer value for the String
|
protected java.lang.String |
getKkAdminPropsFilePath() |
protected org.apache.commons.configuration2.Configuration |
getKkConfig()
Get the kkConf the properties file
|
protected java.lang.String |
getKkInstanceId()
Get the instance Id from the properties file
|
protected int |
getMode()
Return the engine mode
|
protected java.lang.String |
getModeString()
Return the engine mode - as a descriptive String for diagnostic purposes only
|
protected com.konakart.mqif.MqMgrIf |
getMqMgr() |
com.konakart.db.KKCriteria |
getNewCriteria()
Gets a new KKCriteria object and sets the Database name.
|
com.konakart.db.KKCriteria |
getNewCriteria(boolean allStores)
Gets a new KKCriteria object and sets the Database name.
|
com.konakart.db.KKCriteria |
getNewCriteria(boolean allStores,
org.apache.torque.sql.Query.Type type)
Gets a new KKCriteria object and sets the Database name.
|
com.konakart.db.KKCriteria |
getNewCriteria(org.apache.torque.sql.Query.Type type)
Gets a new KKCriteria object and sets the Database name.
|
protected OtherModuleInterface |
getOtherModuleByName(java.lang.String moduleName)
Called to instantiate an Admin Other module.
|
java.lang.String |
getPostSearchText() |
java.lang.String |
getPreSearchText() |
protected com.konakart.db.KKCriteria |
getProductsToCategoresCriteria()
Gets a new KKCriteria object for use with ProductsToCategories.
|
protected java.lang.String |
getPropertyValue(java.lang.String propKey) |
protected java.lang.String |
getPropertyValue(java.lang.String propKey,
java.lang.String def)
Get the property value as a String if found, otherwise return the default
|
protected boolean |
getPropertyValueAsBool(java.lang.String propKey,
boolean def)
Get the property value as a boolean if found, otherwise return the default
|
protected int |
getPropertyValueAsInt(java.lang.String propKey,
int def)
Get the property value as an int if found, otherwise return the default
|
protected long |
getPropertyValueAsLong(java.lang.String propKey,
long def)
Get the property value as a long if found, otherwise return the default
|
protected int |
getRecordCount(com.konakart.db.KKCriteria c)
This method is mainly used for paging...
|
protected int |
getRecordCount(com.konakart.db.KKCriteria c,
java.sql.Connection con)
This method is mainly used for paging...
|
protected AdminRewardPointMgrIf |
getRewardPointMgr() |
protected int |
getSingleIntResult(com.konakart.db.KKCriteria c)
This method is used to run a SELECT defined by the Criteria and return the single integer
value returned by the query as the result.
|
protected java.lang.String |
getStoreId()
Return the storeId.
|
org.apache.velocity.Template |
getTemplate(org.apache.velocity.app.VelocityEngine ve,
java.lang.String configDir,
java.lang.String templateName)
Helper method to search for the velocity templates under the Template Base Directory
|
java.lang.String |
getTemplateBase(java.lang.String configDir)
Returns the template base directory which is created by concatenating the following:
Value of the Directory configuration variable passed in
current storeId
|
protected Xml_io_If |
getXml_io()
Finds and returns an implementation of the Xml_io_If on the class path
|
protected void |
init(KKAdminIf eng)
Init method called from the super class.
|
protected int |
insertKKEvent(int code,
int subCode,
int intValue) |
protected int |
insertKKEvent(int code,
int subCode,
java.lang.String value) |
protected boolean |
isBusiness()
Returns true if we are in Business Mode
|
protected boolean |
isBusinessOrEnterprise()
Returns true if we are in Business or Enterprise Mode
|
protected boolean |
isCommunity()
Returns true if we are in Community Mode
|
protected boolean |
isConfigSet(java.lang.String configKey,
boolean defaultValue)
Is the specified config key's value is set to TRUE, YES or ON (case insensitive)? If the
config key's value isn't found the specified default value is returned.
|
protected boolean |
isEnterprise()
Returns true if we are in Enterprise Mode
|
protected boolean |
isMultiStoreLanguagesShared()
Returns true if we can share languages in multi-store single db mode
|
protected boolean |
isMultiStoreMode()
Is the engine running in one of the MultiStore modes?
|
protected boolean |
isMultiStoreShareCategories()
Returns true if we can share categories in multi-store single db mode.
|
protected boolean |
isMultiStoreShareCustomers()
Returns true if we need to share customers in multi-store single db mode
|
protected boolean |
isMultiStoreShareCustomersOrProducts()
Returns true if we need to share customers or products in multi-store single db mode
|
protected boolean |
isMultiStoreShareProducts()
Returns true if we can share products in multi-store single db mode
|
protected boolean |
isMultiStoreSingleDBCSMode()
Is the engine running in MultiStore Single DB Customers Shared mode?
|
protected boolean |
isMultiStoreSingleDBMode()
Is the engine running in one of the MultiStore Single DB modes?
|
protected boolean |
isMultiStoreSingleDBNonCSMode()
Is the engine running in MultiStore Single DB Non-Shared Customers mode?
|
protected boolean |
isUnix()
Is a Windows-like operating system?
|
protected boolean |
isWindows()
Is a Windows-like operating system?
|
protected KKAdminException |
manageException(java.lang.Exception e)
Common code to manage exceptions in the Admin Managers
|
protected KKAdminException |
manageThrowable(java.lang.Throwable e)
Common code to manage Throwable exceptions in the Admin Managers
|
void |
refreshConfigs()
Refresh the configuration of the Admin Base Manager
|
java.lang.String |
removeCData(java.lang.String stringIn)
Returns the string passed in as stringIn without the CData information.
|
protected boolean |
sendMQMessages()
Returns true if we should send MQ messages.
|
void |
setAdminEng(KKAdminIf adminEng) |
protected static void |
setDebugStackTraceExclusions(java.lang.String debugStackTraceExclusions) |
protected void |
setKkAdminPropsFilePath(java.lang.String kkAdminPropsFilePath) |
void |
setupWildCardRules(AdminBaseMgr.StaticData sd)
Some of the managers, but not all, will want to set these Wildcard rules
|
void |
setWildCardAfter(AdminBaseMgr.StaticData sd)
Set the post-search string based on the configuration variable value
|
void |
setWildCardBefore(AdminBaseMgr.StaticData sd)
Set the pre-search string based on the configuration variable value
|
protected void |
shutdownGracefully(java.io.BufferedWriter bw)
Common code to shutdown gracefully for the case where there is a buffered writer for the log.
|
protected void |
shutdownGracefully(java.util.concurrent.ExecutorService executor,
java.io.BufferedWriter bw)
Common code to shutdown gracefully for the case where eMails are being send by multiple
threads and there is a buffered writer for the log.
|
protected java.lang.String |
timestampStr() |
protected boolean |
updateStaticVariablesNow(long lastUpdatedMS)
Checks whether we should update the static variables now given the last updated was as
specified.
|
private static org.apache.commons.logging.Log log
protected static java.lang.String baseMgrMutex
protected static final java.lang.String STORE_ID
protected static final java.lang.String cDataStart
protected static final java.lang.String cDataEnd
protected KKAdminIf adminEng
protected java.lang.String templateBaseDir
protected static java.util.Map<java.lang.String,AdminBaseMgr.StaticData> baseStaticDataHM
protected AdminMgrFactory mgrFactory
protected org.apache.commons.configuration2.Configuration kkConf
protected java.lang.String kkAdminPropsFilePath
protected static java.lang.String kkInstanceId
protected static java.lang.String debugStackTraceExclusions
protected void init(KKAdminIf eng) throws java.lang.Exception
eng
- the Admin Enginejava.lang.Exception
- an unexpected exceptionprotected java.lang.String getPropertyValue(java.lang.String propKey) throws KKAdminException
propKey
- the propKeyKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected java.lang.String getPropertyValue(java.lang.String propKey, java.lang.String def) throws KKAdminException
propKey
- the property keydef
- the default to use if the key isn't foundKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected int getPropertyValueAsInt(java.lang.String propKey, int def) throws KKAdminException
propKey
- the property keydef
- the default to use if the key isn't foundKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected long getPropertyValueAsLong(java.lang.String propKey, long def) throws KKAdminException
propKey
- the property keydef
- the default to use if the key isn't foundKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected boolean getPropertyValueAsBool(java.lang.String propKey, boolean def) throws KKAdminException
propKey
- the property keydef
- the default to use if the key isn't foundKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected int getRecordCount(com.konakart.db.KKCriteria c) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
c
- the Criteriaorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)protected int getRecordCount(com.konakart.db.KKCriteria c, java.sql.Connection con) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
c
- the Criteriacon
- Connection for transactionorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)protected int getSingleIntResult(com.konakart.db.KKCriteria c) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
c
- the Criteriaorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)protected org.apache.commons.configuration2.Configuration getKkConfig() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected java.lang.String getKkInstanceId() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic void setupWildCardRules(AdminBaseMgr.StaticData sd)
sd
- StaticDataprotected boolean isBusinessOrEnterprise() throws KKAdminException
KKAdminException
- if the engine config has not yet been definedprotected boolean isEnterprise() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engine if the engine config has not
yet been definedprotected boolean isBusiness() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engine if the engine config has not
yet been definedprotected boolean isCommunity() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engine if the engine config has not
yet been definedprotected boolean isUnix()
protected boolean isWindows()
public boolean getBooleanFromString(java.lang.String value, boolean def)
value
- the String value to parsedef
- the default result if there's a problem parsing the Stringpublic int getIntFromString(java.lang.String value, int def)
value
- the String value to parsedef
- the default result if there's a problem parsing the Stringprotected int insertKKEvent(int code, int subCode, int intValue) throws KKAdminException
code
- the codesubCode
- the subCodeintValue
- the intValueKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected int insertKKEvent(int code, int subCode, java.lang.String value) throws KKAdminException
code
- the codesubCode
- the subCodevalue
- the valueKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected AdminAddressMgrIf getAdminAddressMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminAuditMgrIf getAdminAuditMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminBillingMgrIf getAdminBillingMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminBookableProductMgrIf getAdminBookableProductMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminCategoryMgrIf getAdminCatMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminCustomerMgrIf getAdminCustMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminConfigurationMgrIf getAdminConfigMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminContentMgrIf getAdminContentMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminCustomerTagMgrIf getAdminCustTagMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminCurrencyMgrIf getAdminCurrMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminCustomerPwdHistMgrIf getAdminCustPwdHistMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminExecuteMgrIf getAdminExecuteMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminEmailMgrIf getAdminEmailMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminEngineCacheMgrIf getAdminEngineCacheMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminEventMgrIf getAdminEventMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic AdminFileMgrIf getAdminFileMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic AdminFilterMgrIf getAdminFilterMgr()
public AdminHtmlMgrIf getAdminHtmlMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminImportMgrIf getAdminImportMgr(KKAdminIf _adminEng, com.konakart.appif.KKEngIf _eng) throws java.lang.Exception
_adminEng
- the _adminEng_eng
- the _engjava.lang.Exception
- an unexpected exceptionprotected AdminLanguageMgrIf getAdminLanguageMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminModulesMgrIf getAdminModulesMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminManufacturerMgrIf getAdminManuMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic AdminMessageMgrIf getAdminMessageMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminMiscPriceMgrIf getAdminMiscPriceMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminMiscItemMgrIf getAdminMiscItemMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic AdminMultiStoreMgrIf getAdminMultiStoreMgr()
protected AdminOrderMgrIf getAdminOrderMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminPdfMgrIf getAdminPdfMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminProductMgrIf getAdminProdMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminPromotionMgrIf getAdminPromMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminProdAttrMgrIf getAdminProdAttrMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic AdminReviewMgrIf getAdminReviewMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminShipmentMgrIf getAdminShipmentMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminSearchRuleMgrIf getAdminSearchRuleMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminSecurityMgrIf getAdminSecMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminServletMgrIf getAdminServletMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic AdminSolrMgrIf getAdminSolrMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic AdminStoreMgrIf getAdminStoreMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic AdminSuggestionMgrIf getAdminSuggestionMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminTagMgrIf getAdminTagMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminTaxMgrIf getAdminTaxMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic AdminValidationMgrIf getAdminValidationMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic AdminVelocityContextMgrIf getAdminVelocityContextMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic AdminWishListMgrIf getAdminWishListMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected AdminRewardPointMgrIf getRewardPointMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected com.konakart.blif.ExportMgrIf getExportMgr(com.konakart.appif.KKEngIf storefrontEngine) throws java.lang.Exception
storefrontEngine
- an instance of a KKEngIf enginejava.lang.Exception
- an unexpected exceptionprotected com.konakart.blif.ExportMgrIf getExportMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected com.konakart.mqif.MqMgrIf getMqMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected static void addInsertAttr(com.konakart.db.KKCriteria c, java.lang.String attrName, int value)
c
- the cattrName
- the attrNamevalue
- the valuepublic java.lang.String removeCData(java.lang.String stringIn)
stringIn
- the stringInprotected static void addInsertAttr(com.konakart.db.KKCriteria c, java.lang.String attrName, java.lang.Object value)
c
- the cattrName
- the attrNamevalue
- the valueprotected void checkRequired(java.lang.Object param, java.lang.String paramType, java.lang.String paramName) throws KKAdminException
param
- the paramparamType
- the paramTypeparamName
- the paramNameKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected void checkIntIsSet(int param, java.lang.String paramType, java.lang.String paramName) throws KKAdminException
param
- the paramparamType
- the paramTypeparamName
- the paramNameKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected void checkIntInRange(int param, int min, int max, java.lang.String paramName) throws KKAdminException
param
- the parammin
- the minmax
- the maxparamName
- the paramNameKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic void setWildCardBefore(AdminBaseMgr.StaticData sd) throws java.lang.Exception
sd
- StaticDatajava.lang.Exception
- an unexpected exceptionprotected boolean isConfigSet(java.lang.String configKey, boolean defaultValue) throws org.apache.torque.TorqueException, KKAdminException, com.workingdogs.village.DataSetException, java.lang.Exception
configKey
- the configuration keydefaultValue
- the default value to use if the configuration key isn't foundjava.lang.Exception
- an unexpected exceptioncom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public void setWildCardAfter(AdminBaseMgr.StaticData sd) throws java.lang.Exception
sd
- StaticDatajava.lang.Exception
- an unexpected exceptionpublic java.lang.String getPreSearchText()
public java.lang.String getPostSearchText()
public KKAdminIf getAdminEng()
public void setAdminEng(KKAdminIf adminEng)
adminEng
- The adminEng to set.public int addStringRuleConstraint(com.konakart.db.KKCriteria c, java.lang.String value, int rule, org.apache.torque.map.ColumnMap colMap)
c
- the cvalue
- the valuerule
- the rulecolMap
- the colMapprotected int addStringRuleConstraint(com.konakart.db.KKCriteria c, java.lang.String searchValue, int searchRule, java.lang.String attrId)
c
- the CriteriasearchValue
- value to use in the searchsearchRule
- ruleattrId
- the BasePeer attribute nameprotected int getMode() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected java.lang.String getModeString()
protected boolean isMultiStoreMode() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected boolean isMultiStoreSingleDBMode() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected boolean isMultiStoreSingleDBCSMode() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected boolean isMultiStoreSingleDBNonCSMode() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected java.lang.String getStoreId() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic com.konakart.db.KKCriteria getNewCriteria()
public com.konakart.db.KKCriteria getNewCriteria(org.apache.torque.sql.Query.Type type)
type
- the SQL typepublic com.konakart.db.KKCriteria getNewCriteria(boolean allStores)
allStores
- the allStorespublic com.konakart.db.KKCriteria getNewCriteria(boolean allStores, org.apache.torque.sql.Query.Type type)
allStores
- the allStorestype
- the SQL typeprotected com.konakart.db.KKCriteria getProductsToCategoresCriteria()
protected boolean isMultiStoreShareCustomers() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected boolean isMultiStoreShareCustomersOrProducts() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected boolean isMultiStoreShareProducts() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected boolean isMultiStoreShareCategories() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected boolean isMultiStoreLanguagesShared() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected KKAdminException manageException(java.lang.Exception e)
e
- the eprotected KKAdminException manageThrowable(java.lang.Throwable e)
e
- the eprotected java.util.List<com.workingdogs.village.Record> executeQuery(java.lang.String query) throws org.apache.torque.TorqueException, KKAdminException
query
- the queryorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected java.util.List<com.workingdogs.village.Record> executeQuery(java.lang.String query, java.util.List<java.lang.Object> whereValues) throws org.apache.torque.TorqueException, KKAdminException
query
- the querywhereValues
- values for replacement in the prepared statementorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected boolean updateStaticVariablesNow(long lastUpdatedMS)
lastUpdatedMS
- the last time the static variables were updated (using system time)public void refreshConfigs() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionprotected void shutdownGracefully(java.util.concurrent.ExecutorService executor, java.io.BufferedWriter bw) throws java.io.IOException, java.lang.InterruptedException
executor
- the executorbw
- the bwjava.io.IOException
- an unexpected IOException exceptionjava.lang.InterruptedException
- an unexpected InterruptedException exceptionprotected void shutdownGracefully(java.io.BufferedWriter bw) throws java.io.IOException, java.lang.InterruptedException
bw
- the bwjava.io.IOException
- an unexpected IOException exceptionjava.lang.InterruptedException
- an unexpected InterruptedException exceptionprotected int getEmailThreadGracefulShutdownTimeout()
protected java.lang.String timestampStr()
public org.apache.velocity.Template getTemplate(org.apache.velocity.app.VelocityEngine ve, java.lang.String configDir, java.lang.String templateName) throws org.apache.velocity.exception.ResourceNotFoundException, org.apache.velocity.exception.ParseErrorException, KKAdminException, java.lang.Exception
ve
- the veconfigDir
- the configuration parameter that defines the root directory for the templatetemplateName
- the templateNameorg.apache.velocity.exception.ResourceNotFoundException
- an unexpected ResourceNotFoundException exceptionorg.apache.velocity.exception.ParseErrorException
- an unexpected ParseErrorException exceptionKKAdminException
- an unexpected exception in the KonaKart Admin enginejava.lang.Exception
- an unexpected exceptionpublic java.lang.String getTemplateBase(java.lang.String configDir) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException, java.lang.Exception
If the config variable isn't available, a default value of the current directory is returned.
configDir
- the configuration parameter that defines the root directory for the templateorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginejava.lang.Exception
- an unexpected exceptionprotected Xml_io_If getXml_io() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engine if the Xml_io class cannot
be loadedprotected ExportXMLDataIf getExportXMLData() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engine if the ExportXMLData class
cannot be loadedprotected OtherModuleInterface getOtherModuleByName(java.lang.String moduleName) throws KKAdminException
moduleName
- just the classname without the preceding "com.konakartadmin.modules.others." which
is added by this methodKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected void checkAPICallEnabled(java.lang.String apiCall) throws KKAdminException
apiCall
- the name of the API call.KKAdminException
- an unexpected exception in the KonaKart Admin engine the the API call has not
been enabledprotected boolean sendMQMessages()
protected java.lang.String getKkAdminPropsFilePath()
protected void setKkAdminPropsFilePath(java.lang.String kkAdminPropsFilePath)
kkAdminPropsFilePath
- the kkAdminPropsFilePath to setprotected static java.lang.String getDebugStackTraceExclusions()
protected static void setDebugStackTraceExclusions(java.lang.String debugStackTraceExclusions)
debugStackTraceExclusions
- the debugStackTraceExclusions to setCopyright © 2018 DS Data Systems UK Ltd.