public class AdminSuggestionMgrEE extends AdminSuggestionMgr implements AdminSuggestionMgrIf
Modifier and Type | Class and Description |
---|---|
protected class |
AdminSuggestionMgrEE.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
|
protected static java.lang.String |
mutex
mutex
|
protected static java.util.Map<java.lang.String,AdminSuggestionMgrEE.StaticData> |
staticDataHM
Hash Map that contains the static data
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminSuggestionMgrEE(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected int |
addSearchCriteria(com.konakart.db.KKCriteria c,
AdminDataDescriptor dataDesc) |
protected void |
addSuggestionAttributes(com.konakart.db.KKCriteria c) |
protected void |
addSuggestionOrderBy(com.konakart.db.KKCriteria c,
AdminDataDescriptor dataDesc) |
protected int |
addSuggestionSearchCriteria(com.konakart.db.KKCriteria c,
AdminSuggestion search) |
protected void |
checkSuggestion(AdminSuggestion suggestion) |
void |
deleteSuggestions(AdminSuggestion suggestion)
This deletes suggestion records from the database.
|
boolean |
doesSuggestionExist(AdminSuggestion suggestion,
java.sql.Connection con)
Return true if the suggestion exists.
|
AdminSuggestionSearchResult |
getSuggestions(AdminSuggestion suggestion,
AdminDataDescriptor dataDesc)
This retrieves AdminSuggestion objects from the database.
|
void |
insertSuggestions(AdminSuggestion[] suggestions)
This inserts AdminSuggestion objects into the database.
|
void |
refreshConfigs()
Refresh the configuration of the Admin Currency Manager
|
protected void |
setSuggestionOrderBy(com.konakart.db.KKCriteria c,
java.lang.String orderBy) |
addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkAPICallEnabled, checkIntInRange, checkIntIsSet, checkRequired, executeQuery, executeQuery, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminContentMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustPwdHistMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminEngineCacheMgr, getAdminEventMgr, getAdminExecuteMgr, getAdminFileMgr, getAdminFilterMgr, getAdminHtmlMgr, getAdminImportMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminMiscPriceMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminServletMgr, getAdminShipmentMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminSuggestionMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getDebugStackTraceExclusions, getEmailThreadGracefulShutdownTimeout, getExportMgr, getExportMgr, getExportXMLData, getIntFromString, getKkAdminPropsFilePath, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getNewCriteria, getNewCriteria, getOtherModuleByName, getPostSearchText, getPreSearchText, getProductsToCategoresCriteria, getPropertyValue, getPropertyValue, getPropertyValueAsBool, getPropertyValueAsInt, getPropertyValueAsLong, getRecordCount, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isCommunity, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, isUnix, isWindows, manageException, manageThrowable, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNow
protected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
protected static java.util.Map<java.lang.String,AdminSuggestionMgrEE.StaticData> staticDataHM
public AdminSuggestionMgrEE(KKAdminIf eng) throws java.lang.Exception
eng
- the KKAdmin enginejava.lang.Exception
- an unexpected exceptionpublic void refreshConfigs() throws KKAdminException
refreshConfigs
in class AdminSuggestionMgr
KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminSuggestionSearchResult getSuggestions(AdminSuggestion suggestion, AdminDataDescriptor dataDesc) throws KKAdminException
AdminSuggestionMgrIf
The where clause for the select will be created by using the values in the suggestion parameter.
getSuggestions
in interface AdminSuggestionMgrIf
getSuggestions
in class AdminSuggestionMgr
suggestion
- Used to define the searchdataDesc
- data descriptor for defining generic search parameters such as size and offsetKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic void insertSuggestions(AdminSuggestion[] suggestions) throws KKAdminException
AdminSuggestionMgrIf
For Product Suggestion types the boughtProductId attribute must be set on the AdminSuggestion objects.
For Customer Suggestion types the customerId attribute must be set on the AdminSuggestion objects.
insertSuggestions
in interface AdminSuggestionMgrIf
insertSuggestions
in class AdminSuggestionMgr
suggestions
- An array of AdminSuggestion objectsKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic boolean doesSuggestionExist(AdminSuggestion suggestion, java.sql.Connection con) throws org.apache.torque.TorqueException, KKAdminException
suggestion
- the suggestion to checkcon
- the connection objectorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic void deleteSuggestions(AdminSuggestion suggestion) throws KKAdminException
AdminSuggestionMgrIf
deleteSuggestions
in interface AdminSuggestionMgrIf
deleteSuggestions
in class AdminSuggestionMgr
suggestion
- An AdminSuggestion object that is used to specify the records to delete.KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected void checkSuggestion(AdminSuggestion suggestion) throws KKAdminException
KKAdminException
protected void addSuggestionAttributes(com.konakart.db.KKCriteria c)
protected int addSearchCriteria(com.konakart.db.KKCriteria c, AdminDataDescriptor dataDesc)
protected int addSuggestionSearchCriteria(com.konakart.db.KKCriteria c, AdminSuggestion search) throws KKAdminException
KKAdminException
protected void addSuggestionOrderBy(com.konakart.db.KKCriteria c, AdminDataDescriptor dataDesc)
protected void setSuggestionOrderBy(com.konakart.db.KKCriteria c, java.lang.String orderBy)
Copyright © 2018 DS Data Systems UK Ltd.