|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProductViewBean
Represents a bean for product view.
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 interface com.elasticpath.sfweb.viewbean.EpViewBean |
---|
getElasticPath |
Method Detail |
---|
CatalogViewResult getCurrentCatalogViewResult()
Product getProduct()
int getUpdateCartItemQty()
long getUpdateCartItemUid()
java.lang.String getUpdatePage()
isUpdate
is true.
boolean isFromBrowsing()
true
if the product view page is reached from browsing.
true
if the product view page is reached from browsing.boolean isFromSearch()
true
if the product view page is reached from search.
true
if the product view page is reached from search.boolean isUpdate()
void setCurrentCatalogViewResult(CatalogViewResult catalogViewResult)
catalogViewResult
- the current catalog view resultvoid setProduct(Product product)
product
- the productvoid setUpdateCartItemQty(int updateCartItemQty)
updateCartItemQty
- the cart item Qtyvoid setUpdateCartItemUid(long updateCartItemUid)
updateCartItemUid
- the cart item UIDvoid setUpdatePage(java.lang.String updatePage)
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 |