Class ProductBundleImpl

java.lang.Object
org.broadleafcommerce.core.catalog.domain.ProductImpl
org.broadleafcommerce.core.catalog.domain.ProductBundleImpl
All Implemented Interfaces:
Serializable, AdminMainEntity, MultiTenantCloneable<Product>, Status, TemplatePathContainer, Locatable, Indexable, Product, ProductAdminPresentation, ProductBundle

@Deprecated @Entity public class ProductBundleImpl extends ProductImpl implements ProductBundle
Deprecated.
instead, use the ProductType Module's Product Add-Ons to build and configure bundles
See Also:
  • Field Details

    • pricingModel

      protected String pricingModel
      Deprecated.
    • autoBundle

      protected Boolean autoBundle
      Deprecated.
    • itemsPromotable

      protected Boolean itemsPromotable
      Deprecated.
    • bundlePromotable

      protected Boolean bundlePromotable
      Deprecated.
    • priority

      protected Integer priority
      Deprecated.
    • skuBundleItems

      protected List<SkuBundleItem> skuBundleItems
      Deprecated.
  • Constructor Details

    • ProductBundleImpl

      public ProductBundleImpl()
      Deprecated.
  • Method Details

    • isOnSale

      public boolean isOnSale()
      Deprecated.
      Description copied from interface: Product
      Convenience method, references defaultSku.onSale
      Specified by:
      isOnSale in interface Product
      Specified by:
      isOnSale in interface ProductBundle
      Overrides:
      isOnSale in class ProductImpl
      Returns:
      whether or not the product bundle is on sale
    • getPricingModel

      public ProductBundlePricingModelType getPricingModel()
      Deprecated.
      Specified by:
      getPricingModel in interface ProductBundle
      Returns:
      The pricing model for this bundle

      ITEM_SUM indicates that the bundle is priced by the sum of the contained items. BUNDLE indicates that the bundle is priced by the price on the bundle itself.

    • setPricingModel

      public void setPricingModel(ProductBundlePricingModelType pricingModel)
      Deprecated.
      Specified by:
      setPricingModel in interface ProductBundle
      Parameters:
      pricingModel - ITEM_SUM if the retailPrice and salePrice of this bundle should be the composition of its items, BUNDLE if this retailPrice and salePrice should come from the default Sku
    • getRetailPrice

      public Money getRetailPrice()
      Deprecated.
      Description copied from interface: Product
      Convenience method, references to defaultSku.retailPrice
      Specified by:
      getRetailPrice in interface Product
      Specified by:
      getRetailPrice in interface ProductBundle
      Overrides:
      getRetailPrice in class ProductImpl
      Returns:
    • getSalePrice

      public Money getSalePrice()
      Deprecated.
      Description copied from interface: Product
      Convenience method, references defaultSku.salePrice
      Specified by:
      getSalePrice in interface Product
      Specified by:
      getSalePrice in interface ProductBundle
      Overrides:
      getSalePrice in class ProductImpl
      Returns:
    • getBundleItemsRetailPrice

      public Money getBundleItemsRetailPrice()
      Deprecated.
      Specified by:
      getBundleItemsRetailPrice in interface ProductBundle
      Returns:
      the sum of the retail prices of the bundle items
    • getBundleItemsSalePrice

      public Money getBundleItemsSalePrice()
      Deprecated.
      Specified by:
      getBundleItemsSalePrice in interface ProductBundle
      Returns:
      the sum of the sale prices of the bundle items
    • clearDynamicPrices

      public void clearDynamicPrices()
      Deprecated.
      Description copied from interface: Product
      Removes any currently stored dynamic pricing
      Specified by:
      clearDynamicPrices in interface Product
      Overrides:
      clearDynamicPrices in class ProductImpl
    • getAutoBundle

      public Boolean getAutoBundle()
      Deprecated.
      Description copied from interface: ProductBundle
      Gets whether or not this should be bundled together if the individual Products are added to the cart. For instance, if this Bundle is composed of Item1 and Item2, and the user adds Item1 and Item2 to the cart separately, if this is true then these items will be bundled into a single BundleOrderItem instead of unique items in the cart NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF
      Specified by:
      getAutoBundle in interface ProductBundle
      Returns:
      true if the items in this bundle should be automatically bundled together when added to the cart separately, false otherwise
    • setAutoBundle

      public void setAutoBundle(Boolean autoBundle)
      Deprecated.
      Description copied from interface: ProductBundle
      Sets whether or not this should be bundled together if the individual Products are added to the cart. For instance, if this Bundle is composed of Item1 and Item2, and the user adds Item1 and Item2 to the cart separately, if this is true then these items will be bundled into a single BundleOrderItem instead of unique items in the cart NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF
      Specified by:
      setAutoBundle in interface ProductBundle
      Parameters:
      autoBundle - Whether or not the items in the bundle should be auto-bundled if added to the cart separately
    • getItemsPromotable

      public Boolean getItemsPromotable()
      Deprecated.
      Description copied from interface: ProductBundle
      Gets whether or not the items in this bundle should be considered for promotions using the promotion engine

      Note: this is only applicable when the pricing model is the sum of the bundle items NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF
      Specified by:
      getItemsPromotable in interface ProductBundle
      Returns:
      true if the items should be included in the promotion engine, false otherwise
    • setItemsPromotable

      public void setItemsPromotable(Boolean itemsPromotable)
      Deprecated.
      Description copied from interface: ProductBundle
      Sets whether or not the items in this bundle should be considered for promotions using the promotion engine NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF
      Specified by:
      setItemsPromotable in interface ProductBundle
      Parameters:
      itemsPromotable - Whether or not the items in the bundle should be considered for promotions
    • getBundlePromotable

      public Boolean getBundlePromotable()
      Deprecated.
      Description copied from interface: ProductBundle
      Gets whether or not the bundle itself should be promotable.
      Note: this should only be used if the pricing model for the bundle uses the pricing on the bundle itself and not on the sum of its bundle items NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF
      Specified by:
      getBundlePromotable in interface ProductBundle
      Returns:
      true if the bundle itself should be available for promotion, false otherwise
    • setBundlePromotable

      public void setBundlePromotable(Boolean bundlePromotable)
      Deprecated.
      Description copied from interface: ProductBundle
      Gets whether or not the bundle itself should be promotable.
      Note: this should only be used if the pricing model for the bundle uses the pricing on the bundle itself and not on the sum of its bundle items NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF
      Specified by:
      setBundlePromotable in interface ProductBundle
      Parameters:
      bundlePromotable - Whether or not the bundle itself should be available for promotion
    • getSkuBundleItems

      public List<SkuBundleItem> getSkuBundleItems()
      Deprecated.
      Specified by:
      getSkuBundleItems in interface ProductBundle
    • setSkuBundleItems

      public void setSkuBundleItems(List<SkuBundleItem> skuBundleItems)
      Deprecated.
      Specified by:
      setSkuBundleItems in interface ProductBundle
    • getPriority

      public Integer getPriority()
      Deprecated.
      Description copied from interface: ProductBundle
      Used to determine the order for automatic bundling.
      Specified by:
      getPriority in interface ProductBundle
      Returns:
    • setPriority

      public void setPriority(Integer priority)
      Deprecated.
      Specified by:
      setPriority in interface ProductBundle
    • getPotentialSavings

      public BigDecimal getPotentialSavings()
      Deprecated.
      Description copied from interface: ProductBundle
      Calculates the potential savings by summing up the retail prices of the contained items and comparing to the actual bundle prices.

      Used to determine the order for automatic bundling in case items might qualify for multiple bundles.

      Specified by:
      getPotentialSavings in interface ProductBundle
      Returns:
    • createOrRetrieveCopyInstance

      public CreateResponse<ProductBundle> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException
      Deprecated.
      Specified by:
      createOrRetrieveCopyInstance in interface MultiTenantCloneable<Product>
      Overrides:
      createOrRetrieveCopyInstance in class ProductImpl
      Throws:
      CloneNotSupportedException
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class ProductImpl
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class ProductImpl