Class BundleOrderItemImpl
- All Implemented Interfaces:
Serializable,Cloneable,AdminMainEntity,MultiTenantCloneable<OrderItem>,CurrencyCodeIdentifiable,BundleOrderItem,OrderItem,OrderItemContainer,SkuAccessor
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimalDeprecated.protected BigDecimalDeprecated.protected List<BundleOrderItemFeePrice>Deprecated.protected ProductBundleDeprecated.protected SkuDeprecated.protected List<DiscreteOrderItem>Deprecated.protected ProductBundleDeprecated.protected SkuDeprecated.Fields inherited from class org.broadleafcommerce.core.order.domain.OrderItemImpl
auditable, candidateItemOffers, cartMessages, category, childOrderItems, deproxiedCategory, discountsAllowed, giftWrapOrderItem, hasValidationError, id, itemTaxable, name, order, orderItemAdjustments, orderItemAttributeMap, orderItemPriceDetails, orderItemQualifiers, orderItemType, parentOrderItem, personalMessage, price, proratedOrderItemAdjustments, quantity, retailPrice, retailPriceOverride, salePrice, salePriceOverride, totalTaxFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated.protected MoneyconvertToMoney(BigDecimal amount) Deprecated.Deprecated.booleanDeprecated.booleanDeprecated.Returns true if the contained items can be discounted.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Same as getProductBundle.Deprecated.Returns the associated ProductBundle or null if not applicable.Deprecated.The retail price of the item that was added to theOrderat the time that this was added.Deprecated.Returns the salePrice for this item.getSku()Deprecated.For BundleOrderItem created from a ProductBundle, this will represent the default sku of the product bundle.Deprecated.Deprecated.Returns the total price to be paid for this order item including item-level adjustments.booleanDeprecated.inthashCode()Deprecated.booleanDeprecated.If true, this item can be discounted..booleanDeprecated.Returns true if pricing operations are at the container level (as opposed to being the sum of the contained items)booleanDeprecated.Returns a boolean indicating whether this sku is active.Deprecated.Returns whether or not this item is taxable.voidsetBaseRetailPrice(Money baseRetailPrice) Deprecated.voidsetBaseSalePrice(Money baseSalePrice) Deprecated.voidsetBundleOrderItemFeePrices(List<BundleOrderItemFeePrice> bundleOrderItemFeePrices) Deprecated.voidsetDiscreteOrderItems(List<DiscreteOrderItem> discreteOrderItems) Deprecated.voidsetProductBundle(ProductBundle productBundle) Deprecated.Sets the ProductBundle associated with this BundleOrderItem.voidDeprecated.booleanDeprecated.booleanDeprecated.Used to reset the base price of the item that the pricing engine uses.Methods inherited from class org.broadleafcommerce.core.order.domain.OrderItemImpl
addCandidateItemOffer, assignFinalPrice, checkCloneable, convertOrderItemType, finalizePrice, getAdjustmentValue, getAuditable, getAverageAdjustmentValue, getAveragePrice, getCandidateItemOffers, getCartMessages, getCategory, getChildOrderItems, getCurrencyCode, getFutureCreditTotalAdjustmentValue, getFutureCreditTotalAdjustmentValue, getGiftWrapOrderItem, getHasValidationError, getId, getIsDiscounted, getIsOnSale, getMainEntityName, getName, getOrder, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemPriceDetails, getOrderItemQualifiers, getOrderItemType, getParentOrderItem, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getPriceBeforeAdjustments, getProratedOrderItemAdjustments, getQuantity, getTotalAdjustmentValue, getTotalAdjustmentValue, getTotalPrice, getTotalPriceBeforeAdjustments, isAParentOf, isChildOrderItem, isInCategory, isRetailPriceOverride, isSalePriceOverride, removeAllAdjustments, removeAllCandidateItemOffers, setAuditable, setCandidateItemOffers, setCartMessages, setCategory, setChildOrderItems, setDiscountingAllowed, setGiftWrapOrderItem, setHasValidationError, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemPriceDetails, setOrderItemQualifiers, setOrderItemType, setParentOrderItem, setPersonalMessage, setPrice, setProratedOrderItemAdjustments, setQuantity, setRetailPrice, setRetailPriceOverride, setSalePrice, setSalePriceOverride, setTaxable, shouldSumChildrenMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.core.order.domain.OrderItem
addCandidateItemOffer, assignFinalPrice, finalizePrice, getAdjustmentValue, getAuditable, getAverageAdjustmentValue, getAveragePrice, getCandidateItemOffers, getCartMessages, getCategory, getChildOrderItems, getFutureCreditTotalAdjustmentValue, getFutureCreditTotalAdjustmentValue, getGiftWrapOrderItem, getHasValidationError, getId, getIsDiscounted, getIsOnSale, getName, getOrder, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemPriceDetails, getOrderItemQualifiers, getOrderItemType, getParentOrderItem, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getPriceBeforeAdjustments, getProratedOrderItemAdjustments, getQuantity, getTotalAdjustmentValue, getTotalAdjustmentValue, getTotalPrice, getTotalPriceBeforeAdjustments, isAParentOf, isChildOrderItem, isInCategory, isRetailPriceOverride, isSalePriceOverride, removeAllAdjustments, removeAllCandidateItemOffers, setAuditable, setCandidateItemOffers, setCartMessages, setCategory, setChildOrderItems, setDiscountingAllowed, setGiftWrapOrderItem, setHasValidationError, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemPriceDetails, setOrderItemQualifiers, setOrderItemType, setParentOrderItem, setPersonalMessage, setPrice, setProratedOrderItemAdjustments, setQuantity, setRetailPrice, setRetailPriceOverride, setSalePrice, setSalePriceOverride, setTaxable
-
Field Details
-
discreteOrderItems
Deprecated. -
bundleOrderItemFeePrices
Deprecated. -
baseRetailPrice
Deprecated. -
baseSalePrice
Deprecated. -
sku
Deprecated. -
productBundle
Deprecated. -
deproxiedSku
Deprecated. -
deproxiedProductBundle
Deprecated.
-
-
Constructor Details
-
BundleOrderItemImpl
public BundleOrderItemImpl()Deprecated.
-
-
Method Details
-
getSku
Deprecated.Description copied from interface:BundleOrderItemFor BundleOrderItem created from a ProductBundle, this will represent the default sku of the product bundle.This can be null for implementations that programatically create product bundles.
- Specified by:
getSkuin interfaceBundleOrderItem- Specified by:
getSkuin interfaceSkuAccessor
-
setSku
Deprecated.- Specified by:
setSkuin interfaceBundleOrderItem
-
getProductBundle
Deprecated.Description copied from interface:BundleOrderItemReturns the associated ProductBundle or null if not applicable.If null, then this ProductBundle was manually created.
- Specified by:
getProductBundlein interfaceBundleOrderItem- Returns:
-
setProductBundle
Deprecated.Description copied from interface:BundleOrderItemSets the ProductBundle associated with this BundleOrderItem.- Specified by:
setProductBundlein interfaceBundleOrderItem
-
getOrderItems
Deprecated.- Specified by:
getOrderItemsin interfaceOrderItemContainer
-
getAllowDiscountsOnChildItems
public boolean getAllowDiscountsOnChildItems()Deprecated.Description copied from interface:OrderItemContainerReturns true if the contained items can be discounted.- Specified by:
getAllowDiscountsOnChildItemsin interfaceOrderItemContainer- Returns:
-
isPricingAtContainerLevel
public boolean isPricingAtContainerLevel()Deprecated.Description copied from interface:OrderItemContainerReturns true if pricing operations are at the container level (as opposed to being the sum of the contained items)- Specified by:
isPricingAtContainerLevelin interfaceOrderItemContainer- Returns:
-
isDiscountingAllowed
public boolean isDiscountingAllowed()Deprecated.Description copied from interface:OrderItemIf true, this item can be discounted..- Specified by:
isDiscountingAllowedin interfaceOrderItem- Overrides:
isDiscountingAllowedin classOrderItemImpl
-
getDiscreteOrderItems
Deprecated.- Specified by:
getDiscreteOrderItemsin interfaceBundleOrderItem
-
setDiscreteOrderItems
Deprecated.- Specified by:
setDiscreteOrderItemsin interfaceBundleOrderItem
-
getBundleOrderItemFeePrices
Deprecated.- Specified by:
getBundleOrderItemFeePricesin interfaceBundleOrderItem
-
setBundleOrderItemFeePrices
Deprecated.- Specified by:
setBundleOrderItemFeePricesin interfaceBundleOrderItem
-
getTaxablePrice
Deprecated.- Specified by:
getTaxablePricein interfaceBundleOrderItem- Specified by:
getTaxablePricein interfaceOrderItem- Overrides:
getTaxablePricein classOrderItemImpl- Returns:
-
isTaxable
Deprecated.Description copied from interface:OrderItemReturns whether or not this item is taxable. If this flag is not set, it returns true by default- Specified by:
isTaxablein interfaceOrderItem- Overrides:
isTaxablein classOrderItemImpl- Returns:
- the taxable flag. If null, returns true
-
shouldSumItems
public boolean shouldSumItems()Deprecated.- Specified by:
shouldSumItemsin interfaceBundleOrderItem
-
getRetailPrice
Deprecated.Description copied from interface:OrderItemThe retail price of the item that was added to theOrderat 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 inDiscreteOrderItem, usingDiscreteOrderItem.getSku()'s retail price) since the price in the catalog domain could have changed since the item was added to theOrder.- Specified by:
getRetailPricein interfaceOrderItem- Overrides:
getRetailPricein classOrderItemImpl- Returns:
-
getSalePrice
Deprecated.Description copied from interface:OrderItemReturns the salePrice for this item. Note this method will return the lower of the retailPrice or salePrice. It will return the retailPrice instead of null.For SKU based pricing, a call to
OrderItem.updateSaleAndRetailPrices()will ensure that the retailPrice being used is current.- Specified by:
getSalePricein interfaceOrderItem- Overrides:
getSalePricein classOrderItemImpl- Returns:
-
getBaseRetailPrice
Deprecated.- Specified by:
getBaseRetailPricein interfaceBundleOrderItem
-
setBaseRetailPrice
Deprecated.- Specified by:
setBaseRetailPricein interfaceBundleOrderItem
-
getBaseSalePrice
Deprecated.- Specified by:
getBaseSalePricein interfaceBundleOrderItem
-
setBaseSalePrice
Deprecated.- Specified by:
setBaseSalePricein interfaceBundleOrderItem
-
hasAdjustedItems
public boolean hasAdjustedItems()Deprecated.- Specified by:
hasAdjustedItemsin interfaceBundleOrderItem
-
updateSaleAndRetailPrices
public boolean updateSaleAndRetailPrices()Deprecated.Description copied from interface:OrderItemUsed to reset the base price of the item that the pricing engine uses.Generally, this will update the retailPrice and salePrice based on the corresponding value in the SKU.
If the retail or sale price was manually set, this method will not change those prices.
For non-manually set prices, prices can change based on system activities such as locale changes and customer authentication, this method is used to ensure that all cart items reflect the current base price before executing other pricing / adjustment operations.
Other known scenarios that can effect the base prices include the automatic bundling or loading a stale cart from the database.
See notes in subclasses for specific behavior of this method.
- Specified by:
updateSaleAndRetailPricesin interfaceOrderItem- Overrides:
updateSaleAndRetailPricesin classOrderItemImpl- Returns:
- true if the base prices changed as a result of this call
-
equals
Deprecated.- Overrides:
equalsin classOrderItemImpl
-
getProduct
Deprecated.Description copied from interface:BundleOrderItemSame as getProductBundle.- Specified by:
getProductin interfaceBundleOrderItem
-
convertToMoney
Deprecated.- Overrides:
convertToMoneyin classOrderItemImpl
-
getTotalPrice
Deprecated.Description copied from interface:OrderItemReturns the total price to be paid for this order item including item-level adjustments.It does not include the effect of order level adjustments. Calculated by looping through the orderItemPriceDetails
- Specified by:
getTotalPricein interfaceOrderItem- Overrides:
getTotalPricein classOrderItemImpl- Returns:
-
isSkuActive
public boolean isSkuActive()Deprecated.Description copied from interface:OrderItemReturns 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:
isSkuActivein interfaceOrderItem- Overrides:
isSkuActivein classOrderItemImpl
-
clone
Deprecated.- Specified by:
clonein interfaceOrderItem- Overrides:
clonein classOrderItemImpl
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classOrderItemImpl
-
createOrRetrieveCopyInstance
public CreateResponse<BundleOrderItem> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException Deprecated.- Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<OrderItem>- Overrides:
createOrRetrieveCopyInstancein classOrderItemImpl- Throws:
CloneNotSupportedException
-