com.elasticpath.sfweb.ajax.bean.impl
Class GuidedSkuSelectionBeanImpl

java.lang.Object
  extended by com.elasticpath.sfweb.ajax.bean.impl.GuidedSkuSelectionBeanImpl
All Implemented Interfaces:
GuidedSkuSelectionBean

public class GuidedSkuSelectionBeanImpl
extends java.lang.Object
implements GuidedSkuSelectionBean

This bean is used for transfering data to the client from the SkuConfigurationService.


Constructor Summary
GuidedSkuSelectionBeanImpl()
           
 
Method Summary
 java.lang.String getDollarSavings()
          Calculates the savings if the price has a discount.
 java.lang.String getImageUrl()
          Get the path to the image to be displayed.
 java.lang.String getListPrice()
          Get the skus's list price.
 java.lang.String getLowestPrice()
          Returns the lowest of the price values specified .
 java.lang.String[] getPriceTierContents()
          Get the price tier contents as the String Array to be diplayed.
 ProductSku getProductSku()
          Get the ProductSku.
 boolean isLowestLessThanList()
          Check if the lowest price is less than the list price, i.e.
 void setDollarSavings(java.lang.String dollarSavings)
          Set the sku's dollar savings.
 void setImageUrl(java.lang.String imageUrl)
          Set the path to the image to be displayed.
 void setListPrice(java.lang.String listPrice)
          Set the sku's list price.
 void setLowestLessThanList(boolean isLowestLessThanList)
          Sets if the sku's lowest price is less than the list price.
 void setLowestPrice(java.lang.String lowestPrice)
          Set the sku's lowest price.
 void setPriceTierContents(java.lang.String[] priceTierContents)
          Set the price tier contents as the String Array to be diplayed.
 void setProductSku(ProductSku productSku)
          Set the ProductSku.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuidedSkuSelectionBeanImpl

public GuidedSkuSelectionBeanImpl()
Method Detail

getDollarSavings

public java.lang.String getDollarSavings()
Calculates the savings if the price has a discount.

Specified by:
getDollarSavings in interface GuidedSkuSelectionBean
Returns:
the price savings

getImageUrl

public java.lang.String getImageUrl()
Get the path to the image to be displayed.

Specified by:
getImageUrl in interface GuidedSkuSelectionBean
Returns:
the path to the image to be displayed

getListPrice

public java.lang.String getListPrice()
Get the skus's list price.

Specified by:
getListPrice in interface GuidedSkuSelectionBean
Returns:
the list price as a MoneyImpl

getLowestPrice

public java.lang.String getLowestPrice()
Returns the lowest of the price values specified .

Specified by:
getLowestPrice in interface GuidedSkuSelectionBean
Returns:
the lowest price

getPriceTierContents

public java.lang.String[] getPriceTierContents()
Get the price tier contents as the String Array to be diplayed.

Specified by:
getPriceTierContents in interface GuidedSkuSelectionBean
Returns:
the formated price tier contents

getProductSku

public ProductSku getProductSku()
Get the ProductSku.

Specified by:
getProductSku in interface GuidedSkuSelectionBean
Returns:
the ProductSku

isLowestLessThanList

public boolean isLowestLessThanList()
Check if the lowest price is less than the list price, i.e. the price has a discount.

Specified by:
isLowestLessThanList in interface GuidedSkuSelectionBean
Returns:
true if the price has a lower price than the list price.

setDollarSavings

public void setDollarSavings(java.lang.String dollarSavings)
Set the sku's dollar savings.

Specified by:
setDollarSavings in interface GuidedSkuSelectionBean
Parameters:
dollarSavings - the sku's dollar savings

setImageUrl

public void setImageUrl(java.lang.String imageUrl)
Set the path to the image to be displayed.

Specified by:
setImageUrl in interface GuidedSkuSelectionBean
Parameters:
imageUrl - the path to the image to be displayed

setListPrice

public void setListPrice(java.lang.String listPrice)
Set the sku's list price.

Specified by:
setListPrice in interface GuidedSkuSelectionBean
Parameters:
listPrice - the sku's list price

setLowestLessThanList

public void setLowestLessThanList(boolean isLowestLessThanList)
Sets if the sku's lowest price is less than the list price.

Specified by:
setLowestLessThanList in interface GuidedSkuSelectionBean
Parameters:
isLowestLessThanList - true if the price has a lower price than the list price.

setLowestPrice

public void setLowestPrice(java.lang.String lowestPrice)
Set the sku's lowest price.

Specified by:
setLowestPrice in interface GuidedSkuSelectionBean
Parameters:
lowestPrice - the sku's lowest price

setPriceTierContents

public void setPriceTierContents(java.lang.String[] priceTierContents)
Set the price tier contents as the String Array to be diplayed.

Specified by:
setPriceTierContents in interface GuidedSkuSelectionBean
Parameters:
priceTierContents - the formated price tier contents to be displayed.

setProductSku

public void setProductSku(ProductSku productSku)
Set the ProductSku.

Specified by:
setProductSku in interface GuidedSkuSelectionBean
Parameters:
productSku - the ProductSku