com.elasticpath.domain.shoppingcart
Interface ViewHistoryProduct

All Superinterfaces:
EpDomain, java.io.Serializable, Transient
All Known Implementing Classes:
ViewHistoryProductImpl

public interface ViewHistoryProduct
extends Transient

This class represents a product recently viewed by a user.


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.
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Method Detail

getBrand

Brand getBrand()
Gets the brand for the viewed product.

Returns:
brand the brand of the viewed product.

getImage

java.lang.String getImage()
Gets the image for the viewed product.

Returns:
String the image of the viewed product.

getLdfMap

java.util.Map getLdfMap()
Gets the ldf for the viewed product.

Returns:
a Map of Locale to LocaleDependantFields

getSeoUrl

java.lang.String getSeoUrl(java.util.Locale locale)
Returns the SEO url for the viewed product.

Parameters:
locale - the locale of the SEO URL to be returned
Returns:
the SEO url

getUidPk

long getUidPk()
Gets the uidPk for the viewed product.

Returns:
long the uidPk of the viewed product.

loadProductInfo

void loadProductInfo(Product product)
Loads product information from the real Product into this representation of a viewed product. To keep this object light-weight, no reference to the product is kept.

Parameters:
product - the Product whose information is to be loaded