java.lang.Object
com.broadleafcommerce.catalog.domain.product.commerce.VariantDetail
All Implemented Interfaces:
Serializable

public class VariantDetail extends Object implements Serializable
A version of Variant tailored toward the needs of a commerce-facing product details page.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

  • Method Details

    • getVariant

      public Variant getVariant()
    • getPriceInfo

      public PriceInfo getPriceInfo()
      Summary of the pricing information related to the variant.
      Returns:
      Summary of the pricing information related to the variant
    • getVendorRef

      public String getVendorRef()
      Soft reference to the vendor associated with this catalog. This value can be null, in which case, no vendor is associated.
      Returns:
      Soft reference to the vendor associated with this catalog.
    • getAdvancedTags

      public List<ProductTag> getAdvancedTags()
      The product tags associated with this variant. Must be hydrated.
      Returns:
      The tags associated with this variant
    • setVariant

      public void setVariant(Variant variant)
    • setPriceInfo

      public void setPriceInfo(PriceInfo priceInfo)
      Summary of the pricing information related to the variant.
      Parameters:
      priceInfo - Summary of the pricing information related to the variant
    • setVendorRef

      public void setVendorRef(String vendorRef)
      Soft reference to the vendor associated with this catalog. This value can be null, in which case, no vendor is associated.
      Parameters:
      vendorRef - Soft reference to the vendor associated with this catalog.
    • setAdvancedTags

      public void setAdvancedTags(List<ProductTag> advancedTags)
      The product tags associated with this variant. Must be hydrated.
      Parameters:
      productTags - The tags associated with this variant
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAttribute

      public <T> T getAttribute(String name)
    • isActive

      public boolean isActive()
    • isOnSale

      public boolean isOnSale()
    • getId

      public String getId()
    • getSku

      public String getSku()
    • getUpc

      public String getUpc()
    • getExternalId

      public String getExternalId()
    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • getActiveStartDate

      public Instant getActiveStartDate()
    • getActiveEndDate

      public Instant getActiveEndDate()
    • getDefaultPrice

      public javax.money.MonetaryAmount getDefaultPrice()
    • getSalePrice

      public javax.money.MonetaryAmount getSalePrice()
    • getCost

      public javax.money.MonetaryAmount getCost()
    • getDimension

      public Dimensions getDimension()
    • getWeight

      public Weight getWeight()
    • isOnline

      public boolean isOnline()
    • isDiscountable

      public boolean isDiscountable()
    • getProductId

      public String getProductId()
    • getOptionValues

      public Map<String,String> getOptionValues()
    • getInventoryCheckStrategy

      public String getInventoryCheckStrategy()
    • getInventoryReservationStrategy

      public String getInventoryReservationStrategy()
    • getReviewsSummary

      public ReviewsSummary getReviewsSummary()
    • getMinimumThreshold

      public Integer getMinimumThreshold()
    • getMaximumThreshold

      public Integer getMaximumThreshold()
    • getFulfillmentFlatRates

      public Map<String,FulfillmentFlatRate> getFulfillmentFlatRates()
    • getAttributes

      public Map<String,Attribute> getAttributes()
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
    • getTaxCode

      public String getTaxCode()
    • getOverrideChangeContainer

      public com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer getOverrideChangeContainer()
    • setId

      public void setId(String id)
    • setSku

      public void setSku(String sku)
    • setUpc

      public void setUpc(String upc)
    • setExternalId

      public void setExternalId(String externalId)
    • setName

      public void setName(String name)
    • setDescription

      public void setDescription(String description)
    • setActiveStartDate

      public void setActiveStartDate(Instant activeStartDate)
    • setActiveEndDate

      public void setActiveEndDate(Instant activeEndDate)
    • setDefaultPrice

      public void setDefaultPrice(javax.money.MonetaryAmount defaultPrice)
    • setSalePrice

      public void setSalePrice(javax.money.MonetaryAmount salePrice)
    • setCost

      public void setCost(javax.money.MonetaryAmount cost)
    • setDimension

      public void setDimension(Dimensions dimension)
    • setWeight

      public void setWeight(Weight weight)
    • setOnline

      public void setOnline(boolean online)
    • setDiscountable

      public void setDiscountable(boolean discountable)
    • setProductId

      public void setProductId(String productId)
    • setOptionValues

      public void setOptionValues(Map<String,String> optionValues)
    • setInventoryCheckStrategy

      public void setInventoryCheckStrategy(String inventoryCheckStrategy)
    • setInventoryReservationStrategy

      public void setInventoryReservationStrategy(String inventoryReservationStrategy)
    • setReviewsSummary

      public void setReviewsSummary(ReviewsSummary reviewsSummary)
    • setMinimumThreshold

      public void setMinimumThreshold(Integer minimumThreshold)
    • setMaximumThreshold

      public void setMaximumThreshold(Integer maximumThreshold)
    • setFulfillmentFlatRates

      public void setFulfillmentFlatRates(Map<String,FulfillmentFlatRate> fulfillmentFlatRates)
    • setAttributes

      public void setAttributes(Map<String,Attribute> attributes)
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
    • setTaxCode

      public void setTaxCode(String taxCode)
    • setOverrideChangeContainer

      public void setOverrideChangeContainer(com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer overrideChangeContainer)