public class AdminCustomerTag
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AGE_TYPE
The string in the Value attribute is a Date.
|
static int |
BOOLEAN_TYPE
The string in the Value attribute is a boolean (should contain the string
true
or false ) |
private java.lang.String |
custom1
Custom fields
|
private java.lang.String |
custom2 |
private java.lang.String |
custom3 |
private java.lang.String |
custom4 |
private java.lang.String |
custom5 |
private int |
customerId
customerId - Set to identify the customer when the value is set.
|
static int |
DATE_TYPE
The string in the Value attribute is a Date.
|
private java.util.Date |
dateAdded
dateAdded
|
static int |
DECIMAL_TYPE
The string in the Value attribute is a Decimal
|
static java.lang.String |
DELIM
Used as the delimiter when storing multiple integers
|
private java.lang.String |
description
Description used in expression builder.
|
private int |
id
id
|
static int |
INT_TYPE
The string in the Value attribute is an int
|
private int |
maxInts
When the tag value is of type
MULTI_INT_TYPE , this attribute specifies the
maximum number of integers allowed. |
static int |
MULTI_INT_PLUS_TIME_TYPE
The string in the Value attribute consists of multiple integer plus timestamp pairs separated
by a delimiter.
|
static int |
MULTI_INT_TYPE
The string in the Value attribute consists of multiple integers separated by a delimiter.
|
private java.lang.String |
name
The tag name, normally in caps.
|
(package private) boolean |
setByApi
Set by API
|
static int |
STRING_TYPE
The string in the Value attribute is a String
|
private int |
type
The type of tag.
|
private boolean |
usedInExpressions
Used in Expressions
|
private java.lang.String |
validation
A regular expression validation string used when a new tag is inserted.
|
private java.lang.String |
value
The value of the tag for a customer.
|
private int |
weighting
This weighting is used for calculating Product Recommendation Suggestions when the external
AI engine is not available (or if there is insufficient data to use it).
|
Constructor and Description |
---|
AdminCustomerTag()
Constructor
|
AdminCustomerTag(com.workingdogs.village.Record vr,
com.konakart.db.KKCriteria c)
Instantiates the attributes of the CustomerTag object from a Record object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
int |
getCustomerId() |
java.lang.String |
getCustTagTypeName() |
java.util.Date |
getDateAdded() |
java.lang.String |
getDescription() |
int |
getId() |
int |
getMaxInts() |
java.lang.String |
getName() |
int |
getType() |
java.lang.String |
getValidation() |
java.lang.String |
getValue() |
int |
getWeighting() |
boolean |
isSetByApi()
When true the tag value can be set using the application (KKengIf) APIs
|
boolean |
isUsedInExpressions()
When true, the tag is added to the drop list of available tags in the Admin App expression
builder
|
java.math.BigDecimal |
kkGetValueAsBigDecimal()
Utility method to return a BigDecimal.
|
boolean |
kkGetValueAsBoolean()
Utility method to return a boolean.
|
java.util.Date |
kkGetValueAsDate()
Utility method to return a Date.
|
int |
kkGetValueAsInt()
Utility method to return an int.
|
com.konakart.app.IntAndTimePair[] |
kkGetValueAsIntAndTimeArray()
Utility method to return an array of integer and timestamp pairs.
|
int[] |
kkGetValueAsIntArray()
Utility method to return an array of integers.
|
java.lang.String |
kkGetValueAsString()
Utility method to return a String.
|
java.lang.String[] |
kkGetValueAsStringArray()
Utility method to return an array of Strings.
|
void |
kkSetValueAsBigDecimal(java.math.BigDecimal val)
Utility method to set the tag value as a BigDecimal.
|
void |
kkSetValueAsBoolean(boolean val)
Utility method to set the tag value as a boolean.
|
void |
kkSetValueAsDate(java.util.Date val)
Utility method to set the tag value as a Date.
|
void |
kkSetValueAsInt(int val)
Utility method to set the tag value as an int.
|
void |
kkSetValueAsIntAndTimeArray(com.konakart.app.IntAndTimePair[] value)
Utility method to set the tag value as an array of int and time pairs.
|
void |
kkSetValueAsIntArray(int[] val)
Utility method to set the tag value as an array of ints.
|
void |
kkSetValueAsString(java.lang.String val)
Utility method to set the tag value as a String.
|
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom3(java.lang.String custom3) |
void |
setCustom4(java.lang.String custom4) |
void |
setCustom5(java.lang.String custom5) |
void |
setCustomerId(int customerId) |
void |
setDateAdded(java.util.Date dateAdded) |
void |
setDescription(java.lang.String description) |
void |
setId(int id) |
void |
setMaxInts(int maxInts) |
void |
setName(java.lang.String name) |
void |
setSetByApi(boolean setByApi)
When true the tag value can be set using the application (KKengIf) APIs
|
void |
setType(int type) |
void |
setUsedInExpressions(boolean usedInExpressions)
When true, the tag is added to the drop list of available tags in the Admin App expression
builder
|
void |
setValidation(java.lang.String validation) |
void |
setValue(java.lang.String value) |
void |
setWeighting(int weighting) |
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
public static final java.lang.String DELIM
public static final int STRING_TYPE
public static final int INT_TYPE
public static final int MULTI_INT_TYPE
public static final int DECIMAL_TYPE
public static final int DATE_TYPE
public static final int BOOLEAN_TYPE
true
or false
)public static final int AGE_TYPE
public static final int MULTI_INT_PLUS_TIME_TYPE
private int id
private int customerId
private java.lang.String name
private java.lang.String description
private java.lang.String value
private java.lang.String validation
private int type
STRING_TYPE
: The tag value is a StringINT_TYPE
: The tag value is an integerMULTI_INT_TYPE
: The tag value contains one or more integers separated by a
delimiter. The maxInts
attributes determines how many integers are allowed.MULTI_INT_PLUS_TIME_TYPE
: The tag value contains one or more integer and
timestamp pairs separated by a delimiter. The maxInts
attributes determines how
many integers are allowed. The integer and timestamp are separated by a space character. The
timestamp is the number of secs since 1st January 1970 (Epoch time)DECIMAL_TYPE
: The tag value is a decimal.DATE_TYPE
: The tag value is a date.BOOLEAN_TYPE
: The tag value is a boolean and so must contain the string
true
or false
AGE_TYPE
: The tag value is a date. When creating expressions you can define
the value to be greater or less than a length of time (in seconds) rather than comparing it
to a specific date.private int maxInts
MULTI_INT_TYPE
, this attribute specifies the
maximum number of integers allowed.private int weighting
private java.util.Date dateAdded
private java.lang.String custom1
private java.lang.String custom2
private java.lang.String custom3
private java.lang.String custom4
private java.lang.String custom5
boolean setByApi
private boolean usedInExpressions
public AdminCustomerTag()
public AdminCustomerTag(com.workingdogs.village.Record vr, com.konakart.db.KKCriteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column namescom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringBrief()
public int kkGetValueAsInt() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic int[] kkGetValueAsIntArray()
MULTI_INT_TYPE
or
MULTI_INT_PLUS_TIME_TYPE
tag types.public com.konakart.app.IntAndTimePair[] kkGetValueAsIntAndTimeArray() throws KKAdminException
KKAdminException
- if the format is illegalpublic java.lang.String[] kkGetValueAsStringArray()
STRING_TYPE
tag types.public java.util.Date kkGetValueAsDate() throws KKAdminException, java.text.ParseException
KKAdminException
- an unexpected exception in the KonaKart Admin enginejava.text.ParseException
- an unexpected ParseException exceptionpublic java.lang.String kkGetValueAsString()
public java.math.BigDecimal kkGetValueAsBigDecimal()
public boolean kkGetValueAsBoolean() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic void kkSetValueAsInt(int val)
val
- the valpublic void kkSetValueAsIntArray(int[] val)
val
- the valuepublic void kkSetValueAsIntAndTimeArray(com.konakart.app.IntAndTimePair[] value)
value
- the valuepublic void kkSetValueAsDate(java.util.Date val)
val
- the valpublic void kkSetValueAsBoolean(boolean val)
val
- the valpublic void kkSetValueAsString(java.lang.String val)
val
- the valpublic void kkSetValueAsBigDecimal(java.math.BigDecimal val)
val
- the valpublic int getId()
public void setId(int id)
id
- the id to setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to setpublic java.lang.String getValidation()
public void setValidation(java.lang.String validation)
validation
- the validation to setpublic int getType()
public void setType(int type)
type
- the type to setpublic int getMaxInts()
public void setMaxInts(int maxInts)
maxInts
- the maxInts to set. If the type is INT_TYPE maxInts must be at least 1.public java.lang.String getCustom1()
public void setCustom1(java.lang.String custom1)
custom1
- the custom1 to setpublic java.lang.String getCustom2()
public void setCustom2(java.lang.String custom2)
custom2
- the custom2 to setpublic java.lang.String getCustom3()
public void setCustom3(java.lang.String custom3)
custom3
- the custom3 to setpublic java.lang.String getCustom4()
public void setCustom4(java.lang.String custom4)
custom4
- the custom4 to setpublic java.lang.String getCustom5()
public void setCustom5(java.lang.String custom5)
custom5
- the custom5 to setpublic java.util.Date getDateAdded()
public void setDateAdded(java.util.Date dateAdded)
dateAdded
- the dateAdded to setpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value to setpublic int getCustomerId()
public void setCustomerId(int customerId)
customerId
- the customerId to setpublic boolean isSetByApi()
public void setSetByApi(boolean setByApi)
setByApi
- the setByApi to setpublic java.lang.String getCustTagTypeName()
public int getWeighting()
public void setWeighting(int weighting)
weighting
- the weighting to setpublic boolean isUsedInExpressions()
public void setUsedInExpressions(boolean usedInExpressions)
usedInExpressions
- the usedInExpressions to setCopyright © 2018 DS Data Systems UK Ltd.