public class Products extends java.lang.Object implements ProductsIf
Constructor and Description |
---|
Products()
Constructor
|
Modifier and Type | Method and Description |
---|---|
Category[] |
getCategoryFacets()
The result of a product search using Solr may contain the category facets including the
number of products per category.
|
KKFacet[] |
getCustomFacets()
The result of a product search using Solr may contain facet information for custom fields.
|
Manufacturer[] |
getManufacturerFacets()
The result of a product search using Solr may contain the manufacturer facets including the
number of products per manufacturer.
|
java.math.BigDecimal |
getMaxPrice()
The maximum price for all products.
|
java.math.BigDecimal |
getMinPrice()
The minimum price for all products.
|
KKPriceFacet[] |
getPriceFacets()
Price facets returned after a Solr search
|
Product[] |
getProductArray() |
ProductRelationship[] |
getRelationData()
Only populated by the API call
getRelatedProductsWithOptions . |
java.math.BigDecimal |
getTaxMultiplier()
taxMultiplier used to add tax to price facet information
|
int |
getTotalNumProducts() |
Product[] |
getUniqueProductArray()
This attribute is only populated by the API calls
getBundlesThatProductBelongsTo() and
getBundlesThatProductsBelongTo() . |
void |
setCategoryFacets(CategoryIf[] categoryFacets)
The result of a product search using Solr may contain the category facets including the
number of products per category.
|
void |
setCustomFacets(KKFacetIf[] customFacets)
The result of a product search using Solr may contain facet information for custom fields.
|
void |
setManufacturerFacets(ManufacturerIf[] manufacturerFacets)
The result of a product search using Solr may contain the manufacturer facets including the
number of products per manufacturer.
|
void |
setMaxPrice(java.math.BigDecimal maxPrice)
The maximum price for all products.
|
void |
setMinPrice(java.math.BigDecimal minPrice)
The minimum price for all products.
|
void |
setPriceFacets(KKPriceFacetIf[] priceFacets)
Price facets returned after a Solr search
|
void |
setProductArray(ProductIf[] productArray) |
void |
setRelationData(ProductRelationshipIf[] relationData)
Only populated by the API call
getRelatedProductsWithOptions . |
void |
setTaxMultiplier(java.math.BigDecimal taxMultiplier)
taxMultiplier used to add tax to price facet information
|
void |
setTotalNumProducts(int totalNumProducts) |
void |
setUniqueProductArray(ProductIf[] uniqueProductArray)
This attribute is only populated by the API calls
getBundlesThatProductBelongsTo() and
getBundlesThatProductsBelongTo() . |
public Product[] getProductArray()
getProductArray
in interface ProductsIf
public void setProductArray(ProductIf[] productArray)
setProductArray
in interface ProductsIf
productArray
- The productArray to set.public int getTotalNumProducts()
getTotalNumProducts
in interface ProductsIf
public void setTotalNumProducts(int totalNumProducts)
setTotalNumProducts
in interface ProductsIf
totalNumProducts
- The totalNumProducts to set.public Manufacturer[] getManufacturerFacets()
ProductsIf
getManufacturerFacets
in interface ProductsIf
public void setManufacturerFacets(ManufacturerIf[] manufacturerFacets)
ProductsIf
setManufacturerFacets
in interface ProductsIf
manufacturerFacets
- the manufacturerFacets to setpublic Category[] getCategoryFacets()
ProductsIf
getCategoryFacets
in interface ProductsIf
public void setCategoryFacets(CategoryIf[] categoryFacets)
ProductsIf
setCategoryFacets
in interface ProductsIf
categoryFacets
- the categoryFacets to setpublic KKFacet[] getCustomFacets()
ProductsIf
getCustomFacets
in interface ProductsIf
public void setCustomFacets(KKFacetIf[] customFacets)
ProductsIf
setCustomFacets
in interface ProductsIf
customFacets
- the customFacets to setpublic java.math.BigDecimal getMaxPrice()
getMaxPrice
in interface ProductsIf
public void setMaxPrice(java.math.BigDecimal maxPrice)
setMaxPrice
in interface ProductsIf
maxPrice
- the maxPrice to setpublic java.math.BigDecimal getMinPrice()
getMinPrice
in interface ProductsIf
public void setMinPrice(java.math.BigDecimal minPrice)
setMinPrice
in interface ProductsIf
minPrice
- the minPrice to setpublic KKPriceFacet[] getPriceFacets()
getPriceFacets
in interface ProductsIf
public void setPriceFacets(KKPriceFacetIf[] priceFacets)
setPriceFacets
in interface ProductsIf
priceFacets
- the priceFacets to setpublic java.math.BigDecimal getTaxMultiplier()
getTaxMultiplier
in interface ProductsIf
public void setTaxMultiplier(java.math.BigDecimal taxMultiplier)
setTaxMultiplier
in interface ProductsIf
taxMultiplier
- the taxMultiplier to setpublic Product[] getUniqueProductArray()
getBundlesThatProductBelongsTo()
and
getBundlesThatProductsBelongTo()
. These methods return an array of products,
each of which has an array of bundled products. The same products may be repeated many times
within the array of bundled products which can affect performance since the amount of data
returned can be very large. When createListOfUniqueProducts
is set to true in
the FetchProductOptions
object, the bundled products are only populated with the
product id, the quantity and the encodedOptionValues to make them very much lighter. Also
within this object the uniqueProductArray
attribute is created and populated
with a unique set of products that includes just one copy of all of the bundled products.getUniqueProductArray
in interface ProductsIf
public void setUniqueProductArray(ProductIf[] uniqueProductArray)
getBundlesThatProductBelongsTo()
and
getBundlesThatProductsBelongTo()
. These methods return an array of products,
each of which has an array of bundled products. The same products may be repeated many times
within the array of bundled products which can affect performance since the amount of data
returned can be very large. When createListOfUniqueProducts
is set to true in
the FetchProductOptions
object, the bundled products are only populated with the
product id, the quantity and the encodedOptionValues to make them very much lighter. Also
within this object the uniqueProductArray
attribute is created and populated
with a unique set of products that includes just one copy of all of the bundled products.setUniqueProductArray
in interface ProductsIf
uniqueProductArray
- the uniqueProductArray to setpublic ProductRelationship[] getRelationData()
getRelatedProductsWithOptions
. It consists of an
array of objects, each of which contains data specific to a relationship between two
products.getRelationData
in interface ProductsIf
public void setRelationData(ProductRelationshipIf[] relationData)
getRelatedProductsWithOptions
. It consists of an
array of objects, each of which contains data specific to a relationship between two
products.setRelationData
in interface ProductsIf
relationData
- the relationData to setCopyright © 2018 DS Data Systems UK Ltd.