|
||||||||||
| 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
| 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, giftWrapOrderItem, id, itemTaxable, name, order, orderItemAdjustments, orderItemAttributeMap, orderItemType, personalMessage, price, quantity, retailPrice, salePrice, splitParentItemId |
| Constructor Summary | |
|---|---|
BundleOrderItemImpl()
|
|
| Method Summary | |
|---|---|
void |
accept(OrderItemVisitor visitor)
|
void |
assignFinalPrice()
|
OrderItem |
clone()
|
boolean |
equals(Object obj)
|
Money |
getBaseRetailPrice()
|
Money |
getBaseSalePrice()
|
List<BundleOrderItemFeePrice> |
getBundleOrderItemFeePrices()
|
Money |
getCurrentPrice()
|
List<DiscreteOrderItem> |
getDiscreteOrderItems()
|
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()
|
Sku |
getSku()
For BundleOrderItem created from a ProductBundle, this will represent the default sku of the product bundle. |
Money |
getTaxablePrice()
|
boolean |
hasAdjustedItems()
|
int |
hashCode()
|
int |
removeAllAdjustments()
Removes all adjustment for this order item and reset the adjustment price. |
void |
removeAllCandidateItemOffers()
|
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 |
updatePrices()
Post-condition should be that OrderItem.getPrice() should be the most up-to-date. |
| Methods inherited from class org.broadleafcommerce.core.order.domain.OrderItemImpl |
|---|
addCandidateItemOffer, checkCloneable, getAdjustmentValue, getCandidateItemOffers, getCategory, getGiftWrapOrderItem, getId, getIsDiscounted, getIsOnSale, getName, getOrder, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemType, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getQuantity, getSplitParentItemId, isInCategory, isTaxable, setCandidateItemOffers, setCategory, setGiftWrapOrderItem, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemType, setPersonalMessage, setPrice, setQuantity, setRetailPrice, setSalePrice, setSplitParentItemId, setTaxable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.broadleafcommerce.core.order.domain.OrderItem |
|---|
addCandidateItemOffer, getAdjustmentValue, getCandidateItemOffers, getCategory, getGiftWrapOrderItem, getId, getIsDiscounted, getIsOnSale, getName, getOrder, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemType, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getQuantity, getSplitParentItemId, isInCategory, isTaxable, setCandidateItemOffers, setCategory, setGiftWrapOrderItem, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemType, setPersonalMessage, setPrice, setQuantity, setRetailPrice, setSalePrice, setSplitParentItemId, setTaxable |
| 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<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 void removeAllCandidateItemOffers()
removeAllCandidateItemOffers in interface OrderItemremoveAllCandidateItemOffers in class OrderItemImplpublic int removeAllAdjustments()
OrderItem
removeAllAdjustments in interface OrderItemremoveAllAdjustments in class OrderItemImplpublic void assignFinalPrice()
assignFinalPrice in interface OrderItemassignFinalPrice in class OrderItemImplpublic Money getTaxablePrice()
getTaxablePrice in interface BundleOrderItemgetTaxablePrice in interface OrderItemgetTaxablePrice 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()
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 Money getCurrentPrice()
getCurrentPrice in interface OrderItemgetCurrentPrice in class OrderItemImplpublic boolean updatePrices()
OrderItemOrderItem.getPrice() should be the most up-to-date.
updatePrices in interface OrderItemupdatePrices in class OrderItemImplpublic boolean equals(Object obj)
equals in class OrderItemImplpublic Product getProduct()
BundleOrderItem
getProduct in interface BundleOrderItempublic OrderItem clone()
clone in interface OrderItemclone in class OrderItemImplpublic int hashCode()
hashCode in class OrderItemImpl
public void accept(OrderItemVisitor visitor)
throws PricingException
accept in interface OrderItemaccept in class OrderItemImplPricingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||