org.broadleafcommerce.core.order.domain
Interface DiscreteOrderItem

All Superinterfaces:
Cloneable, OrderItem, Serializable, SkuAccessor
All Known Subinterfaces:
DynamicPriceDiscreteOrderItem, GiftWrapOrderItem
All Known Implementing Classes:
DiscreteOrderItemImpl, DynamicPriceDiscreteOrderItemImpl, GiftWrapOrderItemImpl

public interface DiscreteOrderItem
extends OrderItem, SkuAccessor, Cloneable


Method Summary
 BundleOrderItem findParentItem()
          For items that are part of a bundle, this method will return the parent bundle item.
 Map<String,String> getAdditionalAttributes()
          Deprecated. use getOrderItemAttributes instead
 Money getBaseRetailPrice()
           
 Money getBaseSalePrice()
           
 BundleOrderItem getBundleOrderItem()
          If this item is part of a bundle, this method will return the containing bundle item.
 List<DiscreteOrderItemFeePrice> getDiscreteOrderItemFeePrices()
           
 Product getProduct()
           
 Sku getSku()
           
 SkuBundleItem getSkuBundleItem()
          If this item is part of a bundle that was created via a ProductBundle, then this method returns a reference to the corresponding SkuBundleItem.
 Money getTaxablePrice()
           
 boolean isSkuActive()
          Returns a boolean indicating whether this sku is active.
 void setAdditionalAttributes(Map<String,String> additionalAttributes)
          Deprecated. use setOrderItemAttributes instead
 void setBaseRetailPrice(Money baseRetailPrice)
           
 void setBaseSalePrice(Money baseSalePrice)
           
 void setBundleOrderItem(BundleOrderItem bundleOrderItem)
          Sets the parent bundle item.
 void setDiscreteOrderItemFeePrices(List<DiscreteOrderItemFeePrice> orderItemFeePrices)
           
 void setProduct(Product product)
           
 void setSku(Sku sku)
           
 void setSkuBundleItem(SkuBundleItem skuBundleItem)
          Sets the associated skuBundleItem.
 
Methods inherited from interface org.broadleafcommerce.core.order.domain.OrderItem
addCandidateItemOffer, assignFinalPrice, clone, finalizePrice, getAdjustmentValue, getAverageAdjustmentValue, getAveragePrice, getCandidateItemOffers, getCategory, getGiftWrapOrderItem, getId, getIsDiscounted, getIsOnSale, getName, getOrder, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemPriceDetails, getOrderItemQualifiers, getOrderItemType, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getQuantity, getRetailPrice, getSalePrice, getTotalAdjustmentValue, getTotalPrice, getTotalPriceBeforeAdjustments, isDiscountingAllowed, isInCategory, isRetailPriceOverride, isSalePriceOverride, isTaxable, removeAllAdjustments, removeAllCandidateItemOffers, setCandidateItemOffers, setCategory, setDiscountingAllowed, setGiftWrapOrderItem, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemPriceDetails, setOrderItemQualifiers, setOrderItemType, setPersonalMessage, setPrice, setQuantity, setRetailPrice, setRetailPriceOverride, setSalePrice, setSalePriceOverride, setTaxable, updateSaleAndRetailPrices
 

Method Detail

getSku

Sku getSku()
Specified by:
getSku in interface SkuAccessor

setSku

void setSku(Sku sku)

getProduct

Product getProduct()

setProduct

void setProduct(Product product)

getBundleOrderItem

BundleOrderItem getBundleOrderItem()
If this item is part of a bundle, this method will return the containing bundle item.

Returns:

setBundleOrderItem

void setBundleOrderItem(BundleOrderItem bundleOrderItem)
Sets the parent bundle item. Setting to null removes this item from the bundle.

Parameters:
bundleOrderItem -

getSkuBundleItem

SkuBundleItem getSkuBundleItem()
If this item is part of a bundle that was created via a ProductBundle, then this method returns a reference to the corresponding SkuBundleItem. For manually created For all others, this method returns null.

Returns:

setSkuBundleItem

void setSkuBundleItem(SkuBundleItem skuBundleItem)
Sets the associated skuBundleItem.

Parameters:
skuBundleItem -

getTaxablePrice

Money getTaxablePrice()
Specified by:
getTaxablePrice in interface OrderItem
Returns:

getAdditionalAttributes

Map<String,String> getAdditionalAttributes()
Deprecated. use getOrderItemAttributes instead

Arbitrary attributes associated with the order item

Returns:
the attributes

setAdditionalAttributes

void setAdditionalAttributes(Map<String,String> additionalAttributes)
Deprecated. use setOrderItemAttributes instead

Arbitrary attributes associated with the order item

Parameters:
additionalAttributes - the map of attributes

getBaseRetailPrice

Money getBaseRetailPrice()

setBaseRetailPrice

void setBaseRetailPrice(Money baseRetailPrice)

getBaseSalePrice

Money getBaseSalePrice()

setBaseSalePrice

void setBaseSalePrice(Money baseSalePrice)

getDiscreteOrderItemFeePrices

List<DiscreteOrderItemFeePrice> getDiscreteOrderItemFeePrices()

setDiscreteOrderItemFeePrices

void setDiscreteOrderItemFeePrices(List<DiscreteOrderItemFeePrice> orderItemFeePrices)

findParentItem

BundleOrderItem findParentItem()
For items that are part of a bundle, this method will return the parent bundle item. Otherwise, returns null.

Returns:

isSkuActive

boolean isSkuActive()
Returns a boolean indicating whether this sku is active. This is used to determine whether a user the sku can add the sku to their cart.

Specified by:
isSkuActive in interface OrderItem


Copyright © 2013. All Rights Reserved.