|
||||||||||
| 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.DiscreteOrderItemImpl
@Entity public class DiscreteOrderItemImpl
| Nested Class Summary | |
|---|---|
static class |
DiscreteOrderItemImpl.Presentation
|
| Field Summary | |
|---|---|
protected Map<String,String> |
additionalAttributes
Deprecated. |
protected BigDecimal |
baseRetailPrice
|
protected BigDecimal |
baseSalePrice
|
protected BundleOrderItem |
bundleOrderItem
|
protected List<DiscreteOrderItemFeePrice> |
discreteOrderItemFeePrices
|
protected Product |
product
|
protected Sku |
sku
|
protected SkuBundleItem |
skuBundleItem
|
| 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 | |
|---|---|
DiscreteOrderItemImpl()
|
|
| Method Summary | |
|---|---|
OrderItem |
clone()
|
protected Money |
convertToMoney(BigDecimal amount)
|
boolean |
equals(Object obj)
|
BundleOrderItem |
findParentItem()
For items that are part of a bundle, this method will return the parent bundle item. |
Map<String,String> |
getAdditionalAttributes()
Arbitrary attributes associated with the order item |
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()
|
String |
getName()
Generally copied from the Sku.getName() |
Order |
getOrder()
Reference back to the containing order. |
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. |
int |
hashCode()
|
boolean |
isDiscountingAllowed()
If true, this item can be discounted.. |
boolean |
isSkuActive()
Returns a boolean indicating whether this sku is active. |
Boolean |
isTaxable()
Returns whether or not this item is taxable. |
void |
setAdditionalAttributes(Map<String,String> additionalAttributes)
Arbitrary attributes associated with the order item |
void |
setBaseRetailPrice(Money baseRetailPrice)
|
void |
setBaseSalePrice(Money baseSalePrice)
|
void |
setBundleOrderItem(BundleOrderItem bundleOrderItem)
Sets the parent bundle item. |
void |
setDiscreteOrderItemFeePrices(List<DiscreteOrderItemFeePrice> discreteOrderItemFeePrices)
|
void |
setOrder(Order order)
Sets the order for this orderItem. |
void |
setProduct(Product product)
|
void |
setSku(Sku sku)
|
void |
setSkuBundleItem(SkuBundleItem SkuBundleItem)
Sets the associated SkuBundleItem. |
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 |
| Methods inherited from interface org.broadleafcommerce.core.order.domain.DiscreteOrderItem |
|---|
getTaxablePrice |
| Field Detail |
|---|
protected BigDecimal baseRetailPrice
protected BigDecimal baseSalePrice
protected Sku sku
protected Product product
protected BundleOrderItem bundleOrderItem
protected SkuBundleItem skuBundleItem
@Deprecated protected Map<String,String> additionalAttributes
protected List<DiscreteOrderItemFeePrice> discreteOrderItemFeePrices
| Constructor Detail |
|---|
public DiscreteOrderItemImpl()
| Method Detail |
|---|
public Sku getSku()
getSku in interface DiscreteOrderItemgetSku in interface SkuAccessorpublic void setSku(Sku sku)
setSku in interface DiscreteOrderItempublic Boolean isTaxable()
OrderItem
isTaxable in interface OrderItemisTaxable in class OrderItemImplpublic Product getProduct()
getProduct in interface DiscreteOrderItempublic void setProduct(Product product)
setProduct in interface DiscreteOrderItempublic BundleOrderItem getBundleOrderItem()
DiscreteOrderItem
getBundleOrderItem in interface DiscreteOrderItempublic void setBundleOrderItem(BundleOrderItem bundleOrderItem)
DiscreteOrderItem
setBundleOrderItem in interface DiscreteOrderItempublic void setOrder(Order order)
OrderItem
setOrder in interface OrderItemsetOrder in class OrderItemImplpublic SkuBundleItem getSkuBundleItem()
getSkuBundleItem in interface DiscreteOrderItempublic void setSkuBundleItem(SkuBundleItem SkuBundleItem)
setSkuBundleItem in interface DiscreteOrderItemSkuBundleItem - public String getName()
OrderItem
getName in interface OrderItemgetName in class OrderItemImplpublic Order getOrder()
OrderItem
getOrder in interface OrderItemgetOrder in class OrderItemImplpublic boolean updateSaleAndRetailPrices()
OrderItem
updateSaleAndRetailPrices in interface OrderItemupdateSaleAndRetailPrices in class OrderItemImplpublic Map<String,String> getAdditionalAttributes()
DiscreteOrderItem
getAdditionalAttributes in interface DiscreteOrderItempublic void setAdditionalAttributes(Map<String,String> additionalAttributes)
DiscreteOrderItem
setAdditionalAttributes in interface DiscreteOrderItemadditionalAttributes - the map of attributespublic Money getBaseRetailPrice()
getBaseRetailPrice in interface DiscreteOrderItempublic void setBaseRetailPrice(Money baseRetailPrice)
setBaseRetailPrice in interface DiscreteOrderItempublic Money getBaseSalePrice()
getBaseSalePrice in interface DiscreteOrderItempublic void setBaseSalePrice(Money baseSalePrice)
setBaseSalePrice in interface DiscreteOrderItempublic List<DiscreteOrderItemFeePrice> getDiscreteOrderItemFeePrices()
getDiscreteOrderItemFeePrices in interface DiscreteOrderItempublic void setDiscreteOrderItemFeePrices(List<DiscreteOrderItemFeePrice> discreteOrderItemFeePrices)
setDiscreteOrderItemFeePrices in interface DiscreteOrderItemprotected Money convertToMoney(BigDecimal amount)
convertToMoney in class OrderItemImplpublic OrderItem clone()
clone in interface OrderItemclone in class OrderItemImplpublic boolean equals(Object obj)
equals in class OrderItemImplpublic int hashCode()
hashCode in class OrderItemImplpublic boolean isDiscountingAllowed()
OrderItem
isDiscountingAllowed in interface OrderItemisDiscountingAllowed in class OrderItemImplpublic BundleOrderItem findParentItem()
DiscreteOrderItem
findParentItem in interface DiscreteOrderItempublic boolean isSkuActive()
OrderItem
isSkuActive in interface DiscreteOrderItemisSkuActive in interface OrderItemisSkuActive in class OrderItemImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||