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 ProductsIfpublic void setProductArray(ProductIf[] productArray)
setProductArray in interface ProductsIfproductArray - The productArray to set.public int getTotalNumProducts()
getTotalNumProducts in interface ProductsIfpublic void setTotalNumProducts(int totalNumProducts)
setTotalNumProducts in interface ProductsIftotalNumProducts - The totalNumProducts to set.public Manufacturer[] getManufacturerFacets()
ProductsIfgetManufacturerFacets in interface ProductsIfpublic void setManufacturerFacets(ManufacturerIf[] manufacturerFacets)
ProductsIfsetManufacturerFacets in interface ProductsIfmanufacturerFacets - the manufacturerFacets to setpublic Category[] getCategoryFacets()
ProductsIfgetCategoryFacets in interface ProductsIfpublic void setCategoryFacets(CategoryIf[] categoryFacets)
ProductsIfsetCategoryFacets in interface ProductsIfcategoryFacets - the categoryFacets to setpublic KKFacet[] getCustomFacets()
ProductsIfgetCustomFacets in interface ProductsIfpublic void setCustomFacets(KKFacetIf[] customFacets)
ProductsIfsetCustomFacets in interface ProductsIfcustomFacets - the customFacets to setpublic java.math.BigDecimal getMaxPrice()
getMaxPrice in interface ProductsIfpublic void setMaxPrice(java.math.BigDecimal maxPrice)
setMaxPrice in interface ProductsIfmaxPrice - the maxPrice to setpublic java.math.BigDecimal getMinPrice()
getMinPrice in interface ProductsIfpublic void setMinPrice(java.math.BigDecimal minPrice)
setMinPrice in interface ProductsIfminPrice - the minPrice to setpublic KKPriceFacet[] getPriceFacets()
getPriceFacets in interface ProductsIfpublic void setPriceFacets(KKPriceFacetIf[] priceFacets)
setPriceFacets in interface ProductsIfpriceFacets - the priceFacets to setpublic java.math.BigDecimal getTaxMultiplier()
getTaxMultiplier in interface ProductsIfpublic void setTaxMultiplier(java.math.BigDecimal taxMultiplier)
setTaxMultiplier in interface ProductsIftaxMultiplier - 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 ProductsIfpublic 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 ProductsIfuniqueProductArray - 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 ProductsIfpublic 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 ProductsIfrelationData - the relationData to setCopyright © 2018 DS Data Systems UK Ltd.