public class GravityItem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
fromDate
An item is never recommended before this date.
|
java.lang.Boolean |
hidden
A hidden item will be never recommended.
|
java.lang.String |
itemId
The itemId is an external identifier of the item.
|
java.lang.String |
itemType
The type of the item.
|
GravityNameValue[] |
nameValues
The NameValues for the item.
|
java.lang.String |
title
Title is a short, human-readable name of the item.
|
int |
toDate
An item is never recommended after this date.
|
Constructor and Description |
---|
GravityItem() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public java.lang.String itemId
public java.lang.String title
public java.lang.String itemType
public java.lang.Boolean hidden
public int fromDate
public int toDate
public GravityNameValue[] nameValues
NameValues provide additional description of the item.
There can multiple NameValues with the same name.
The order of NameValues among different names will not be preserved, but the order of the values for the same name will be preserved.
The recommendation engine can be configured to use some properties to create a relation between items.
A possible list of names:
Name | Localizable | Description |
---|---|---|
Title | Yes | The title of the item. |
Description | Yes | The description of item. |
CategoryPath | No | The full path of the item's category. For example, CategoryPath might be "books/computers/databases" for a book about databases. CategoryPath can be repeated if an item belongs to multiple categories. Use "/" only for separating levels. Later it is possible to use the recommendation engine to filter the list of items based on category, so it can provide recommendations for "Computer Books" category or only for "Computer Books > Database" category. |
Tags | No | Tags for the item. Specify a separate namevalue for each tag. |
State | No | The state of the item, for example 'available', 'out of stock' etc. |
Price | No | The price of the item. |
You can use localization by appending a language identifier to the Name of the NameValue. For example, Title_EN, Title_HU. It is possible to use both non-localized and localized version.