@Entity public class ProductBundleImpl extends ProductImpl implements ProductBundle
ProductImpl.Presentation| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Boolean |
autoBundle |
protected java.lang.Boolean |
bundlePromotable |
protected java.lang.Boolean |
itemsPromotable |
protected java.lang.String |
pricingModel |
protected int |
priority |
protected java.util.List<SkuBundleItem> |
skuBundleItems |
additionalSkus, allParentCategoryXrefs, archiveStatus, canSellWithoutOptions, crossSaleProducts, defaultCategory, defaultSku, displayTemplate, id, isFeaturedProduct, manufacturer, model, productAttributes, productOptions, promoMessage, skus, taxCode, upSaleProducts, url, urlKeyMAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
ProductBundleImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getAutoBundle()
Gets whether or not this should be bundled together if the individual
Products are added to the cart.
|
Money |
getBundleItemsRetailPrice() |
Money |
getBundleItemsSalePrice() |
java.lang.Boolean |
getBundlePromotable()
Gets whether or not the bundle itself should be promotable.
|
java.lang.Boolean |
getItemsPromotable()
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 |
java.math.BigDecimal |
getPotentialSavings()
Calculates the potential savings by summing up the retail prices of the
contained items and comparing to the actual bundle prices.
|
ProductBundlePricingModelType |
getPricingModel() |
java.lang.Integer |
getPriority()
Used to determine the order for automatic bundling.
|
Money |
getRetailPrice() |
Money |
getSalePrice() |
java.util.List<SkuBundleItem> |
getSkuBundleItems() |
boolean |
isOnSale() |
void |
setAutoBundle(java.lang.Boolean autoBundle)
Sets whether or not this should be bundled together if the individual
Products are added to the cart.
|
void |
setBundlePromotable(java.lang.Boolean bundlePromotable)
Gets whether or not the bundle itself should be promotable.
|
void |
setItemsPromotable(java.lang.Boolean itemsPromotable)
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
|
void |
setPricingModel(ProductBundlePricingModelType pricingModel) |
void |
setPriority(java.lang.Integer priority) |
void |
setSkuBundleItems(java.util.List<SkuBundleItem> skuBundleItems) |
clearDynamicPrices, equals, getActiveEndDate, getActiveStartDate, getAdditionalSkus, getAllParentCategories, getAllParentCategoryXrefs, getAllSkuMedia, getAllSkus, getArchived, getCanSellWithoutOptions, getContainer, getCrossSaleProducts, getCumulativeCrossSaleProducts, getCumulativeUpSaleProducts, getDefaultCategory, getDefaultSku, getDepth, getDescription, getDimension, getDimensionString, getDisplayTemplate, getGeneratedUrl, getGirth, getHeight, getId, getLongDescription, getMainEntityName, getManufacturer, getMedia, getModel, getName, getProductAttributes, getProductOptions, getPromoMessage, getSize, getSkus, getTaxCode, getUpSaleProducts, getUrl, getUrlKey, getWeight, getWidth, hashCode, isActive, isFeaturedProduct, setActiveEndDate, setActiveStartDate, setAdditionalSkus, setAllParentCategories, setAllParentCategoryXrefs, setArchived, setCanSellWithoutOptions, setContainer, setCrossSaleProducts, setDefaultCategory, setDefaultSku, setDepth, setDescription, setDimension, setDisplayTemplate, setFeaturedProduct, setGirth, setHeight, setId, setLongDescription, setManufacturer, setMedia, setModel, setName, setProductAttributes, setProductOptions, setPromoMessage, setSize, setTaxCode, setUpSaleProducts, setUrl, setUrlKey, setWeight, setWidthclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitclearDynamicPrices, getActiveEndDate, getActiveStartDate, getAdditionalSkus, getAllParentCategories, getAllParentCategoryXrefs, getAllSkuMedia, getAllSkus, getCanSellWithoutOptions, getContainer, getCrossSaleProducts, getCumulativeCrossSaleProducts, getCumulativeUpSaleProducts, getDefaultCategory, getDefaultSku, getDepth, getDescription, getDimension, getDimensionString, getDisplayTemplate, getGeneratedUrl, getGirth, getHeight, getId, getLongDescription, getManufacturer, getMedia, getModel, getName, getProductAttributes, getProductOptions, getPromoMessage, getSize, getSkus, getTaxCode, getUpSaleProducts, getUrl, getUrlKey, getWeight, getWidth, isActive, isFeaturedProduct, setActiveEndDate, setActiveStartDate, setAdditionalSkus, setAllParentCategories, setAllParentCategoryXrefs, setCanSellWithoutOptions, setContainer, setCrossSaleProducts, setDefaultCategory, setDefaultSku, setDepth, setDescription, setDimension, setDisplayTemplate, setFeaturedProduct, setGirth, setHeight, setId, setLongDescription, setManufacturer, setMedia, setModel, setName, setProductAttributes, setProductOptions, setPromoMessage, setSize, setTaxCode, setUpSaleProducts, setUrl, setUrlKey, setWeight, setWidthprotected java.lang.String pricingModel
protected java.lang.Boolean autoBundle
protected java.lang.Boolean itemsPromotable
protected java.lang.Boolean bundlePromotable
protected int priority
protected java.util.List<SkuBundleItem> skuBundleItems
public boolean isOnSale()
isOnSale in interface ProductBundlepublic ProductBundlePricingModelType getPricingModel()
getPricingModel in interface ProductBundlepublic void setPricingModel(ProductBundlePricingModelType pricingModel)
setPricingModel in interface ProductBundlepricingModel - 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
Skupublic Money getRetailPrice()
public Money getSalePrice()
public Money getBundleItemsRetailPrice()
getBundleItemsRetailPrice in interface ProductBundlepublic Money getBundleItemsSalePrice()
getBundleItemsSalePrice in interface ProductBundlepublic java.lang.Boolean getAutoBundle()
ProductBundlegetAutoBundle in interface ProductBundlepublic void setAutoBundle(java.lang.Boolean autoBundle)
ProductBundlesetAutoBundle in interface ProductBundleautoBundle - Whether or not the items in the bundle should be auto-bundled
if added to the cart separatelypublic java.lang.Boolean getItemsPromotable()
ProductBundlegetItemsPromotable in interface ProductBundlepublic void setItemsPromotable(java.lang.Boolean itemsPromotable)
ProductBundlesetItemsPromotable in interface ProductBundleitemsPromotable - Whether or not the items in the bundle should be considered
for promotionspublic java.lang.Boolean getBundlePromotable()
ProductBundlegetBundlePromotable in interface ProductBundlepublic void setBundlePromotable(java.lang.Boolean bundlePromotable)
ProductBundlesetBundlePromotable in interface ProductBundlebundlePromotable - Whether or not the bundle itself should be available for
promotionpublic java.util.List<SkuBundleItem> getSkuBundleItems()
getSkuBundleItems in interface ProductBundlepublic void setSkuBundleItems(java.util.List<SkuBundleItem> skuBundleItems)
setSkuBundleItems in interface ProductBundlepublic java.lang.Integer getPriority()
ProductBundlegetPriority in interface ProductBundlepublic void setPriority(java.lang.Integer priority)
setPriority in interface ProductBundlepublic java.math.BigDecimal getPotentialSavings()
ProductBundlegetPotentialSavings in interface ProductBundleCopyright © 2018. All Rights Reserved.