com.elasticpath.cmweb.ajaxbean.impl
Class ProductAjaxBeanImpl

java.lang.Object
  extended by com.elasticpath.cmweb.ajaxbean.impl.ProductAjaxBeanImpl
All Implemented Interfaces:
ProductAjaxBean

public class ProductAjaxBeanImpl
extends java.lang.Object
implements ProductAjaxBean

This bean provides access to product-related data needed for display in the Javascript UI. The product domain model object itself is available through this bean as well as other data that may be required on the UI such as the result of invoking a method on the product domain object.


Constructor Summary
ProductAjaxBeanImpl()
           
 
Method Summary
 java.util.Map getFullAttributeValuesByLanguage()
          Get a map of language codes to full lists of attribute values for that language code.
 java.lang.String[] getMerchandizingTypeNames()
          Get the names of merchandizing types that may be associated with this product.
 Product getProduct()
          Get the domain model object representing a product.
 java.util.List getProductAssociationsByType()
          Get a list structure of product associations for this product.
 void setFullAttributeValuesByLanguage(java.util.Map fullAttributeValuesByLanguage)
          Set a map of language codes to full lists of attribute values for that language code.
 void setMerchandizingTypeNames(java.lang.String[] merchandizingTypeNames)
          Set the names of merchandizing types that may be associated with this product.
 void setProduct(Product product)
          Set a reference to the domain model object representing a product.
 void setProductAssociationsByType(java.util.List productAssociationsByType)
          Set a structure of product associations for this product.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductAjaxBeanImpl

public ProductAjaxBeanImpl()
Method Detail

getFullAttributeValuesByLanguage

public java.util.Map getFullAttributeValuesByLanguage()
Get a map of language codes to full lists of attribute values for that language code.

Specified by:
getFullAttributeValuesByLanguage in interface ProductAjaxBean
Returns:
fullAttributeValueMap the map

getMerchandizingTypeNames

public java.lang.String[] getMerchandizingTypeNames()
Get the names of merchandizing types that may be associated with this product.

Specified by:
getMerchandizingTypeNames in interface ProductAjaxBean
Returns:
a String array

getProduct

public Product getProduct()
Get the domain model object representing a product.

Specified by:
getProduct in interface ProductAjaxBean
Returns:
the product

getProductAssociationsByType

public java.util.List getProductAssociationsByType()
Get a list structure of product associations for this product. Each element of the list is a list of ProductAssociations of a particular association type.

Specified by:
getProductAssociationsByType in interface ProductAjaxBean
Returns:
the list structure described above

setFullAttributeValuesByLanguage

public void setFullAttributeValuesByLanguage(java.util.Map fullAttributeValuesByLanguage)
Set a map of language codes to full lists of attribute values for that language code.

Specified by:
setFullAttributeValuesByLanguage in interface ProductAjaxBean
Parameters:
fullAttributeValuesByLanguage - the map

setMerchandizingTypeNames

public void setMerchandizingTypeNames(java.lang.String[] merchandizingTypeNames)
Set the names of merchandizing types that may be associated with this product.

Specified by:
setMerchandizingTypeNames in interface ProductAjaxBean
Parameters:
merchandizingTypeNames - a String array

setProduct

public void setProduct(Product product)
Set a reference to the domain model object representing a product.

Specified by:
setProduct in interface ProductAjaxBean
Parameters:
product - the DO-layer product.

setProductAssociationsByType

public void setProductAssociationsByType(java.util.List productAssociationsByType)
Set a structure of product associations for this product. Each element of the list should be a list of the product associations of a given type with the first element being a list of the first kind of product associations and so on.

Specified by:
setProductAssociationsByType in interface ProductAjaxBean
Parameters:
productAssociationsByType - a list structure as described above