@Entity public class ProductBundleImpl extends ProductImpl implements ProductBundle
ProductImpl.Presentation| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
autoBundle |
protected Boolean |
bundlePromotable |
protected Boolean |
itemsPromotable |
protected String |
pricingModel |
protected int |
priority |
protected List<SkuBundleItem> |
skuBundleItems |
additionalSkus, allParentCategoryXrefs, archiveStatus, canSellWithoutOptions, crossSaleProducts, defaultCategory, defaultSku, displayTemplate, id, isFeaturedProduct, manufacturer, model, productAttributes, productOptions, promoMessage, skus, upSaleProducts, url, urlKeyMAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
ProductBundleImpl() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAutoBundle()
Gets whether or not this should be bundled together if the individual
Products are added to the cart.
|
Money |
getBundleItemsRetailPrice() |
Money |
getBundleItemsSalePrice() |
Boolean |
getBundlePromotable()
Gets whether or not the bundle itself should be promotable.
|
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 |
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() |
Integer |
getPriority()
Used to determine the order for automatic bundling.
|
Money |
getRetailPrice()
Returns the retail price for this bundle
|
Money |
getSalePrice()
Returns the sale price for this bundle
|
List<SkuBundleItem> |
getSkuBundleItems() |
boolean |
isOnSale() |
void |
setAutoBundle(Boolean autoBundle)
Sets whether or not this should be bundled together if the individual
Products are added to the cart.
|
void |
setBundlePromotable(Boolean bundlePromotable)
Gets whether or not the bundle itself should be promotable.
|
void |
setItemsPromotable(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(Integer priority) |
void |
setSkuBundleItems(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, getLocation, getLongDescription, getMainEntityName, getManufacturer, getMedia, getModel, getName, getProductAttributes, getProductOptions, getProductOptionXrefs, 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, setProductOptionXrefs, 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, getProductOptionXrefs, 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, setProductOptionXrefs, setPromoMessage, setSize, setTaxCode, setUpSaleProducts, setUrl, setUrlKey, setWeight, setWidthprotected String pricingModel
protected Boolean autoBundle
protected Boolean itemsPromotable
protected Boolean bundlePromotable
protected int priority
protected 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()
ProductBundlegetRetailPrice in interface ProductBundlepublic Money getSalePrice()
ProductBundlegetSalePrice in interface ProductBundlepublic Money getBundleItemsRetailPrice()
getBundleItemsRetailPrice in interface ProductBundlepublic Money getBundleItemsSalePrice()
getBundleItemsSalePrice in interface ProductBundlepublic Boolean getAutoBundle()
ProductBundlegetAutoBundle in interface ProductBundlepublic void setAutoBundle(Boolean autoBundle)
ProductBundlesetAutoBundle in interface ProductBundleautoBundle - Whether or not the items in the bundle should be auto-bundled
if added to the cart separatelypublic Boolean getItemsPromotable()
ProductBundlegetItemsPromotable in interface ProductBundlepublic void setItemsPromotable(Boolean itemsPromotable)
ProductBundlesetItemsPromotable in interface ProductBundleitemsPromotable - Whether or not the items in the bundle should be considered
for promotionspublic Boolean getBundlePromotable()
ProductBundlegetBundlePromotable in interface ProductBundlepublic void setBundlePromotable(Boolean bundlePromotable)
ProductBundlesetBundlePromotable in interface ProductBundlebundlePromotable - Whether or not the bundle itself should be available for
promotionpublic List<SkuBundleItem> getSkuBundleItems()
getSkuBundleItems in interface ProductBundlepublic void setSkuBundleItems(List<SkuBundleItem> skuBundleItems)
setSkuBundleItems in interface ProductBundlepublic Integer getPriority()
ProductBundlegetPriority in interface ProductBundlepublic void setPriority(Integer priority)
setPriority in interface ProductBundlepublic BigDecimal getPotentialSavings()
ProductBundlegetPotentialSavings in interface ProductBundleCopyright © 2014. All Rights Reserved.