public class AdminCustomerTagMgrEE extends AdminCustomerTagMgr implements AdminCustomerTagMgrIf
AdminBaseMgr.StaticData
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminCustomerTagMgrEE(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addExpressionOrderBy(com.konakart.db.KKCriteria c,
AdminExpressionSearch search) |
protected int |
addExpressionSearchCriteria(com.konakart.db.KKCriteria c,
AdminExpressionSearch search) |
int |
deleteExpression(int id)
Deletes the Expression object referenced by
id . |
int |
deleteExpressionVariable(int id)
Deletes the ExpressionVariable object referenced by
id . |
void |
deleteExpressionVariablesForExpression(int expressionId)
Deletes all of the AdminExpressionVariable objects belonging to the AdminExpression
referenced by
expressionId . |
boolean |
evaluateExpression(int customerId,
int expressionId,
java.lang.String expressionName)
An expression object is retrieved from the database and evaluated for the customer referenced
by the
customerId . |
AdminExpression |
getExpression(int id)
Returns the AdminExpression object for the
id parameter, or Null if the
AdminExpression doesn't exist in the DB. |
int |
getExpressionCount(AdminExpressionSearch search)
Returns the number of expressions available for the given search
|
protected AdminExpression |
getExpressionForCustomer(int custId,
int expressionId,
java.lang.String expressionName)
An AdminExpression object, fully populated with an array of Expression Variables is returned.
|
AdminExpression |
getExpressionForName(java.lang.String expName)
Returns the AdminExpression object for the
expName parameter, or Null if the
AdminExpression doesn't exist in the DB. |
AdminExpressionSearchResult |
getExpressions(AdminExpressionSearch search,
int offset,
int size)
This returns an AdminExpressionSearchResult object.
|
AdminExpression[] |
getExpressionsPerPromotion(int promotionId)
Fetch an array of Expression objects linked to the promotion referenced by
promotionId |
AdminExpressionVariable |
getExpressionVariable(int id)
Returns the AdminExpressionVariable object for the
id parameter, or Null if the
AdminExpressionVariable doesn't exist in the DB. |
protected int |
getExpressionVariableCount(int expressionId) |
AdminExpressionVariable[] |
getExpressionVariablesForExpression(int expressionId)
Returns an array of AdminExpressionVariable objects for the AdminExpression identified by the
id parameter. |
int |
insertExpression(AdminExpression exp)
Inserts an AdminExpression object.
|
int |
insertExpressionVariables(AdminExpressionVariable[] expVarArray)
Inserts an array of ExpressionVariable objects that should all belong to the same expression.
|
protected void |
setExpressionCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
Common code to avoid duplication which sets up the standard attributes for Expressions on the
criteria object.
|
protected void |
setExpressionVariableCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c,
int customerId)
Common code to avoid duplication which sets up the standard attributes for Expression
Variables on the criteria object
|
int |
updateExpression(AdminExpression exp)
Updates the expression.
|
int |
updateExpressionVariable(AdminExpressionVariable expVar)
Updates the ExpressionVariable object passed in as a parameter.
|
protected int |
updateExpressionVariableCount(int expressionId)
Returns the number of expression variable objects for the expression
|
protected void |
updateNumVariables(int ExpressionId,
int numVariables)
Update the number of variables attribute for the Expression
|
protected void |
validateExpressionVariable(AdminExpressionVariable expVar,
java.util.HashMap<java.lang.Integer,java.lang.String> custHM,
java.util.HashMap<java.lang.Integer,java.lang.String> expHM,
com.konakart.db.KKCriteria c) |
addCustomerTagOrderBy, addCustomerTagSearchCriteria, deleteCustomerTag, deleteCustomerTagForCustomer, getCustomerTag, getCustomerTagCount, getCustomerTagForCustomer, getCustomerTagForName, getCustomerTags, getCustomerTagsForCustomer, getCustomerTagsForCustomer, insertCustomerTag, insertCustomerTagForCustomer, setTagCriteriaWithStandardAttributes, updateCustomerTag
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, refreshConfigs, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteCustomerTag, deleteCustomerTagForCustomer, getCustomerTag, getCustomerTagForCustomer, getCustomerTagForName, getCustomerTags, getCustomerTagsForCustomer, getCustomerTagsForCustomer, insertCustomerTag, insertCustomerTagForCustomer, updateCustomerTag
public AdminCustomerTagMgrEE(KKAdminIf eng) throws java.lang.Exception
eng
- the Admin Enginejava.lang.Exception
- an unexpected exceptionpublic boolean evaluateExpression(int customerId, int expressionId, java.lang.String expressionName) throws java.lang.Exception
customerId
. If the expressionName
parameter is not set to
null, then the Expression is searched for by name. Otherwise it is searched for by the id
contained in the expressionId
parameter.evaluateExpression
in interface AdminCustomerTagMgrIf
evaluateExpression
in class AdminCustomerTagMgr
customerId
- the customerIdexpressionId
- the expressionIdexpressionName
- the expressionNamejava.lang.Exception
- an unexpected exceptionpublic int insertExpression(AdminExpression exp) throws KKAdminException, org.apache.torque.TorqueException
name
attribute of the
AdminExpression is required.insertExpression
in interface AdminCustomerTagMgrIf
insertExpression
in class AdminCustomerTagMgr
exp
- The AdminExpression object to be insertedKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public int updateExpression(AdminExpression exp) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
updateExpression
in interface AdminCustomerTagMgrIf
updateExpression
in class AdminCustomerTagMgr
exp
- The AdminExpression object to be updatedKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.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 updateExpressionVariableCount(int expressionId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
updateExpressionVariableCount
in class AdminCustomerTagMgr
expressionId
- the expressionIdKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.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)public int deleteExpression(int id) throws java.lang.Exception
id
.deleteExpression
in interface AdminCustomerTagMgrIf
deleteExpression
in class AdminCustomerTagMgr
id
- The id of the AdminExpression object to be deletedjava.lang.Exception
- an unexpected exceptionpublic AdminExpression getExpression(int id) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter, or Null if the
AdminExpression doesn't exist in the DB.getExpression
in interface AdminCustomerTagMgrIf
getExpression
in class AdminCustomerTagMgr
id
- The id of the AdminExpression objectKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.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 AdminExpression getExpressionForCustomer(int custId, int expressionId, java.lang.String expressionName) throws java.lang.Exception
expressionName
parameter is not set to null, then the Expression is
searched for by name. Otherwise it is searched for by the id contained in the
expressionId
parameter. The expression variables will be populated with the
customer tag values for the customer referenced by custId
. othergetExpressionForCustomer
in class AdminCustomerTagMgr
custId
- the custIdexpressionId
- the expressionIdexpressionName
- the expressionNamejava.lang.Exception
- an unexpected exceptionprotected void updateNumVariables(int ExpressionId, int numVariables) throws org.apache.torque.TorqueException, KKAdminException
updateNumVariables
in class AdminCustomerTagMgr
ExpressionId
- the ExpressionIdnumVariables
- the numVariablesorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic AdminExpressionVariable getExpressionVariable(int id) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter, or Null if the
AdminExpressionVariable doesn't exist in the DB.getExpressionVariable
in interface AdminCustomerTagMgrIf
getExpressionVariable
in class AdminCustomerTagMgr
id
- The id of the AdminExpressionVariable objectKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.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)public AdminExpressionVariable[] getExpressionVariablesForExpression(int expressionId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter. An empty array is returned if no objects are found.getExpressionVariablesForExpression
in interface AdminCustomerTagMgrIf
getExpressionVariablesForExpression
in class AdminCustomerTagMgr
expressionId
- The AdminExpression id for the AdminExpressionVariable objectsKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.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)public AdminExpression getExpressionForName(java.lang.String expName) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
expName
parameter, or Null if the
AdminExpression doesn't exist in the DB.getExpressionForName
in interface AdminCustomerTagMgrIf
getExpressionForName
in class AdminCustomerTagMgr
expName
- The name of the AdminExpression objectKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.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)public AdminExpression[] getExpressionsPerPromotion(int promotionId) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
promotionId
getExpressionsPerPromotion
in interface AdminCustomerTagMgrIf
getExpressionsPerPromotion
in class AdminCustomerTagMgr
promotionId
- the promotionIdcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic AdminExpressionSearchResult getExpressions(AdminExpressionSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getExpressions
in interface AdminCustomerTagMgrIf
getExpressions
in class AdminCustomerTagMgr
search
- The search object that defines the search parameters and sort orderoffset
- The offset in the dbsize
- The number of records from the specified offsetorg.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 enginepublic int getExpressionCount(AdminExpressionSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
AdminCustomerTagMgrIf
getExpressionCount
in interface AdminCustomerTagMgrIf
getExpressionCount
in class AdminCustomerTagMgr
search
- the searchorg.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 engineprotected int getExpressionVariableCount(int expressionId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getExpressionVariableCount
in class AdminCustomerTagMgr
expressionId
- the expressionIdorg.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 engineprotected int addExpressionSearchCriteria(com.konakart.db.KKCriteria c, AdminExpressionSearch search)
addExpressionSearchCriteria
in class AdminCustomerTagMgr
c
- the csearch
- the searchprotected void addExpressionOrderBy(com.konakart.db.KKCriteria c, AdminExpressionSearch search)
addExpressionOrderBy
in class AdminCustomerTagMgr
c
- the csearch
- the searchpublic int insertExpressionVariables(AdminExpressionVariable[] expVarArray) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
insertExpressionVariables
in interface AdminCustomerTagMgrIf
insertExpressionVariables
in class AdminCustomerTagMgr
expVarArray
- The AdminExpressionVariable array of objects to be insertedKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.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)public int updateExpressionVariable(AdminExpressionVariable expVar) throws KKAdminException, org.apache.torque.TorqueException
updateExpressionVariable
in interface AdminCustomerTagMgrIf
updateExpressionVariable
in class AdminCustomerTagMgr
expVar
- The AdminExpressionVariable object to be updatedKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)protected void validateExpressionVariable(AdminExpressionVariable expVar, java.util.HashMap<java.lang.Integer,java.lang.String> custHM, java.util.HashMap<java.lang.Integer,java.lang.String> expHM, com.konakart.db.KKCriteria c) throws KKAdminException, org.apache.torque.TorqueException
validateExpressionVariable
in class AdminCustomerTagMgr
expVar
- the expVarcustHM
- the custHMexpHM
- the expHMc
- the cKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public int deleteExpressionVariable(int id) throws org.apache.torque.TorqueException, KKAdminException, com.workingdogs.village.DataSetException
id
.deleteExpressionVariable
in interface AdminCustomerTagMgrIf
deleteExpressionVariable
in class AdminCustomerTagMgr
id
- The id of the AdminExpressionVariable object to be deletedcom.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)KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic void deleteExpressionVariablesForExpression(int expressionId) throws org.apache.torque.TorqueException, KKAdminException, com.workingdogs.village.DataSetException
expressionId
.deleteExpressionVariablesForExpression
in interface AdminCustomerTagMgrIf
deleteExpressionVariablesForExpression
in class AdminCustomerTagMgr
expressionId
- The id of the AdminExpression objectcom.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)protected void setExpressionCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
setExpressionCriteriaWithStandardAttributes
in class AdminCustomerTagMgr
c
- criteria objectprotected void setExpressionVariableCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c, int customerId)
setExpressionVariableCriteriaWithStandardAttributes
in class AdminCustomerTagMgr
c
- criteria objectcustomerId
- customer IdCopyright © 2018 DS Data Systems UK Ltd.