|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.order.domain.OrderItemImpl
org.broadleafcommerce.core.order.domain.BundleOrderItemImpl
@Entity public class BundleOrderItemImpl
| Nested Class Summary | |
|---|---|
static class |
BundleOrderItemImpl.Presentation
|
| Field Summary | |
|---|---|
protected BigDecimal |
baseRetailPrice
|
protected BigDecimal |
baseSalePrice
|
protected List<BundleOrderItemFeePrice> |
bundleOrderItemFeePrices
|
protected List<DiscreteOrderItem> |
discreteOrderItems
|
protected ProductBundle |
productBundle
|
protected Sku |
sku
|
| Fields inherited from class org.broadleafcommerce.core.order.domain.OrderItemImpl |
|---|
candidateItemOffers, category, discountsAllowed, giftWrapOrderItem, id, itemTaxable, name, order, orderItemAdjustments, orderItemAttributeMap, orderItemPriceDetails, orderItemQualifiers, orderItemType, personalMessage, price, quantity, retailPrice, retailPriceOverride, salePrice, salePriceOverride, totalTax |
| Fields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity |
|---|
MAIN_ENTITY_NAME_PROPERTY |
| Constructor Summary | |
|---|---|
BundleOrderItemImpl()
|
|
| Method Summary | |
|---|---|
OrderItem |
clone()
|
protected Money |
convertToMoney(BigDecimal amount)
|
boolean |
equals(Object obj)
|
boolean |
getAllowDiscountsOnChildItems()
Returns true if the contained items can be discounted. |
Money |
getBaseRetailPrice()
|
Money |
getBaseSalePrice()
|
List<BundleOrderItemFeePrice> |
getBundleOrderItemFeePrices()
|
List<DiscreteOrderItem> |
getDiscreteOrderItems()
|
List<? extends OrderItem> |
getOrderItems()
|
Product |
getProduct()
Same as getProductBundle. |
ProductBundle |
getProductBundle()
Returns the associated ProductBundle or null if not applicable. |
Money |
getRetailPrice()
The retail price of the item that was added to the Order at the time that this was added. |
Money |
getSalePrice()
Returns the salePrice for this item. |
Sku |
getSku()
For BundleOrderItem created from a ProductBundle, this will represent the default sku of the product bundle. |
Money |
getTaxablePrice()
|
Money |
getTotalPrice()
Returns the total price to be paid for this order item including item-level adjustments. |
boolean |
hasAdjustedItems()
|
int |
hashCode()
|
boolean |
isDiscountingAllowed()
If true, this item can be discounted.. |
boolean |
isPricingAtContainerLevel()
Returns true if pricing operations are at the container level (as opposed to being the sum of the contained items) |
boolean |
isSkuActive()
Returns a boolean indicating whether this sku is active. |
Boolean |
isTaxable()
Returns whether or not this item is taxable. |
void |
setBaseRetailPrice(Money baseRetailPrice)
|
void |
setBaseSalePrice(Money baseSalePrice)
|
void |
setBundleOrderItemFeePrices(List<BundleOrderItemFeePrice> bundleOrderItemFeePrices)
|
void |
setDiscreteOrderItems(List<DiscreteOrderItem> discreteOrderItems)
|
void |
setProductBundle(ProductBundle productBundle)
Sets the ProductBundle associated with this BundleOrderItem. |
void |
setSku(Sku sku)
|
boolean |
shouldSumItems()
|
boolean |
updateSaleAndRetailPrices()
Used to reset the base price of the item that the pricing engine uses. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<DiscreteOrderItem> discreteOrderItems
protected List<BundleOrderItemFeePrice> bundleOrderItemFeePrices
protected BigDecimal baseRetailPrice
protected BigDecimal baseSalePrice
protected Sku sku
protected ProductBundle productBundle
| Constructor Detail |
|---|
public BundleOrderItemImpl()
| Method Detail |
|---|
public Sku getSku()
BundleOrderItem
getSku in interface BundleOrderItemgetSku in interface SkuAccessorpublic void setSku(Sku sku)
setSku in interface BundleOrderItempublic ProductBundle getProductBundle()
BundleOrderItem
getProductBundle in interface BundleOrderItempublic void setProductBundle(ProductBundle productBundle)
BundleOrderItem
setProductBundle in interface BundleOrderItempublic List<? extends OrderItem> getOrderItems()
getOrderItems in interface OrderItemContainerpublic boolean getAllowDiscountsOnChildItems()
OrderItemContainer
getAllowDiscountsOnChildItems in interface OrderItemContainerpublic boolean isPricingAtContainerLevel()
OrderItemContainer
isPricingAtContainerLevel in interface OrderItemContainerpublic boolean isDiscountingAllowed()
OrderItem
isDiscountingAllowed in interface OrderItemisDiscountingAllowed in class OrderItemImplpublic List<DiscreteOrderItem> getDiscreteOrderItems()
getDiscreteOrderItems in interface BundleOrderItempublic void setDiscreteOrderItems(List<DiscreteOrderItem> discreteOrderItems)
setDiscreteOrderItems in interface BundleOrderItempublic List<BundleOrderItemFeePrice> getBundleOrderItemFeePrices()
getBundleOrderItemFeePrices in interface BundleOrderItempublic void setBundleOrderItemFeePrices(List<BundleOrderItemFeePrice> bundleOrderItemFeePrices)
setBundleOrderItemFeePrices in interface BundleOrderItempublic Money getTaxablePrice()
getTaxablePrice in interface BundleOrderItemgetTaxablePrice in interface OrderItemgetTaxablePrice in class OrderItemImplpublic Boolean isTaxable()
OrderItem
isTaxable in interface OrderItemisTaxable in class OrderItemImplpublic boolean shouldSumItems()
shouldSumItems in interface BundleOrderItempublic Money getRetailPrice()
OrderItemOrder at the time that this was added. This is preferable
to use as opposed to checking the price of the item that was added from the catalog domain (like in
DiscreteOrderItem, using DiscreteOrderItem.getSku()'s retail price) since the price in the catalog
domain could have changed since the item was added to the Order.
getRetailPrice in interface OrderItemgetRetailPrice in class OrderItemImplpublic Money getSalePrice()
OrderItemOrderItem.updateSaleAndRetailPrices() will ensure that the
retailPrice being used is current.
getSalePrice in interface OrderItemgetSalePrice in class OrderItemImplpublic Money getBaseRetailPrice()
getBaseRetailPrice in interface BundleOrderItempublic void setBaseRetailPrice(Money baseRetailPrice)
setBaseRetailPrice in interface BundleOrderItempublic Money getBaseSalePrice()
getBaseSalePrice in interface BundleOrderItempublic void setBaseSalePrice(Money baseSalePrice)
setBaseSalePrice in interface BundleOrderItempublic boolean hasAdjustedItems()
hasAdjustedItems in interface BundleOrderItempublic boolean updateSaleAndRetailPrices()
OrderItem
updateSaleAndRetailPrices in interface OrderItemupdateSaleAndRetailPrices in class OrderItemImplpublic boolean equals(Object obj)
equals in class OrderItemImplpublic Product getProduct()
BundleOrderItem
getProduct in interface BundleOrderItemprotected Money convertToMoney(BigDecimal amount)
convertToMoney in class OrderItemImplpublic Money getTotalPrice()
OrderItem
getTotalPrice in interface OrderItemgetTotalPrice in class OrderItemImplpublic boolean isSkuActive()
OrderItem
isSkuActive in interface OrderItemisSkuActive in class OrderItemImplpublic OrderItem clone()
clone in interface OrderItemclone in class OrderItemImplpublic int hashCode()
hashCode in class OrderItemImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||