com.elasticpath.cmweb.ajaxbean.impl
Class ProductInfoAjaxBeanImpl

java.lang.Object
  extended by com.elasticpath.cmweb.ajaxbean.impl.ProductInfoAjaxBeanImpl
All Implemented Interfaces:
ProductInfoAjaxBean

public class ProductInfoAjaxBeanImpl
extends java.lang.Object
implements ProductInfoAjaxBean

This bean provides access to product-related data needed for display in the Javascript UI. Some data are the result of invoking a method on the categroy domain object.


Constructor Summary
ProductInfoAjaxBeanImpl()
           
 
Method Summary
 java.lang.String getDefaultBrandName()
          Get the default brand name of the product represented.
 java.lang.String getDefaultDisplayName()
          Get the default display name of the product represented.
 java.lang.String getDefaultDisplayPrice()
          Get the display price of the product represented in the default currency.
 java.lang.String getDefaultParentCategoryPath()
          Get the default parent category path.
 java.util.Map getLocaleDependantFieldsMap()
          Get the category locale dependant fields map.
 java.lang.String getProductTypeName()
          Get the prodcut type name of the product represented.
 long getUidPk()
          Gets the unique identifier for this domain model object.
 boolean isActive()
          Get the flag to indicate whether the product is active.
 void setActive(boolean active)
          Set a flag to indicate whether the product is active.
 void setDefaultBrandName(java.lang.String defaultBrandName)
          Set the default brand name of the product represented.
 void setDefaultDisplayName(java.lang.String defaultDisplayName)
          Set the default display name of the product represented.
 void setDefaultDisplayPrice(java.lang.String displayPrice)
          Set the price of the product represented in the default currency.
 void setDefaultParentCategoryPath(java.lang.String defaultParentCategoryPath)
          Set the default parent category path.
 void setlocaleDependantFieldsMap(java.util.Map localeDependantFieldsMap)
          Set the category locale dependant fields map.
 void setProductTypeName(java.lang.String productTypeName)
          Set the prodcut type name of the product represented.
 void setUidPk(long uidPk)
          Sets the unique identifier for this domain model object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductInfoAjaxBeanImpl

public ProductInfoAjaxBeanImpl()
Method Detail

getDefaultBrandName

public java.lang.String getDefaultBrandName()
Get the default brand name of the product represented.

Specified by:
getDefaultBrandName in interface ProductInfoAjaxBean
Returns:
the default brand name of the product represented.

getDefaultDisplayName

public java.lang.String getDefaultDisplayName()
Get the default display name of the product represented.

Specified by:
getDefaultDisplayName in interface ProductInfoAjaxBean
Returns:
the default display name of the product represented.

getDefaultDisplayPrice

public java.lang.String getDefaultDisplayPrice()
Get the display price of the product represented in the default currency.

Specified by:
getDefaultDisplayPrice in interface ProductInfoAjaxBean
Returns:
the display price.

getDefaultParentCategoryPath

public java.lang.String getDefaultParentCategoryPath()
Get the default parent category path.

Specified by:
getDefaultParentCategoryPath in interface ProductInfoAjaxBean
Returns:
the default parent category path.

getLocaleDependantFieldsMap

public java.util.Map getLocaleDependantFieldsMap()
Get the category locale dependant fields map.

Specified by:
getLocaleDependantFieldsMap in interface ProductInfoAjaxBean
Returns:
the category locale dependant fields map

getProductTypeName

public java.lang.String getProductTypeName()
Get the prodcut type name of the product represented.

Specified by:
getProductTypeName in interface ProductInfoAjaxBean
Returns:
the prodcut type name of the product represented.

getUidPk

public final long getUidPk()
Gets the unique identifier for this domain model object.

Specified by:
getUidPk in interface ProductInfoAjaxBean
Returns:
the unique identifier.

isActive

public boolean isActive()
Get the flag to indicate whether the product is active.

Specified by:
isActive in interface ProductInfoAjaxBean
Returns:
true if product is active, otherwise false

setActive

public void setActive(boolean active)
Set a flag to indicate whether the product is active.

Specified by:
setActive in interface ProductInfoAjaxBean
Parameters:
active - the flag to indicate whether the product is active or not.

setDefaultBrandName

public void setDefaultBrandName(java.lang.String defaultBrandName)
Set the default brand name of the product represented.

Specified by:
setDefaultBrandName in interface ProductInfoAjaxBean
Parameters:
defaultBrandName - the default brand name of the product represented.

setDefaultDisplayName

public void setDefaultDisplayName(java.lang.String defaultDisplayName)
Set the default display name of the product represented.

Specified by:
setDefaultDisplayName in interface ProductInfoAjaxBean
Parameters:
defaultDisplayName - the default display name of the product represented.

setDefaultDisplayPrice

public void setDefaultDisplayPrice(java.lang.String displayPrice)
Set the price of the product represented in the default currency.

Specified by:
setDefaultDisplayPrice in interface ProductInfoAjaxBean
Parameters:
displayPrice - the price of the product represented in the default currency.

setDefaultParentCategoryPath

public void setDefaultParentCategoryPath(java.lang.String defaultParentCategoryPath)
Set the default parent category path.

Specified by:
setDefaultParentCategoryPath in interface ProductInfoAjaxBean
Parameters:
defaultParentCategoryPath - the default parent category path.

setlocaleDependantFieldsMap

public void setlocaleDependantFieldsMap(java.util.Map localeDependantFieldsMap)
Set the category locale dependant fields map.

Specified by:
setlocaleDependantFieldsMap in interface ProductInfoAjaxBean
Parameters:
localeDependantFieldsMap - the category locale dependant fields map

setProductTypeName

public void setProductTypeName(java.lang.String productTypeName)
Set the prodcut type name of the product represented.

Specified by:
setProductTypeName in interface ProductInfoAjaxBean
Parameters:
productTypeName - the product type name of the product represented.

setUidPk

public final void setUidPk(long uidPk)
Sets the unique identifier for this domain model object.

Specified by:
setUidPk in interface ProductInfoAjaxBean
Parameters:
uidPk - the new unique identifier.