public class AdminCustomerTagMgr extends AdminBaseMgr 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 |
---|
AdminCustomerTagMgr(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addCustomerTagOrderBy(com.konakart.db.KKCriteria c,
AdminCustomerTagSearch search)
Add order by constraints for customer tags
|
protected int |
addCustomerTagSearchCriteria(com.konakart.db.KKCriteria c,
AdminCustomerTagSearch search)
Add search criteria for customer tags
|
protected void |
addExpressionOrderBy(com.konakart.db.KKCriteria c,
AdminExpressionSearch search) |
protected int |
addExpressionSearchCriteria(com.konakart.db.KKCriteria c,
AdminExpressionSearch search) |
int |
deleteCustomerTag(int id)
Delete a Customer tag
|
void |
deleteCustomerTagForCustomer(int customerId,
java.lang.String tagName)
Deletes the value of the customer tag referenced by
tagName for the customer
referenced by customerId . |
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 . |
AdminCustomerTag |
getCustomerTag(int id)
Returns the customer tag object for the
id parameter, or Null if the customer
tag doesn't exist in the DB. |
protected int |
getCustomerTagCount(AdminCustomerTagSearch search)
Returns a count of the number of CustomerTags
|
AdminCustomerTag |
getCustomerTagForCustomer(int customerId,
java.lang.String tagName)
Returns the customer tag object for the
tagName parameter, or Null if the
customer tag doesn't exist in the DB. |
AdminCustomerTag |
getCustomerTagForName(java.lang.String tagName)
Returns the customer tag object for the
tagName parameter, or Null if the
customer tag doesn't exist in the DB. |
AdminCustomerTagSearchResult |
getCustomerTags(AdminCustomerTagSearch search,
int offset,
int size)
This returns an AdminCustomerTagSearchResult object.
|
AdminCustomerTag[] |
getCustomerTagsForCustomer(int customerId)
This method fetches all of the customer tags for the customer referenced by the
customerId parameter. |
AdminCustomerTag[] |
getCustomerTagsForCustomer(int customerId,
java.lang.String[] tagNames)
Returns the customer tag objects for the
tagNames parameter, or Null if none of
the specified customer tags exist in the DB for the customer. |
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 |
insertCustomerTag(AdminCustomerTag tag)
An AdminCustomerTag object is inserted into the database.
|
void |
insertCustomerTagForCustomer(int customerId,
AdminCustomerTag tag)
Assigns a customer tag to the customer referenced by the
customerId . |
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
|
protected void |
setTagCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c,
int customerId)
Common code to avoid duplication
|
int |
updateCustomerTag(AdminCustomerTag tag)
Update an AdminCustomerTag 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) |
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
public AdminCustomerTagMgr(KKAdminIf eng) throws java.lang.Exception
eng
- the Admin Enginejava.lang.Exception
- an unexpected exceptionpublic int insertCustomerTag(AdminCustomerTag tag) throws KKAdminException, org.apache.torque.TorqueException
insertCustomerTag
in interface AdminCustomerTagMgrIf
tag
- the tagKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public void insertCustomerTagForCustomer(int customerId, AdminCustomerTag tag) throws KKAdminException, org.apache.torque.TorqueException, java.text.ParseException, com.workingdogs.village.DataSetException
customerId
. If a tag
already exists with this name, then the value is replaced with the new value. The compulsory
tag fields are:
Note that a customer tag with name tag.getName()
must exist in the database
since it is used to validate tag.getValue()
.
insertCustomerTagForCustomer
in interface AdminCustomerTagMgrIf
customerId
- the customerIdtag
- the tagKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)java.text.ParseException
- an unexpected ParseException exceptioncom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public int updateCustomerTag(AdminCustomerTag tag) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
updateCustomerTag
in interface AdminCustomerTagMgrIf
tag
- An AdminCustomerTag 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 int deleteCustomerTag(int id) throws KKAdminException, org.apache.torque.TorqueException
deleteCustomerTag
in interface AdminCustomerTagMgrIf
id
- The id of the deleted customer tagKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public void deleteCustomerTagForCustomer(int customerId, java.lang.String tagName) throws KKAdminException, org.apache.torque.TorqueException
tagName
for the customer
referenced by customerId
.deleteCustomerTagForCustomer
in interface AdminCustomerTagMgrIf
customerId
- the customerIdtagName
- the tagNameKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public AdminCustomerTag getCustomerTag(int id) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter, or Null if the customer
tag doesn't exist in the DB.getCustomerTag
in interface AdminCustomerTagMgrIf
id
- the idKKAdminException
- 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 AdminCustomerTag getCustomerTagForName(java.lang.String tagName) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
tagName
parameter, or Null if the
customer tag doesn't exist in the DB.getCustomerTagForName
in interface AdminCustomerTagMgrIf
tagName
- the tagNameKKAdminException
- 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 AdminCustomerTag getCustomerTagForCustomer(int customerId, java.lang.String tagName) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
tagName
parameter, or Null if the
customer tag doesn't exist in the DB. The value
attribute of the customer tag
contains the value for the customer referenced by customerId
.getCustomerTagForCustomer
in interface AdminCustomerTagMgrIf
customerId
- the customerIdtagName
- the tagNameKKAdminException
- 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 AdminCustomerTag[] getCustomerTagsForCustomer(int customerId, java.lang.String[] tagNames) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
tagNames
parameter, or Null if none of
the specified customer tags exist in the DB for the customer. The value
attribute of the customer tag contains the value for the customer referenced by
customerId
.getCustomerTagsForCustomer
in interface AdminCustomerTagMgrIf
customerId
- the customerIdtagNames
- the tagNames to retrieveKKAdminException
- 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 AdminCustomerTag[] getCustomerTagsForCustomer(int customerId) throws org.apache.torque.TorqueException, KKAdminException, com.workingdogs.village.DataSetException
customerId
parameter. The value
attribute of the customer tag
contains the value for the customer referenced by customerId
.
An empty array is returned if no tags exist.
getCustomerTagsForCustomer
in interface AdminCustomerTagMgrIf
customerId
- the customerIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginecom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public AdminCustomerTagSearchResult getCustomerTags(AdminCustomerTagSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getCustomerTags
in interface AdminCustomerTagMgrIf
search
- the searchoffset
- the offset in the dbsize
- the number of records from the specified offsetcom.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 engineprotected void addCustomerTagOrderBy(com.konakart.db.KKCriteria c, AdminCustomerTagSearch search)
c
- the csearch
- the searchprotected int getCustomerTagCount(AdminCustomerTagSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search 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)KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected int addCustomerTagSearchCriteria(com.konakart.db.KKCriteria c, AdminCustomerTagSearch search)
c
- the csearch
- the searchprotected void setTagCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c, int customerId)
c
- the ccustomerId
- the customerIdpublic int insertExpression(AdminExpression exp) throws KKAdminException, org.apache.torque.TorqueException
name
attribute of the
AdminExpression is required.insertExpression
in interface AdminCustomerTagMgrIf
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
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
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
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
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 void updateNumVariables(int ExpressionId, int numVariables) throws org.apache.torque.TorqueException, KKAdminException
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 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
customerId
- the customerIdexpressionId
- the expressionIdexpressionName
- the expressionNamejava.lang.Exception
- an unexpected exceptionprotected 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
. othercustId
- the custIdexpressionId
- the expressionIdexpressionName
- the expressionNamejava.lang.Exception
- an unexpected exceptionpublic 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
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
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
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
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
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
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
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) throws KKAdminException
c
- the csearch
- the searchKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected void addExpressionOrderBy(com.konakart.db.KKCriteria c, AdminExpressionSearch search) throws KKAdminException
c
- the csearch
- the searchKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic int insertExpressionVariables(AdminExpressionVariable[] expVarArray) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
insertExpressionVariables
in interface AdminCustomerTagMgrIf
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
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
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
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
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) throws KKAdminException
c
- criteria objectKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected void setExpressionVariableCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c, int customerId) throws KKAdminException
c
- criteria objectcustomerId
- customer IdKKAdminException
- an unexpected exception in the KonaKart Admin engineCopyright © 2018 DS Data Systems UK Ltd.