com.elasticpath.sfweb.ajax.bean
Interface CartItemBean

All Superinterfaces:
CartItem, EpDomain, Persistence, java.io.Serializable, ValueObject
All Known Implementing Classes:
CartItemBeanImpl

public interface CartItemBean
extends CartItem

This bean is used for wrapping the CartItem objects into localized versions for dwr.


Method Summary
 CartItem getCartItem()
           
 java.util.Currency getCurrency()
           
 java.lang.String getDisplayName()
          Convenience method for getting the product's localized display name.
 boolean getHasDependentCartItems()
          Returns true if this CartItem has other cart items that depend on it such that the dependent items cannot exist in the cart on their own.
 java.lang.String getListPrice()
          Convenience method for getting the ProductSku list price.
 java.util.Locale getLocale()
           
 java.lang.String getLowestPrice()
          Convenience method for getting the lowest ProductSku price.
 long getParentCartItemUidPk()
          Get the uidPk of the parent cart item that this cart item is dependent on.
 java.lang.String getProductBrandName()
          Convenience method for getting the product's seo url.
 java.lang.String getProductSeoUrl()
          Convenience method for getting the product's seo url.
 java.lang.String getSavings()
          Convenience method for getting the amount of money saved.
 java.lang.String getTotalPrice()
          Convenience method for getting the amount without needing to pass in the currency.
 boolean isLowestLessThanList()
          Convenience method for checking if item is on sale.
 void setCurrency(java.util.Currency currency)
           
 void setLocale(java.util.Locale locale)
           
 
Methods inherited from interface com.elasticpath.domain.shoppingcart.CartItem
addDependentCartItem, applyDiscount, clearDiscount, getAmount, getAmountMoney, getDependentCartItems, getParentCartItem, getProductSku, getQuantity, getType, hasDependentCartItem, hasDependentCartItems, hasSufficientInventory, isDependent, setDependentCartItems, setParentCartItem, setProductSku, setQuantity, setType
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Method Detail

getCartItem

CartItem getCartItem()
Returns:
the cart item

getCurrency

java.util.Currency getCurrency()
Returns:
the currency

getDisplayName

java.lang.String getDisplayName()
Convenience method for getting the product's localized display name.

Returns:
the localized product name

getHasDependentCartItems

boolean getHasDependentCartItems()
Returns true if this CartItem has other cart items that depend on it such that the dependent items cannot exist in the cart on their own.

Returns:
true if this CartItem has other cart items that depend on it.

getListPrice

java.lang.String getListPrice()
Convenience method for getting the ProductSku list price. Originally created for dwr One Page integration.

Returns:
the Money object representing the list price

getLocale

java.util.Locale getLocale()
Returns:
the locale

getLowestPrice

java.lang.String getLowestPrice()
Convenience method for getting the lowest ProductSku price. Originally created for dwr One Page integration.

Returns:
the Money object representing the lowest price

getParentCartItemUidPk

long getParentCartItemUidPk()
Get the uidPk of the parent cart item that this cart item is dependent on. Returns 0 if this cart item does not depend on another.

Returns:
the uidPk of the parent cart item or 0 if there is no parent.

getProductBrandName

java.lang.String getProductBrandName()
Convenience method for getting the product's seo url. Originally created for dwr One Page integration.

Returns:
the seo url string

getProductSeoUrl

java.lang.String getProductSeoUrl()
Convenience method for getting the product's seo url. Originally created for dwr One Page integration.

Returns:
the seo url string

getSavings

java.lang.String getSavings()
Convenience method for getting the amount of money saved. Originally created for dwr One Page integration.

Returns:
the Money object representing the amount of money saved

getTotalPrice

java.lang.String getTotalPrice()
Convenience method for getting the amount without needing to pass in the currency. Originally created for dwr One Page integration.

Returns:
the String object representing the amount

isLowestLessThanList

boolean isLowestLessThanList()
Convenience method for checking if item is on sale. Originally created for dwr One Page integration.

Returns:
is item is on sale or not

setCurrency

void setCurrency(java.util.Currency currency)
Parameters:
currency - the currency to set

setLocale

void setLocale(java.util.Locale locale)
Parameters:
locale - the locale to set