com.konakart.json.app
Class J_Products

java.lang.Object
  extended by com.konakart.json.app.J_Products
All Implemented Interfaces:
java.io.Serializable

public class J_Products
extends java.lang.Object
implements java.io.Serializable

This is normally the object returned for API calls returning an array of Products. It contains an array of products and the total number of products matching the request, so that they can be paged. It may also contain the category and manufacturer facets for the search, when SOLR is used.

See Also:
Serialized Form

Constructor Summary
J_Products()
           
 
Method Summary
 J_Category[] getCategoryFacets()
          The result of a product search using SOLR may contain the category facets including the number of products per category.
 J_KKFacet[] getCustomFacets()
          The result of a product search using SOLR may contain facet information for custom fields.
 J_Manufacturer[] getManufacturerFacets()
          The result of a product search using SOLR may contain the manufacturer facets including the number of products per manufacturer.
 J_Product[] getProductArray()
           
 int getTotalNumProducts()
           
 void setCategoryFacets(J_Category[] _categoryFacets)
          The result of a product search using SOLR may contain the category facets including the number of products per category.
 void setCustomFacets(J_KKFacet[] _customFacets)
          The result of a product search using SOLR may contain facet information for custom fields.
 void setManufacturerFacets(J_Manufacturer[] _manufacturerFacets)
          The result of a product search using SOLR may contain the manufacturer facets including the number of products per manufacturer.
 void setProductArray(J_Product[] _productArray)
           
 void setTotalNumProducts(int _totalNumProducts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J_Products

public J_Products()
Method Detail

getProductArray

public J_Product[] getProductArray()
Returns:
Returns the productArray.

setProductArray

public void setProductArray(J_Product[] _productArray)
Parameters:
_productArray - The productArray to set.

getTotalNumProducts

public int getTotalNumProducts()
Returns:
Returns the totalNumProducts.

setTotalNumProducts

public void setTotalNumProducts(int _totalNumProducts)
Parameters:
_totalNumProducts - The totalNumProducts to set.

getManufacturerFacets

public J_Manufacturer[] getManufacturerFacets()
The result of a product search using SOLR may contain the manufacturer facets including the number of products per manufacturer.

Returns:
the manufacturerFacets

setManufacturerFacets

public void setManufacturerFacets(J_Manufacturer[] _manufacturerFacets)
The result of a product search using SOLR may contain the manufacturer facets including the number of products per manufacturer.

Parameters:
_manufacturerFacets - the manufacturerFacets to set

getCategoryFacets

public J_Category[] getCategoryFacets()
The result of a product search using SOLR may contain the category facets including the number of products per category.

Returns:
the categoryFacets

setCategoryFacets

public void setCategoryFacets(J_Category[] _categoryFacets)
The result of a product search using SOLR may contain the category facets including the number of products per category.

Parameters:
_categoryFacets - the categoryFacets to set

getCustomFacets

public J_KKFacet[] getCustomFacets()
The result of a product search using SOLR may contain facet information for custom fields.

Returns:
the customFacets

setCustomFacets

public void setCustomFacets(J_KKFacet[] _customFacets)
The result of a product search using SOLR may contain facet information for custom fields.

Parameters:
_customFacets - the customFacets to set


Copyright © 2011 DS Data Systems UK Ltd.