Class ProductSummary
java.lang.Object
com.broadleafcommerce.catalog.domain.product.commerce.ProductSummary
- All Implemented Interfaces:
Serializable
A structure containing the most used subset of product information that can be used in
commerce-facing product list pages or components (as opposed to a PIM UI).
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
ConstructorDescriptionProductSummary
(Product product, List<ProductAsset> assets, PriceInfo priceInfo, List<VariantDetail> variants, List<ProductTagDetail> advancedTags) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A list ofProductTags
sorted based on the sort position of theProductTag
for the produt with ties broken byAdvancedTag.getPriority()
.AllProductAssets
for this product.<T> T
getAttribute
(String name) getBrand()
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
javax.money.MonetaryAmount
getCost()
javax.money.CurrencyUnit
javax.money.MonetaryAmount
getId()
javax.money.MonetaryAmount
getMsrp()
getName()
Summary of thepricing information
related to the product.javax.money.MonetaryAmount
javax.money.MonetaryAmount
getSku()
getTags()
getUpc()
getUri()
AllVariants
for this product.int
hashCode()
boolean
isActive()
boolean
boolean
boolean
boolean
boolean
Deprecated.boolean
isOnline()
boolean
isOnSale()
boolean
void
setActiveEndDate
(Instant activeEndDate) void
setActiveStartDate
(Instant activeStartDate) void
setAdvancedTags
(List<ProductTagDetail> advancedTags) A list ofProductTags
sorted based on the sort position of theProductTag
for the produt with ties broken byAdvancedTag.getPriority()
.void
setAssets
(List<ProductAsset> assets) AllProductAssets
for this product.void
setAttributes
(Map<String, Attribute> attributes) void
setAvailableOnline
(boolean availableOnline) void
setBrand
(DataDrivenEnum brand) void
setBusinessType
(String businessType) void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) void
setCost
(javax.money.MonetaryAmount cost) void
setCurrency
(javax.money.CurrencyUnit currency) void
setDefaultPrice
(javax.money.MonetaryAmount defaultPrice) void
setDefaultVariant
(Variant defaultVariant) void
setDescription
(String description) void
setDimension
(Dimensions dimension) void
setDiscountable
(boolean discountable) void
setDisplayTemplate
(String displayTemplate) void
setEligibleForPickup
(boolean eligibleForPickup) void
setExternalId
(String externalId) void
setFulfillmentFlatRates
(Map<String, FulfillmentFlatRate> fulfillmentFlatRates) void
void
setIncludedProducts
(List<IncludedProduct> includedProducts) void
setIndividuallySold
(boolean individuallySold) void
setInventoryCheckStrategy
(String inventoryCheckStrategy) void
setInventoryReservationStrategy
(String inventoryReservationStrategy) void
setInventoryType
(String inventoryType) void
setKeywords
(List<String> keywords) void
setMaximumThreshold
(Integer maximumThreshold) void
setMerchandisingProduct
(boolean merchandisingProduct) Deprecated.void
setMerchandisingType
(DataDrivenEnum merchandisingType) void
setMergingType
(String mergingType) void
setMetaDescription
(String metaDescription) void
setMetaTitle
(String metaTitle) void
setMinimumThreshold
(Integer minimumThreshold) void
setMsrp
(javax.money.MonetaryAmount msrp) void
void
setOnline
(boolean online) void
setOptions
(List<ProductOption> options) void
setPriceInfo
(PriceInfo priceInfo) Summary of thepricing information
related to the product.void
setPricingKey
(String pricingKey) void
setPrimaryAsset
(ProductAsset primaryAsset) void
setPrimaryCategory
(Category primaryCategory) void
setProduct
(Product product) void
setProductType
(String productType) void
setReviewsSummary
(ReviewsSummary reviewsSummary) void
setSalePrice
(javax.money.MonetaryAmount salePrice) void
setSearchable
(boolean searchable) void
void
void
setTargetDemographic
(DataDrivenEnum targetDemographic) void
setTaxCode
(String taxCode) void
void
void
setVariants
(List<VariantDetail> variants) AllVariants
for this product.void
toString()
-
Constructor Details
-
ProductSummary
public ProductSummary() -
ProductSummary
public ProductSummary(Product product, List<ProductAsset> assets, PriceInfo priceInfo, List<VariantDetail> variants, List<ProductTagDetail> advancedTags)
-
-
Method Details
-
getProduct
-
getAssets
AllProductAssets
for this product.- Returns:
- All
ProductAssets
for this product.
-
getPriceInfo
Summary of thepricing information
related to the product.- Returns:
- Summary of the
pricing information
related to the product
-
getVariants
AllVariants
for this product.- Returns:
- All
Variants
for this product.
-
getAdvancedTags
A list ofProductTags
sorted based on the sort position of theProductTag
for the produt with ties broken byAdvancedTag.getPriority()
.- Returns:
- A list of
ProductTags
.
-
setProduct
-
setAssets
AllProductAssets
for this product.- Parameters:
assets
- AllProductAssets
for this product.
-
setPriceInfo
Summary of thepricing information
related to the product.- Parameters:
priceInfo
- Summary of thepricing information
related to the product
-
setVariants
AllVariants
for this product.- Parameters:
variants
- AllVariants
for this product.
-
setAdvancedTags
A list ofProductTags
sorted based on the sort position of theProductTag
for the produt with ties broken byAdvancedTag.getPriority()
.- Parameters:
advancedTags
- A list ofProductTags
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getAttribute
-
isActive
public boolean isActive() -
isOnSale
public boolean isOnSale() -
getBusinessType
-
getPriceWithDependentItems
public javax.money.MonetaryAmount getPriceWithDependentItems() -
getId
-
getName
-
getUri
-
getDescription
-
getSku
-
getUpc
-
getExternalId
-
getCurrency
public javax.money.CurrencyUnit getCurrency() -
getPricingKey
-
getMsrp
public javax.money.MonetaryAmount getMsrp() -
getDefaultPrice
public javax.money.MonetaryAmount getDefaultPrice() -
getSalePrice
public javax.money.MonetaryAmount getSalePrice() -
getCost
public javax.money.MonetaryAmount getCost() -
getMetaTitle
-
getMetaDescription
-
getDisplayTemplate
-
isOnline
public boolean isOnline() -
isDiscountable
public boolean isDiscountable() -
getInventoryType
-
getMergingType
-
isAvailableOnline
public boolean isAvailableOnline() -
getInventoryCheckStrategy
-
getInventoryReservationStrategy
-
isEligibleForPickup
public boolean isEligibleForPickup() -
getFulfillmentFlatRates
-
getActiveStartDate
-
getActiveEndDate
-
getDimension
-
getWeight
-
isSearchable
public boolean isSearchable() -
isIndividuallySold
public boolean isIndividuallySold() -
isMerchandisingProduct
Deprecated. -
getProductType
-
getKeywords
-
getAttributes
-
getIncludedProducts
-
getOptions
-
getReviewsSummary
-
getPrimaryAsset
-
getPrimaryCategory
-
getTags
-
getBrand
-
getMerchandisingType
-
getTargetDemographic
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState() -
getTaxCode
-
getMinimumThreshold
-
getMaximumThreshold
-
getDefaultVariant
-
setId
-
setName
-
setUri
-
setDescription
-
setSku
-
setUpc
-
setExternalId
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) -
setPricingKey
-
setMsrp
public void setMsrp(javax.money.MonetaryAmount msrp) -
setDefaultPrice
public void setDefaultPrice(javax.money.MonetaryAmount defaultPrice) -
setSalePrice
public void setSalePrice(javax.money.MonetaryAmount salePrice) -
setCost
public void setCost(javax.money.MonetaryAmount cost) -
setMetaTitle
-
setMetaDescription
-
setDisplayTemplate
-
setOnline
public void setOnline(boolean online) -
setDiscountable
public void setDiscountable(boolean discountable) -
setInventoryType
-
setMergingType
-
setAvailableOnline
public void setAvailableOnline(boolean availableOnline) -
setInventoryCheckStrategy
-
setInventoryReservationStrategy
-
setEligibleForPickup
public void setEligibleForPickup(boolean eligibleForPickup) -
setFulfillmentFlatRates
-
setActiveStartDate
-
setActiveEndDate
-
setDimension
-
setWeight
-
setSearchable
public void setSearchable(boolean searchable) -
setIndividuallySold
public void setIndividuallySold(boolean individuallySold) -
setMerchandisingProduct
Deprecated. -
setProductType
-
setBusinessType
-
setKeywords
-
setAttributes
-
setIncludedProducts
-
setOptions
-
setReviewsSummary
-
setPrimaryAsset
-
setPrimaryCategory
-
setTags
-
setBrand
-
setMerchandisingType
-
setTargetDemographic
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) -
setTaxCode
-
setMinimumThreshold
-
setMaximumThreshold
-
setDefaultVariant
-