com.konakart.al
Class CustomerTagMgr

java.lang.Object
  extended by com.konakart.al.BaseMgr
      extended by com.konakart.al.CustomerTagMgr

public class CustomerTagMgr
extends BaseMgr

Contains methods to manage Customer Tags


Field Summary
 
Fields inherited from class com.konakart.al.BaseMgr
eng, kkAppEng
 
Constructor Summary
protected CustomerTagMgr(com.konakart.appif.KKEngIf eng, KKAppEng kkAppEng)
          Constructor
 
Method Summary
 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.
 
Methods inherited from class com.konakart.al.BaseMgr
getEng, getKkAppEng, getPages, isMgrReady, setEng, setKkAppEng
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerTagMgr

protected CustomerTagMgr(com.konakart.appif.KKEngIf eng,
                         KKAppEng kkAppEng)
                  throws com.konakart.app.KKException
Constructor

Parameters:
eng -
kkAppEng -
Throws:
com.konakart.app.KKException
Method Detail

insertCustomerTag

public void insertCustomerTag(java.lang.String tagName,
                              java.lang.String tagValue)
                       throws KKAppException,
                              com.konakart.app.KKException
Sets the tagValue for the tag called tagName for the logged in customer or guest customer.

Parameters:
tagName - The name of the customer tag
tagValue - The value of the customer tag for this customer
Throws:
KKAppException
com.konakart.app.KKException

insertCustomerTag

public void insertCustomerTag(com.konakart.app.CustomerTag tag)
                       throws KKAppException,
                              com.konakart.app.KKException
Sets the tag for the logged in customer or guest customer.

Parameters:
tag - The customer tag with populated tagName and tagValue attributes
Throws:
KKAppException
com.konakart.app.KKException

addToCustomerTag

public void addToCustomerTag(java.lang.String tagName,
                             int tagValue)
                      throws KKAppException,
                             com.konakart.app.KKException
Adds the 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.

Parameters:
tagName - The name of the customer tag
tagValue - The value of the customer tag for this customer
Throws:
KKAppException
com.konakart.app.KKException

evaluateExpression

public boolean evaluateExpression(int expressionId,
                                  java.lang.String expressionName)
                           throws KKAppException,
                                  com.konakart.app.KKException
An expression object is retrieved from the database and evaluated for the logged in customer or guest customer. 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.

Parameters:
expressionId -
expressionName -
Returns:
Returns true or false
Throws:
KKAppException
com.konakart.app.KKException

getCustomerTagValue

public java.lang.String getCustomerTagValue(java.lang.String tagName)
                                     throws KKAppException,
                                            com.konakart.app.KKException
A string is returned containing the value of the customer tag referenced by the parameter tagName for the logged in customer or guest customer.

Parameters:
tagName - The name of the customer tag
Returns:
Returns the value of the customer tag
Throws:
KKAppException
com.konakart.app.KKException

getCustomerTag

public com.konakart.appif.CustomerTagIf getCustomerTag(java.lang.String tagName)
                                                throws KKAppException,
                                                       com.konakart.app.KKException
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.

Parameters:
tagName - The name of the customer tag
Returns:
Returns the CustomerTag object
Throws:
KKAppException
com.konakart.app.KKException

isEnabled

public boolean isEnabled()
                  throws KKAppException
Based on a configuration variable decides whether Customer Tags are enabled. It returns true if they are enabled. Otherwise it returns false.

Returns:
Returns true if wish lists are enabled
Throws:
KKAppException


Copyright © 2011 DS Data Systems UK Ltd.