|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 ProductViewBean
public Product getProduct()
getProduct
in interface ProductViewBean
public int getUpdateCartItemQty()
getUpdateCartItemQty
in interface ProductViewBean
public long getUpdateCartItemUid()
getUpdateCartItemUid
in interface ProductViewBean
public java.lang.String getUpdatePage()
isUpdate
is true.
getUpdatePage
in interface ProductViewBean
public boolean isFromBrowsing()
true
if the product view page is reached from browsing.
isFromBrowsing
in interface ProductViewBean
true
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 ProductViewBean
true
if the product view page is reached from search.public boolean isUpdate()
isUpdate
in interface ProductViewBean
public void setCurrentCatalogViewResult(CatalogViewResult catalogViewResult)
setCurrentCatalogViewResult
in interface ProductViewBean
catalogViewResult
- the current catalog view resultpublic void setProduct(Product product)
setProduct
in interface ProductViewBean
product
- the productpublic void setUpdateCartItemQty(int updateCartItemQty)
setUpdateCartItemQty
in interface ProductViewBean
updateCartItemQty
- the cart item Qtypublic void setUpdateCartItemUid(long updateCartItemUid)
setUpdateCartItemUid
in interface ProductViewBean
updateCartItemUid
- the cart item UIDpublic void setUpdatePage(java.lang.String updatePage)
setUpdatePage
in interface ProductViewBean
updatePage
- 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 |