org.broadleafcommerce.core.order.domain
Class BundleOrderItemImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.domain.OrderItemImpl
      extended by org.broadleafcommerce.core.order.domain.BundleOrderItemImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, BundleOrderItem, OrderItem

@Entity
public class BundleOrderItemImpl
extends OrderItemImpl
implements BundleOrderItem

See Also:
Serialized Form

Field Summary
protected  java.util.List<BundleOrderItemFeePrice> bundleOrderItemFeePrices
           
protected  java.util.List<DiscreteOrderItem> discreteOrderItems
           
 
Fields inherited from class org.broadleafcommerce.core.order.domain.OrderItemImpl
candidateItemOffers, category, giftWrapOrderItem, id, name, order, orderItemAdjustments, orderItemType, personalMessage, price, quantity, retailPrice, salePrice
 
Constructor Summary
BundleOrderItemImpl()
           
 
Method Summary
 void accept(OrderItemVisitor visitor)
           
 void assignFinalPrice()
           
 boolean equals(java.lang.Object obj)
           
 java.util.List<BundleOrderItemFeePrice> getBundleOrderItemFeePrices()
           
 Money getCurrentPrice()
           
 java.util.List<DiscreteOrderItem> getDiscreteOrderItems()
           
 Money getRetailPrice()
           
 Money getSalePrice()
           
 Money getTaxablePrice()
           
 boolean hasAdjustedItems()
           
 int hashCode()
           
 int removeAllAdjustments()
          Removes all adjustment for this order item and reset the adjustment price.
 void removeAllCandidateItemOffers()
           
 void setBundleOrderItemFeePrices(java.util.List<BundleOrderItemFeePrice> bundleOrderItemFeePrices)
           
 void setDiscreteOrderItems(java.util.List<DiscreteOrderItem> discreteOrderItems)
           
 boolean updatePrices()
           
 
Methods inherited from class org.broadleafcommerce.core.order.domain.OrderItemImpl
addCandidateItemOffer, checkCloneable, clone, getAdjustmentValue, getCandidateItemOffers, getCategory, getGiftWrapOrderItem, getId, getIsDiscounted, getIsOnSale, getName, getOrder, getOrderItemAdjustments, getOrderItemType, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getQuantity, isInCategory, setCandidateItemOffers, setCategory, setGiftWrapOrderItem, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemType, setPersonalMessage, setPrice, setQuantity, setRetailPrice, setSalePrice
 
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, clone, getAdjustmentValue, getCandidateItemOffers, getCategory, getGiftWrapOrderItem, getId, getIsDiscounted, getIsOnSale, getName, getOrder, getOrderItemAdjustments, getOrderItemType, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getQuantity, isInCategory, setCandidateItemOffers, setCategory, setGiftWrapOrderItem, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemType, setPersonalMessage, setPrice, setQuantity, setRetailPrice, setSalePrice
 

Field Detail

discreteOrderItems

protected java.util.List<DiscreteOrderItem> discreteOrderItems

bundleOrderItemFeePrices

protected java.util.List<BundleOrderItemFeePrice> bundleOrderItemFeePrices
Constructor Detail

BundleOrderItemImpl

public BundleOrderItemImpl()
Method Detail

getDiscreteOrderItems

public java.util.List<DiscreteOrderItem> getDiscreteOrderItems()
Specified by:
getDiscreteOrderItems in interface BundleOrderItem

setDiscreteOrderItems

public void setDiscreteOrderItems(java.util.List<DiscreteOrderItem> discreteOrderItems)
Specified by:
setDiscreteOrderItems in interface BundleOrderItem

getBundleOrderItemFeePrices

public java.util.List<BundleOrderItemFeePrice> getBundleOrderItemFeePrices()
Specified by:
getBundleOrderItemFeePrices in interface BundleOrderItem

setBundleOrderItemFeePrices

public void setBundleOrderItemFeePrices(java.util.List<BundleOrderItemFeePrice> bundleOrderItemFeePrices)
Specified by:
setBundleOrderItemFeePrices in interface BundleOrderItem

removeAllCandidateItemOffers

public void removeAllCandidateItemOffers()
Specified by:
removeAllCandidateItemOffers in interface OrderItem
Overrides:
removeAllCandidateItemOffers in class OrderItemImpl

removeAllAdjustments

public int removeAllAdjustments()
Description copied from interface: OrderItem
Removes all adjustment for this order item and reset the adjustment price.

Specified by:
removeAllAdjustments in interface OrderItem
Overrides:
removeAllAdjustments in class OrderItemImpl

assignFinalPrice

public void assignFinalPrice()
Specified by:
assignFinalPrice in interface OrderItem
Overrides:
assignFinalPrice in class OrderItemImpl

getTaxablePrice

public Money getTaxablePrice()
Specified by:
getTaxablePrice in interface BundleOrderItem
Specified by:
getTaxablePrice in interface OrderItem
Overrides:
getTaxablePrice in class OrderItemImpl

getRetailPrice

public Money getRetailPrice()
Specified by:
getRetailPrice in interface OrderItem
Overrides:
getRetailPrice in class OrderItemImpl

getSalePrice

public Money getSalePrice()
Specified by:
getSalePrice in interface OrderItem
Overrides:
getSalePrice in class OrderItemImpl

hasAdjustedItems

public boolean hasAdjustedItems()
Specified by:
hasAdjustedItems in interface BundleOrderItem

getCurrentPrice

public Money getCurrentPrice()
Specified by:
getCurrentPrice in interface OrderItem
Overrides:
getCurrentPrice in class OrderItemImpl

updatePrices

public boolean updatePrices()
Specified by:
updatePrices in interface OrderItem
Overrides:
updatePrices in class OrderItemImpl

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OrderItemImpl

hashCode

public int hashCode()
Overrides:
hashCode in class OrderItemImpl

accept

public void accept(OrderItemVisitor visitor)
            throws PricingException
Specified by:
accept in interface OrderItem
Overrides:
accept in class OrderItemImpl
Throws:
PricingException


Copyright © 2012. All Rights Reserved.