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.
instead, use the ProductType Module's Product Add-Ons to build and configure bundles
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.broadleafcommerce.core.catalog.domain.ProductAdminPresentation
ProductAdminPresentation.FieldOrder, ProductAdminPresentation.GroupName, ProductAdminPresentation.GroupOrder, ProductAdminPresentation.TabName, ProductAdminPresentation.TabOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BooleanDeprecated.protected BooleanDeprecated.protected BooleanDeprecated.protected StringDeprecated.protected IntegerDeprecated.protected List<SkuBundleItem>Deprecated.Fields inherited from class org.broadleafcommerce.core.catalog.domain.ProductImpl
additionalSkus, allParentCategoryIds, allParentCategoryXrefs, archiveStatus, canonicalUrl, canSellWithoutOptions, crossSaleProducts, defaultCategory, defaultSku, displayTemplate, enableDefaultSkuInventory, EXCLUDE_PRODUCT_CODE_COPY_HINT, id, manufacturer, metaDescription, metaTitle, model, overrideGeneratedUrl, productAttributes, productOptionMap, productOptions, promoMessage, skus, upSaleProducts, url, urlKeyFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Removes any currently stored dynamic pricingDeprecated.booleanDeprecated.Deprecated.Gets whether or not this should be bundled together if the individual Products are added to the cart.Deprecated.Deprecated.Deprecated.Gets whether or not the bundle itself should be promotable.Deprecated.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 BROADLEAFDeprecated.Calculates the potential savings by summing up the retail prices of the contained items and comparing to the actual bundle prices.Deprecated.Deprecated.Used to determine the order for automatic bundling.Deprecated.Convenience method, references to defaultSku.retailPriceDeprecated.Convenience method, references defaultSku.salePriceDeprecated.inthashCode()Deprecated.booleanisOnSale()Deprecated.Convenience method, references defaultSku.onSalevoidsetAutoBundle(Boolean autoBundle) Deprecated.Sets whether or not this should be bundled together if the individual Products are added to the cart.voidsetBundlePromotable(Boolean bundlePromotable) Deprecated.Gets whether or not the bundle itself should be promotable.voidsetItemsPromotable(Boolean itemsPromotable) Deprecated.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 BROADLEAFvoidsetPricingModel(ProductBundlePricingModelType pricingModel) Deprecated.voidsetPriority(Integer priority) Deprecated.voidsetSkuBundleItems(List<SkuBundleItem> skuBundleItems) Deprecated.Methods inherited from class org.broadleafcommerce.core.catalog.domain.ProductImpl
getActiveEndDate, getActiveStartDate, getAdditionalSkus, getAllParentCategories, getAllParentCategoryIds, getAllParentCategoryXrefs, getAllSellableSkus, getAllSkuMedia, getAllSkus, getAllSkus, getArchived, getCanonicalUrl, getCanSellWithoutOptions, getCategory, getContainer, getCrossSaleProducts, getCumulativeCrossSaleProducts, getCumulativeUpSaleProducts, getDefaultCategory, getDefaultSku, getDepth, getDescription, getDimension, getDimensionString, getDisplayTemplate, getEnableDefaultSkuInInventory, getExternalId, getFieldEntityType, getGeneratedUrl, getGirth, getHeight, getId, getLocation, getLongDescription, getMainEntityName, getManufacturer, getMargin, getMedia, getMetaDescription, getMetaTitle, getModel, getMultiValueProductAttributes, getName, getOverrideGeneratedUrl, getParentCategoryHierarchyIds, getPrice, getProductAttributes, getProductOptions, getProductOptionValuesMap, getProductOptionXrefs, getPromoMessage, getRetailPriceInternal, getSalePriceInternal, getSize, getSkus, getTaxCode, getUpSaleProducts, getUrl, getUrlKey, getWeight, getWidth, hasRetailPrice, isActive, setActiveEndDate, setActiveStartDate, setAdditionalSkus, setAllParentCategories, setAllParentCategoryXrefs, setArchived, setCanonicalUrl, setCanSellWithoutOptions, setCategory, setContainer, setCrossSaleProducts, setDefaultCategory, setDefaultSku, setDepth, setDescription, setDimension, setDisplayTemplate, setEnableDefaultSkuInInventory, setGirth, setHeight, setId, setLongDescription, setManufacturer, setMedia, setMetaDescription, setMetaTitle, setModel, setName, setOverrideGeneratedUrl, setProductAttributes, setProductOptions, setProductOptionXrefs, setPromoMessage, setSize, setTaxCode, setUpSaleProducts, setUrl, setUrlKey, setWeight, setWidthMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.core.catalog.domain.Indexable
getFieldEntityTypeMethods inherited from interface org.broadleafcommerce.core.catalog.domain.Product
getActiveEndDate, getActiveStartDate, getAdditionalSkus, getAllParentCategories, getAllParentCategoryIds, getAllParentCategoryXrefs, getAllSellableSkus, getAllSkuMedia, getAllSkus, getCanonicalUrl, getCanSellWithoutOptions, getCategory, getContainer, getCrossSaleProducts, getCumulativeCrossSaleProducts, getCumulativeUpSaleProducts, getDefaultCategory, getDefaultSku, getDepth, getDescription, getDimension, getDimensionString, getDisplayTemplate, getEnableDefaultSkuInInventory, getExternalId, getGeneratedUrl, getGirth, getHeight, getId, getLongDescription, getManufacturer, getMargin, getMedia, getMetaDescription, getMetaTitle, getModel, getMultiValueProductAttributes, getName, getOverrideGeneratedUrl, getParentCategoryHierarchyIds, getPrice, getProductAttributes, getProductOptions, getProductOptionValuesMap, getProductOptionXrefs, getPromoMessage, getSize, getSkus, getTaxCode, getUpSaleProducts, getUrl, getUrlKey, getWeight, getWidth, hasRetailPrice, isActive, setActiveEndDate, setActiveStartDate, setAdditionalSkus, setAllParentCategories, setAllParentCategoryXrefs, setCanonicalUrl, setCanSellWithoutOptions, setCategory, setContainer, setCrossSaleProducts, setDefaultCategory, setDefaultSku, setDepth, setDescription, setDimension, setDisplayTemplate, setEnableDefaultSkuInInventory, setGirth, setHeight, setId, setLongDescription, setManufacturer, setMedia, setMetaDescription, setMetaTitle, setModel, setName, setOverrideGeneratedUrl, setProductAttributes, setProductOptions, setProductOptionXrefs, setPromoMessage, setSize, setTaxCode, setUpSaleProducts, setUrl, setUrlKey, setWeight, setWidth
-
Field Details
-
pricingModel
Deprecated. -
autoBundle
Deprecated. -
itemsPromotable
Deprecated. -
bundlePromotable
Deprecated. -
priority
Deprecated. -
skuBundleItems
Deprecated.
-
-
Constructor Details
-
ProductBundleImpl
public ProductBundleImpl()Deprecated.
-
-
Method Details
-
isOnSale
public boolean isOnSale()Deprecated.Description copied from interface:ProductConvenience method, references defaultSku.onSale- Specified by:
isOnSalein interfaceProduct- Specified by:
isOnSalein interfaceProductBundle- Overrides:
isOnSalein classProductImpl- Returns:
- whether or not the product bundle is on sale
-
getPricingModel
Deprecated.- Specified by:
getPricingModelin interfaceProductBundle- 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
Deprecated.- Specified by:
setPricingModelin interfaceProductBundle- 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
Deprecated.Description copied from interface:ProductConvenience method, references to defaultSku.retailPrice- Specified by:
getRetailPricein interfaceProduct- Specified by:
getRetailPricein interfaceProductBundle- Overrides:
getRetailPricein classProductImpl- Returns:
-
getSalePrice
Deprecated.Description copied from interface:ProductConvenience method, references defaultSku.salePrice- Specified by:
getSalePricein interfaceProduct- Specified by:
getSalePricein interfaceProductBundle- Overrides:
getSalePricein classProductImpl- Returns:
-
getBundleItemsRetailPrice
Deprecated.- Specified by:
getBundleItemsRetailPricein interfaceProductBundle- Returns:
- the sum of the retail prices of the bundle items
-
getBundleItemsSalePrice
Deprecated.- Specified by:
getBundleItemsSalePricein interfaceProductBundle- Returns:
- the sum of the sale prices of the bundle items
-
clearDynamicPrices
public void clearDynamicPrices()Deprecated.Description copied from interface:ProductRemoves any currently stored dynamic pricing- Specified by:
clearDynamicPricesin interfaceProduct- Overrides:
clearDynamicPricesin classProductImpl
-
getAutoBundle
Deprecated.Description copied from interface:ProductBundleGets 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:
getAutoBundlein interfaceProductBundle- Returns:
- true if the items in this bundle should be automatically bundled together when added to the cart separately, false otherwise
-
setAutoBundle
Deprecated.Description copied from interface:ProductBundleSets 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:
setAutoBundlein interfaceProductBundle- Parameters:
autoBundle- Whether or not the items in the bundle should be auto-bundled if added to the cart separately
-
getItemsPromotable
Deprecated.Description copied from interface:ProductBundleGets 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:
getItemsPromotablein interfaceProductBundle- Returns:
- true if the items should be included in the promotion engine, false otherwise
-
setItemsPromotable
Deprecated.Description copied from interface:ProductBundleSets 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:
setItemsPromotablein interfaceProductBundle- Parameters:
itemsPromotable- Whether or not the items in the bundle should be considered for promotions
-
getBundlePromotable
Deprecated.Description copied from interface:ProductBundleGets 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:
getBundlePromotablein interfaceProductBundle- Returns:
- true if the bundle itself should be available for promotion, false otherwise
-
setBundlePromotable
Deprecated.Description copied from interface:ProductBundleGets 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:
setBundlePromotablein interfaceProductBundle- Parameters:
bundlePromotable- Whether or not the bundle itself should be available for promotion
-
getSkuBundleItems
Deprecated.- Specified by:
getSkuBundleItemsin interfaceProductBundle
-
setSkuBundleItems
Deprecated.- Specified by:
setSkuBundleItemsin interfaceProductBundle
-
getPriority
Deprecated.Description copied from interface:ProductBundleUsed to determine the order for automatic bundling.- Specified by:
getPriorityin interfaceProductBundle- Returns:
-
setPriority
Deprecated.- Specified by:
setPriorityin interfaceProductBundle
-
getPotentialSavings
Deprecated.Description copied from interface:ProductBundleCalculates 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:
getPotentialSavingsin interfaceProductBundle- Returns:
-
createOrRetrieveCopyInstance
public CreateResponse<ProductBundle> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException Deprecated.- Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<Product>- Overrides:
createOrRetrieveCopyInstancein classProductImpl- Throws:
CloneNotSupportedException
-
equals
Deprecated.- Overrides:
equalsin classProductImpl
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classProductImpl
-