Class CollectedProduct
java.lang.Object
com.broadleafcommerce.datafeed.service.collector.domain.product.CollectedProduct
- All Implemented Interfaces:
- CollectedEntity<String>,- Priceable,- Serializable
public class CollectedProduct
extends Object
implements CollectedEntity<String>, Serializable, Priceable
Entity that allows for flexible serialization, deserialization, and transformation of Product
 data.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleangetId()Product IDcom.fasterxml.jackson.databind.node.ObjectNodeGeneralObjectNoderepresenting the majority of this Product's JSON structure.com.broadleafcommerce.pricing.client.domain.PriceInfoThe PriceInfo associated with this product, or null.The overall rating for this product.Map of SKU to available inventory.If this Product has SKUs, and if those SKUs have assigned aPriceInfo, then this Map will contain an entry where the key is the SKU and the value is thePriceInfofor the Variant with that SKU.List ofTranslationsassociated with this Product.inthashCode()voidProduct IDvoidsetJsonMap(com.fasterxml.jackson.databind.node.ObjectNode jsonMap) GeneralObjectNoderepresenting the majority of this Product's JSON structure.voidsetPriceInfo(com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo) The PriceInfo associated with this product, or null.voidsetProductRating(RatingSummary productRating) The overall rating for this product.voidsetSkuInventory(Map<String, Long> skuInventory) Map of SKU to available inventory.voidsetSkuPrices(Map<String, com.broadleafcommerce.pricing.client.domain.PriceInfo> skuPrices) If this Product has SKUs, and if those SKUs have assigned aPriceInfo, then this Map will contain an entry where the key is the SKU and the value is thePriceInfofor the Variant with that SKU.voidsetTranslations(List<Translation> translations) List ofTranslationsassociated with this Product.toString()
- 
Constructor Details- 
CollectedProductpublic CollectedProduct()
 
- 
- 
Method Details- 
getJsonMappublic com.fasterxml.jackson.databind.node.ObjectNode getJsonMap()GeneralObjectNoderepresenting the majority of this Product's JSON structure. This is intentionally not deserialized to a concrete DTO to allow for greater flexibility in implementation.
- 
getTranslationsList ofTranslationsassociated with this Product.
- 
getSkuInventoryMap of SKU to available inventory.- See Also:
 
- 
getSkuPricesIf this Product has SKUs, and if those SKUs have assigned aPriceInfo, then this Map will contain an entry where the key is the SKU and the value is thePriceInfofor the Variant with that SKU. If this product has no Variants, or if there is noPriceInfoassigned to a Variant then there will be no entry in this Map for that SKU and the Product'sPriceInfoshould be used.
- 
getProductRatingThe overall rating for this product.- See Also:
 
- 
getPriceInfopublic com.broadleafcommerce.pricing.client.domain.PriceInfo getPriceInfo()The PriceInfo associated with this product, or null.- Specified by:
- getPriceInfoin interface- Priceable
- Returns:
- The PriceInfoon the entity.
 
- 
setIdProduct ID
- 
setJsonMappublic void setJsonMap(com.fasterxml.jackson.databind.node.ObjectNode jsonMap) GeneralObjectNoderepresenting the majority of this Product's JSON structure. This is intentionally not deserialized to a concrete DTO to allow for greater flexibility in implementation.
- 
setTranslationsList ofTranslationsassociated with this Product.
- 
setSkuInventoryMap of SKU to available inventory.- See Also:
 
- 
setSkuPricespublic void setSkuPrices(Map<String, com.broadleafcommerce.pricing.client.domain.PriceInfo> skuPrices) If this Product has SKUs, and if those SKUs have assigned aPriceInfo, then this Map will contain an entry where the key is the SKU and the value is thePriceInfofor the Variant with that SKU. If this product has no Variants, or if there is noPriceInfoassigned to a Variant then there will be no entry in this Map for that SKU and the Product'sPriceInfoshould be used.
- 
setProductRatingThe overall rating for this product.- See Also:
 
- 
setPriceInfopublic void setPriceInfo(com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo) The PriceInfo associated with this product, or null.- Specified by:
- setPriceInfoin interface- Priceable
- Parameters:
- priceInfo- The- PriceInfoto set.
 
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
toString
- 
getIdProduct ID- Specified by:
- getIdin interface- CollectedEntity<String>
- Returns:
- The ID of the collected entity
 
 
-