public class CustomerTagMgr extends BaseMgr
Modifier | Constructor and Description |
---|---|
protected |
CustomerTagMgr(com.konakart.appif.KKEngIf eng,
KKAppEng kkAppEng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addToCustomerTag(java.lang.String tagName,
int tagValue)
Adds the
tagValue for the tag called tagName for the logged in
customer or guest customer. |
boolean |
evaluateExpression(int expressionId,
java.lang.String expressionName)
An expression object is retrieved from the database and evaluated for the logged in customer
or guest customer.
|
com.konakart.appif.CustomerTagIf |
getCustomerTag(java.lang.String tagName)
A CustomerTag object is returned containing the value of the customer tag referenced by the
parameter
tagName for the logged in customer or guest customer. |
java.lang.String |
getCustomerTagValue(java.lang.String tagName)
A string is returned containing the value of the customer tag referenced by the parameter
tagName for the logged in customer or guest customer. |
void |
insertCustomerTag(com.konakart.app.CustomerTag tag)
Sets the
tag for the logged in customer or guest customer. |
void |
insertCustomerTag(java.lang.String tagName,
java.lang.String tagValue)
Sets the
tagValue for the tag called tagName for the logged in
customer or guest customer. |
boolean |
isEnabled()
Based on a configuration variable decides whether Customer Tags are enabled.
|
getEng, getKkAppEng, getPages, isMgrReady, setEng, setKkAppEng
protected CustomerTagMgr(com.konakart.appif.KKEngIf eng, KKAppEng kkAppEng) throws com.konakart.app.KKException
eng
- the engkkAppEng
- the kkAppEngcom.konakart.app.KKException
- an unexpected KKException exceptionpublic void insertCustomerTag(java.lang.String tagName, java.lang.String tagValue) throws KKAppException, com.konakart.app.KKException
tagValue
for the tag called tagName
for the logged in
customer or guest customer.tagName
- The name of the customer tagtagValue
- The value of the customer tag for this customerKKAppException
- an unexpected KKAppException exceptioncom.konakart.app.KKException
- an unexpected KKException exceptionpublic void insertCustomerTag(com.konakart.app.CustomerTag tag) throws KKAppException, com.konakart.app.KKException
tag
for the logged in customer or guest customer.tag
- The customer tag with populated tagName and tagValue attributesKKAppException
- an unexpected KKAppException exceptioncom.konakart.app.KKException
- an unexpected KKException exceptionpublic void addToCustomerTag(java.lang.String tagName, int tagValue) throws KKAppException, com.konakart.app.KKException
tagValue
for the tag called tagName
for the logged in
customer or guest customer. This is only valid for customer tags of type
com.konakart.app.CustomerTag.MULTI_INT_TYPE
or
MULTI_INT_PLUS_TIME_TYPE
.tagName
- The name of the customer tagtagValue
- The value of the customer tag for this customerKKAppException
- an unexpected KKAppException exceptioncom.konakart.app.KKException
- an unexpected KKException exceptionpublic boolean evaluateExpression(int expressionId, java.lang.String expressionName) throws KKAppException, com.konakart.app.KKException
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.expressionId
- the expressionIdexpressionName
- the expressionNameKKAppException
- an unexpected KKAppException exceptioncom.konakart.app.KKException
- an unexpected KKException exceptionpublic java.lang.String getCustomerTagValue(java.lang.String tagName) throws KKAppException, com.konakart.app.KKException
tagName
for the logged in customer or guest customer.tagName
- The name of the customer tagKKAppException
- an unexpected KKAppException exceptioncom.konakart.app.KKException
- an unexpected KKException exceptionpublic com.konakart.appif.CustomerTagIf getCustomerTag(java.lang.String tagName) throws KKAppException, com.konakart.app.KKException
tagName
for the logged in customer or guest customer.tagName
- The name of the customer tagKKAppException
- an unexpected KKAppException exceptioncom.konakart.app.KKException
- an unexpected KKException exceptionpublic boolean isEnabled() throws KKAppException
KKAppException
- an unexpected KKAppException exceptionCopyright © 2018 DS Data Systems UK Ltd.