|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.domain.impl.AbstractEpDomainImpl com.elasticpath.domain.impl.AbstractTransientImpl com.elasticpath.domain.shoppingcart.impl.ViewHistoryProductImpl
public class ViewHistoryProductImpl
This represents a product recently viewed by the user.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
ViewHistoryProductImpl()
|
Method Summary | |
---|---|
Brand |
getBrand()
Gets the brand for the viewed product. |
java.lang.String |
getImage()
Gets the image for the viewed product. |
java.util.Map |
getLdfMap()
Gets the ldf for the viewed product. |
java.lang.String |
getSeoUrl(java.util.Locale locale)
Returns the SEO url for the viewed product. |
long |
getUidPk()
Gets the uidPk for the viewed product. |
void |
loadProductInfo(Product product)
Loads product information from the real Product into
this representation of a viewed product. |
void |
setBrand(Brand brand)
Sets the brand for the viewed product. |
void |
setImage(java.lang.String image)
Sets the image for the viewed product. |
void |
setLdfMap(java.util.Map ldfMap)
Sets the ldf for the viewed product. |
void |
setUidPk(long uidPk)
Sets the uidPk for the viewed product. |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public ViewHistoryProductImpl()
Method Detail |
---|
public Brand getBrand()
getBrand
in interface ViewHistoryProduct
brand
the brand of the viewed product.public java.lang.String getImage()
getImage
in interface ViewHistoryProduct
String
the image of the viewed product.public java.util.Map getLdfMap()
getLdfMap
in interface ViewHistoryProduct
Map
of Locale
to LocaleDependantFields
public java.lang.String getSeoUrl(java.util.Locale locale)
getSeoUrl
in interface ViewHistoryProduct
locale
- the locale of the SEO URL to be returned
public long getUidPk()
getUidPk
in interface ViewHistoryProduct
long
the uidPk of the viewed product.public void loadProductInfo(Product product)
Product
into
this representation of a viewed product. To keep this object light-weight,
no reference to the product
is kept.
loadProductInfo
in interface ViewHistoryProduct
product
- the Product
whose information is to be loadedpublic void setBrand(Brand brand)
brand
- the brand for the viewed product.public void setImage(java.lang.String image)
image
- the image for the viewed product.public void setLdfMap(java.util.Map ldfMap)
ldfMap
- a Map of Locale
to LocaleDependantFields
objectspublic void setUidPk(long uidPk)
uidPk
- the uidPk for the viewed product.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |