|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CartItemBean
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 |
---|
CartItem getCartItem()
java.util.Currency getCurrency()
java.lang.String getDisplayName()
boolean getHasDependentCartItems()
java.lang.String getListPrice()
java.util.Locale getLocale()
java.lang.String getLowestPrice()
long getParentCartItemUidPk()
java.lang.String getProductBrandName()
java.lang.String getProductSeoUrl()
java.lang.String getSavings()
java.lang.String getTotalPrice()
boolean isLowestLessThanList()
void setCurrency(java.util.Currency currency)
currency
- the currency to setvoid setLocale(java.util.Locale locale)
locale
- the locale to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |