public class RankContext extends ActionContext
ActionContext
fields
If you specify them you will receive similar products in ranking recommendationsConstructor and Description |
---|
RankContext()
Constructs context without feed identification
|
RankContext(java.lang.String feedId)
Constructs object with feed identification
|
Modifier and Type | Method and Description |
---|---|
void |
addProductId(java.lang.String productId)
Add single product id.
|
void |
addProductIds(java.util.List<java.lang.String> productIds)
Add multiple product ids.
|
java.util.List<java.lang.String> |
getProductIds()
Gets product ids that will be used similarity
|
addCustomParameter, addCustomParameters, addLabel, addLabels, getCustomParameters, getFeedId, getLabels
public RankContext()
public RankContext(java.lang.String feedId)
feedId
- is string identification of client feedpublic void addProductId(java.lang.String productId)
productId
- product identification (SKU number)public void addProductIds(java.util.List<java.lang.String> productIds)
productIds
- list of product identifications (SKU numbers)public java.util.List<java.lang.String> getProductIds()