|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.catalog.domain.ProductImpl
org.broadleafcommerce.core.catalog.domain.ProductBundleImpl
@Entity public class ProductBundleImpl
| Field Summary | |
|---|---|
protected Boolean |
autoBundle
|
protected Boolean |
bundlePromotable
|
protected Boolean |
itemsPromotable
|
protected String |
pricingModel
|
protected int |
priority
|
protected List<SkuBundleItem> |
skuBundleItems
|
| Fields inherited from class org.broadleafcommerce.core.catalog.domain.ProductImpl |
|---|
additionalSkus, allParentCategories, archiveStatus, canSellWithoutOptions, crossSaleProducts, defaultCategory, defaultSku, displayTemplate, id, isFeaturedProduct, manufacturer, model, productAttributes, productOptions, promoMessage, skus, upSaleProducts, url, urlKey |
| Constructor Summary | |
|---|---|
ProductBundleImpl()
|
|
| Method Summary | |
|---|---|
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()
|
Money |
getSalePrice()
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String pricingModel
protected Boolean autoBundle
protected Boolean itemsPromotable
protected Boolean bundlePromotable
protected int priority
protected List<SkuBundleItem> skuBundleItems
| Constructor Detail |
|---|
public ProductBundleImpl()
| Method Detail |
|---|
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 Boolean getAutoBundle()
ProductBundle
getAutoBundle in interface ProductBundlepublic void setAutoBundle(Boolean autoBundle)
ProductBundle
setAutoBundle in interface ProductBundleautoBundle - Whether or not the items in the bundle should be auto-bundled
if added to the cart separatelypublic Boolean getItemsPromotable()
ProductBundle
getItemsPromotable in interface ProductBundlepublic void setItemsPromotable(Boolean itemsPromotable)
ProductBundle
setItemsPromotable in interface ProductBundleitemsPromotable - Whether or not the items in the bundle should be considered
for promotionspublic Boolean getBundlePromotable()
ProductBundle
getBundlePromotable in interface ProductBundlepublic void setBundlePromotable(Boolean bundlePromotable)
ProductBundle
setBundlePromotable 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()
ProductBundle
getPriority in interface ProductBundlepublic void setPriority(Integer priority)
setPriority in interface ProductBundlepublic BigDecimal getPotentialSavings()
ProductBundle
getPotentialSavings in interface ProductBundle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||