com.elasticpath.domain.shoppingcart.impl
Class ViewHistoryProductImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractTransientImpl
          extended by com.elasticpath.domain.shoppingcart.impl.ViewHistoryProductImpl
All Implemented Interfaces:
EpDomain, ViewHistoryProduct, Transient, java.io.Serializable

public class ViewHistoryProductImpl
extends AbstractTransientImpl
implements ViewHistoryProduct

This represents a product recently viewed by the user.

See Also:
Serialized Form

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

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

ViewHistoryProductImpl

public ViewHistoryProductImpl()
Method Detail

getBrand

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

Specified by:
getBrand in interface ViewHistoryProduct
Returns:
brand the brand of the viewed product.

getImage

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

Specified by:
getImage in interface ViewHistoryProduct
Returns:
String the image of the viewed product.

getLdfMap

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

Specified by:
getLdfMap in interface ViewHistoryProduct
Returns:
a Map of Locale to LocaleDependantFields

getSeoUrl

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

Specified by:
getSeoUrl in interface ViewHistoryProduct
Parameters:
locale - the locale of the SEO URL to be returned
Returns:
the SEO url

getUidPk

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

Specified by:
getUidPk in interface ViewHistoryProduct
Returns:
long the uidPk of the viewed product.

loadProductInfo

public 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.

Specified by:
loadProductInfo in interface ViewHistoryProduct
Parameters:
product - the Product whose information is to be loaded

setBrand

public void setBrand(Brand brand)
Sets the brand for the viewed product.

Parameters:
brand - the brand for the viewed product.

setImage

public void setImage(java.lang.String image)
Sets the image for the viewed product.

Parameters:
image - the image for the viewed product.

setLdfMap

public void setLdfMap(java.util.Map ldfMap)
Sets the ldf for the viewed product.

Parameters:
ldfMap - a Map of Locale to LocaleDependantFields objects

setUidPk

public void setUidPk(long uidPk)
Sets the uidPk for the viewed product.

Parameters:
uidPk - the uidPk for the viewed product.