public interface CustomerTagMgrIf
Modifier and Type | Method and Description |
---|---|
void |
addToCustomerTag(int customerId,
java.lang.String tagName,
int tagValue)
This method is used for customer tags where the value is of type
com.konakart.app.CustomerTag.MULTI_INT_TYPE or
MULTI_INT_PLUS_TIME_TYPE . |
void |
addToCustomerTag(java.lang.String sessionId,
java.lang.String tagName,
int tagValue)
This method is used for customer tags where the value is of type
com.konakart.app.CustomerTag.MULTI_INT_TYPE or
MULTI_INT_PLUS_TIME_TYPE . |
void |
addToCustomerTagForGuest(int customerId,
java.lang.String tagName,
int tagValue)
This method is used for customer tags where the value is of type
com.konakart.app.CustomerTag.MULTI_INT_TYPE or
MULTI_INT_PLUS_TIME_TYPE . |
void |
deleteCustomerTag(java.lang.String sessionId,
java.lang.String tagName)
This method deletes the customer tag referenced by the parameter
tagName and for
the customer referenced by the sessionId . |
void |
deleteCustomerTagForGuest(int customerId,
java.lang.String tagName)
This method deletes the customer tag referenced by the parameter
tagName and for
the guest customer referenced by the negative customerId . |
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 . |
boolean |
evaluateExpression(java.lang.String sessionId,
int expressionId,
java.lang.String expressionName)
An expression object is retrieved from the database and evaluated for the customer referenced
by the
sessionId . |
boolean |
evaluateExpressionForGuest(int customerId,
int expressionId,
java.lang.String expressionName)
An expression object is retrieved from the database and evaluated for the guest customer
referenced by the negative
customerId . |
CustomerTag |
getCustomerTag(int customerId,
java.lang.String tagName,
boolean getValue)
A CustomerTag object referenced by the parameter
tagName is returned. |
CustomerTagIf |
getCustomerTag(java.lang.String sessionId,
java.lang.String tagName)
A CustomerTag object referenced by the parameter
tagName is returned. |
CustomerTagIf |
getCustomerTagForGuest(int customerId,
java.lang.String tagName)
A CustomerTag object referenced by the parameter
tagName is returned. |
CustomerTagIf[] |
getCustomerTags(int customerId)
This method fetches all of the customer tags for the customer referenced by the
customerId .An empty array is returned if no tags exist. |
CustomerTagIf[] |
getCustomerTags(java.lang.String sessionId)
This method fetches all of the customer tags for the customer referenced by the
sessionId .An empty array is returned if no tags exist. |
CustomerTagIf[] |
getCustomerTagsForGuest(int customerId)
This method fetches all of the customer tags for the guest customer referenced by the
customerId which must have a negative value. |
java.lang.String |
getCustomerTagValue(int customerId,
java.lang.String tagName)
A string is returned containing the value of the customer tag referenced by the parameter
tagName and for the customer referenced by the customerId . |
java.lang.String |
getCustomerTagValue(java.lang.String sessionId,
java.lang.String tagName)
A string is returned containing the value of the customer tag referenced by the parameter
tagName and for the customer referenced by the sessionId . |
java.lang.String |
getCustomerTagValueForGuest(int customerId,
java.lang.String tagName)
A string is returned containing the value of the customer tag referenced by the parameter
tagName and for the guest customer referenced by the negative
customerId . |
ExpressionIf |
getExpression(int custId,
int expressionId,
java.lang.String expressionName)
An Expression object, fully populated with an array of Expression Variables is returned.
|
ExpressionIf |
getExpression(java.lang.String sessionId,
int expressionId,
java.lang.String expressionName)
An Expression object, fully populated with an array of Expression Variables is returned.
|
ExpressionIf |
getExpressionForGuest(int customerId,
int expressionId,
java.lang.String expressionName)
An Expression object, fully populated with an array of Expression Variables is returned.
|
void |
insertCustomerTag(int customerId,
CustomerTagIf tag,
boolean ignoreSetByAPI)
Assigns a customer tag to the customer referenced by the
customerId . |
void |
insertCustomerTag(java.lang.String sessionId,
CustomerTagIf tag)
Assigns a customer tag to the customer referenced by the
sessionId . |
void |
insertCustomerTagForGuest(int customerId,
CustomerTagIf tag)
Assigns a customer tag to the guest customer referenced by the
customerId which
must have a negative value. |
void insertCustomerTag(java.lang.String sessionId, CustomerTagIf tag) throws java.lang.Exception
sessionId
. If a tag
already exists with this name, then the value is replaced with the new value. The compulsory
tag fields are:
tag.getName()
must exist in the database
since it is used to validate tag.getValue()
.sessionId
- the sessionIdtag
- the tagjava.lang.Exception
- an unexpected exceptionvoid insertCustomerTag(int customerId, CustomerTagIf tag, boolean ignoreSetByAPI) throws java.lang.Exception
customerId
. If a tag
already exists with this name, then the value is replaced with the new value. The compulsory
tag fields are:
tag.getName()
must exist in the database
since it is used to validate tag.getValue()
.customerId
- the customerIdtag
- the tagignoreSetByAPI
- Allows you to set the value directly from the manager even if the SetByAPI flag
for the tag is falsejava.lang.Exception
- an unexpected exceptionvoid insertCustomerTagForGuest(int customerId, CustomerTagIf tag) throws java.lang.Exception
customerId
which
must have a negative value.
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()
.
customerId
- the customerIdtag
- the tagjava.lang.Exception
- an unexpected exceptionvoid addToCustomerTag(java.lang.String sessionId, java.lang.String tagName, int tagValue) throws java.lang.Exception
com.konakart.app.CustomerTag.MULTI_INT_TYPE
or
MULTI_INT_PLUS_TIME_TYPE
. This customer tag type is used to
store a series of integers and is useful for cases where you want to store information such
as the last 5 product ids that a customer looked at.sessionId
, then a new customer tag is added with the value in the
tagValue
parameter. Otherwise the new value is added. When the number of
integers stored reaches the maximum value defined for the customer tag, then the new value is
added and the oldest value is removed.
In the case of MULTI_INT_PLUS_TIME_TYPE
tags, the timestamp component is added
on the server so does not need to be specified.
sessionId
- the sessionIdtagName
- the tagNametagValue
- the tagValuejava.lang.Exception
- an unexpected exceptionvoid addToCustomerTag(int customerId, java.lang.String tagName, int tagValue) throws java.lang.Exception
com.konakart.app.CustomerTag.MULTI_INT_TYPE
or
MULTI_INT_PLUS_TIME_TYPE
. This customer tag type is used to
store a series of integers and is useful for cases where you want to store information such
as the last 5 product ids that a customer looked at.sessionId
, then a new customer tag is added with the value in the
tagValue
parameter. Otherwise the new value is added. When the number of
integers stored reaches the maximum value defined for the customer tag, then the new value is
added and the oldest value is removed.
In the case of MULTI_INT_PLUS_TIME_TYPE
tags, the timestamp component is added
on the server so does not need to be specified.
customerId
- the customerIdtagName
- the tagNametagValue
- the tagValuejava.lang.Exception
- an unexpected exceptionvoid addToCustomerTagForGuest(int customerId, java.lang.String tagName, int tagValue) throws java.lang.Exception
com.konakart.app.CustomerTag.MULTI_INT_TYPE
or
MULTI_INT_PLUS_TIME_TYPE
. This customer tag type is used to
store a series of integers and is useful for cases where you want to store information such
as the last 5 product ids that a customer looked at.
If the customer tag doesn't yet exist for the guest customer referenced by the
customerId
(negative value), then a new customer tag is added with the value in
the tagValue
parameter. Otherwise the new value is added. When the number of
integers stored reaches the maximum value defined for the customer tag, then the new value is
added and the oldest value is removed.
In the case of MULTI_INT_PLUS_TIME_TYPE
tags, the timestamp component is added
on the server so does not need to be specified.
customerId
- the customerIdtagName
- the tagNametagValue
- the tagValuejava.lang.Exception
- an unexpected exceptionCustomerTagIf getCustomerTag(java.lang.String sessionId, java.lang.String tagName) throws java.lang.Exception
tagName
is returned. The value
attribute of the tag is populated for the customer referenced by the sessionId
.
If sessionId
is set to null, then a customer tag object with a null value is
returned. The CustomerTag object contains utility methods to convert the tag string into its
original type (i.e. Date, boolean, int etc.).sessionId
- the sessionIdtagName
- the tagNamejava.lang.Exception
- an unexpected exceptionCustomerTag getCustomerTag(int customerId, java.lang.String tagName, boolean getValue) throws java.lang.Exception
tagName
is returned. The value
attribute of the tag is populated for the customer referenced by the customerId
.
The CustomerTag object contains utility methods to convert the tag string into its original
type (i.e. Date, boolean, int etc.).customerId
- the customerIdtagName
- the tagNamegetValue
- When true, we attempt to get the value of the tagjava.lang.Exception
- an unexpected exceptionCustomerTagIf getCustomerTagForGuest(int customerId, java.lang.String tagName) throws java.lang.Exception
tagName
is returned. The value
attribute of the tag is populated for the guest customer referenced by the negative
customerId
.
The CustomerTag object contains utility methods to convert the tag string into its original type (i.e. Date, boolean, int etc.).
customerId
- the customerIdtagName
- the tagNamejava.lang.Exception
- an unexpected exceptionjava.lang.String getCustomerTagValue(java.lang.String sessionId, java.lang.String tagName) throws java.lang.Exception
tagName
and for the customer referenced by the sessionId
. This
method is faster than the getCustomerTag
method, but the actual CustomerTag
object isn't available to convert the String into a more usable form such as boolean or date.sessionId
- the sessionIdtagName
- the tagNamejava.lang.Exception
- an unexpected exceptionjava.lang.String getCustomerTagValue(int customerId, java.lang.String tagName) throws java.lang.Exception
tagName
and for the customer referenced by the customerId
. This
method is faster than the getCustomerTag
method, but the actual CustomerTag
object isn't available to convert the String into a more usable form such as boolean or date.customerId
- the customerIdtagName
- the tagNamejava.lang.Exception
- an unexpected exceptionjava.lang.String getCustomerTagValueForGuest(int customerId, java.lang.String tagName) throws java.lang.Exception
tagName
and for the guest customer referenced by the negative
customerId
. This method is faster than the getCustomerTag
method,
but the actual CustomerTag object isn't available to convert the String into a more usable
form such as boolean or date.customerId
- the customerIdtagName
- the tagNamejava.lang.Exception
- an unexpected exceptionvoid deleteCustomerTag(java.lang.String sessionId, java.lang.String tagName) throws java.lang.Exception
tagName
and for
the customer referenced by the sessionId
.sessionId
- the sessionIdtagName
- the tagNamejava.lang.Exception
- an unexpected exceptionvoid deleteCustomerTagForGuest(int customerId, java.lang.String tagName) throws java.lang.Exception
tagName
and for
the guest customer referenced by the negative customerId
.customerId
- the customerIdtagName
- the tagNamejava.lang.Exception
- an unexpected exceptionCustomerTagIf[] getCustomerTags(java.lang.String sessionId) throws java.lang.Exception
sessionId
.sessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionCustomerTagIf[] getCustomerTags(int customerId) throws java.lang.Exception
customerId
.customerId
- the customerIdjava.lang.Exception
- an unexpected exceptionCustomerTagIf[] getCustomerTagsForGuest(int customerId) throws java.lang.Exception
customerId
which must have a negative value.
An empty array is returned if no tags exist.
customerId
- the customerIdjava.lang.Exception
- an unexpected exceptionboolean evaluateExpression(java.lang.String sessionId, int expressionId, java.lang.String expressionName) throws java.lang.Exception
sessionId
. 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.sessionId
- the sessionIdexpressionId
- the expressionIdexpressionName
- the expressionNamejava.lang.Exception
- an unexpected exceptionboolean 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.customerId
- the customerIdexpressionId
- the expressionIdexpressionName
- the expressionNamejava.lang.Exception
- an unexpected exceptionboolean evaluateExpressionForGuest(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.customerId
- the customerIdexpressionId
- the expressionIdexpressionName
- the expressionNamejava.lang.Exception
- an unexpected exceptionExpressionIf getExpression(java.lang.String sessionId, 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. If the sessionId
parameter is null we get
the expression variables without any customer tag values. Otherwise the expression variables
will be populated with the customer tag values for the customer referenced by
sessionId
. othersessionId
- the sessionIdexpressionId
- the expressionIdexpressionName
- the expressionNamejava.lang.Exception
- an unexpected exceptionExpressionIf getExpressionForGuest(int customerId, 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 guest
customer referenced by customerId
.
customerId
- the customerIdexpressionId
- the expressionIdexpressionName
- the expressionNamejava.lang.Exception
- an unexpected exceptionExpressionIf getExpression(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 exceptionCopyright © 2018 DS Data Systems UK Ltd.