|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.sfweb.viewbean.impl.EpViewBeanImpl
com.elasticpath.sfweb.viewbean.impl.ProductViewBeanImpl
public class ProductViewBeanImpl
Represents a bean for catalog view.
| Constructor Summary | |
|---|---|
ProductViewBeanImpl()
|
|
| Method Summary | |
|---|---|
CatalogViewResult |
getCurrentCatalogViewResult()
Returns the current catalog view result. |
Product |
getProduct()
Get the product to be displayed. |
int |
getUpdateCartItemQty()
Get the Qty of the cart item being updated. |
long |
getUpdateCartItemUid()
Get the UID of the cart item being updated. |
java.lang.String |
getUpdatePage()
Returns the page that is being updated if isUpdate is true. |
boolean |
isFromBrowsing()
Returns true if the product view page is reached from browsing. |
boolean |
isFromSearch()
Returns true if the product view page is reached from search. |
boolean |
isUpdate()
Returns true if the product is being displayed for updating rather than the initial add to cart. |
void |
setCurrentCatalogViewResult(CatalogViewResult catalogViewResult)
Sets the current catalog view result. |
void |
setProduct(Product product)
Set the product to be displayed. |
void |
setUpdateCartItemQty(int updateCartItemQty)
Set the Qty of the cart item to be updated. |
void |
setUpdateCartItemUid(long updateCartItemUid)
Set the UID of the cart item to be updated. |
void |
setUpdatePage(java.lang.String updatePage)
Set the page that is being updated. |
| Methods inherited from class com.elasticpath.sfweb.viewbean.impl.EpViewBeanImpl |
|---|
getElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.sfweb.viewbean.EpViewBean |
|---|
getElasticPath |
| Constructor Detail |
|---|
public ProductViewBeanImpl()
| Method Detail |
|---|
public CatalogViewResult getCurrentCatalogViewResult()
getCurrentCatalogViewResult in interface ProductViewBeanpublic Product getProduct()
getProduct in interface ProductViewBeanpublic int getUpdateCartItemQty()
getUpdateCartItemQty in interface ProductViewBeanpublic long getUpdateCartItemUid()
getUpdateCartItemUid in interface ProductViewBeanpublic java.lang.String getUpdatePage()
isUpdate is true.
getUpdatePage in interface ProductViewBeanpublic boolean isFromBrowsing()
true if the product view page is reached from browsing.
isFromBrowsing in interface ProductViewBeantrue if the product view page is reached from browsing.public boolean isFromSearch()
true if the product view page is reached from search.
isFromSearch in interface ProductViewBeantrue if the product view page is reached from search.public boolean isUpdate()
isUpdate in interface ProductViewBeanpublic void setCurrentCatalogViewResult(CatalogViewResult catalogViewResult)
setCurrentCatalogViewResult in interface ProductViewBeancatalogViewResult - the current catalog view resultpublic void setProduct(Product product)
setProduct in interface ProductViewBeanproduct - the productpublic void setUpdateCartItemQty(int updateCartItemQty)
setUpdateCartItemQty in interface ProductViewBeanupdateCartItemQty - the cart item Qtypublic void setUpdateCartItemUid(long updateCartItemUid)
setUpdateCartItemUid in interface ProductViewBeanupdateCartItemUid - the cart item UIDpublic void setUpdatePage(java.lang.String updatePage)
setUpdatePage in interface ProductViewBeanupdatePage - the page being updated, use a constant in WebConstants
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||