|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Product
Implementations of this interface are used to hold data for a Product. A product is a general description
of an item that can be sold (for example: a hat). Products are not sold or added to a cart. Skus
which are specific items (for example: a XL Blue Hat) are sold or added to a cart.
You should implement this class if you want to make significant changes to how the
Product is persisted. If you just want to add additional fields then you should extend ProductImpl.
ProductImpl},{@link Sku}, {@link Category}| Method Summary | |
|---|---|
Date |
getActiveEndDate()
Returns the last date a product will be available that is used to determine whether to display the product. |
Date |
getActiveStartDate()
Returns the first date a product will be available that is used to determine whether to display the product. |
List<Category> |
getAllParentCategories()
Returns all parent Category(s) this product is associated with. |
List<Sku> |
getAllSkus()
|
ContainerShapeType |
getContainer()
|
List<RelatedProduct> |
getCrossSaleProducts()
Returns a List of this product's related Cross Sales |
Category |
getDefaultCategory()
Returns the default Category this product is associated with. |
BigDecimal |
getDepth()
Returns the product dimension depth |
String |
getDescription()
Returns a brief description of the product that is used for display. |
ProductDimension |
getDimension()
Returns the ProductDimension for this product |
String |
getDimensionString()
Returns a String representation of the product dimension |
BigDecimal |
getGirth()
|
BigDecimal |
getHeight()
Returns the product dimension height |
Long |
getId()
The id of the Product. |
String |
getLongDescription()
Returns a long description of the product that is used for display. |
String |
getManufacturer()
Returns the manufacture name for this product |
String |
getModel()
Returns the model number of the product |
String |
getName()
Returns the name of the product that is used for display purposes. |
List<ProductAttribute> |
getProductAttributes()
|
String |
getProductImage(String imageKey)
Deprecated. |
Map<String,String> |
getProductImages()
Deprecated. |
Map<String,Media> |
getProductMedia()
Returns a map of key/value pairs that associate the media name (key) with the Media object(value) |
String |
getPromoMessage()
|
ContainerSizeType |
getSize()
|
List<Sku> |
getSkus()
Returns a list of Skus that are part of this product. |
List<RelatedProduct> |
getUpSaleProducts()
Returns a List of this product's related Up Sales |
ProductWeight |
getWeight()
Returns the weight of the product |
BigDecimal |
getWidth()
Returns the product dimension width |
boolean |
isActive()
Returns a boolean that indicates if the product is currently active. |
boolean |
isFeaturedProduct()
Returns whether or not the product is featured |
boolean |
isMachineSortable()
|
void |
setActiveEndDate(Date activeEndDate)
Sets the last date a product will be available that is used to determine whether to display the product. |
void |
setActiveStartDate(Date activeStartDate)
Sets the first date a product will be available that is used to determine whether to display the product. |
void |
setAllParentCategories(List<Category> allParentCategories)
Sets all parent Categorys this product is associated with. |
void |
setAllSkus(List<Sku> skus)
Sets the Skus that are to be associated with this product. |
void |
setContainer(ContainerShapeType container)
|
void |
setCrossSaleProducts(List<RelatedProduct> crossSaleProducts)
Sets the related Cross Sales |
void |
setDefaultCategory(Category defaultCategory)
Sets the default Category to associate this product with. |
void |
setDepth(BigDecimal depth)
Sets the product dimension depth |
void |
setDescription(String description)
Sets a brief description of the product that is used for display. |
void |
setDimension(ProductDimension dimension)
Sets the ProductDimension for this product |
void |
setFeaturedProduct(boolean isFeaturedProduct)
Sets whether or not the product is featured |
void |
setGirth(BigDecimal girth)
|
void |
setHeight(BigDecimal height)
Sets the product dimension height |
void |
setId(Long id)
Sets the id of the Product. |
void |
setLongDescription(String longDescription)
Sets a long description of the product that is used for display. |
void |
setMachineSortable(boolean isMachineSortable)
|
void |
setManufacturer(String manufacturer)
Sets the manufacture for this product |
void |
setModel(String model)
Sets the model number of the product |
void |
setName(String name)
Sets the name of the product that is used for display purposes. |
void |
setProductAttributes(List<ProductAttribute> productAttributes)
|
void |
setProductImages(Map<String,String> productImages)
Deprecated. |
void |
setProductMedia(Map<String,Media> productMedia)
Sets the product media map. |
void |
setPromoMessage(String promoMessage)
|
void |
setSize(ContainerSizeType size)
|
void |
setUpSaleProducts(List<RelatedProduct> upSaleProducts)
Sets the related Up Sales |
void |
setWeight(ProductWeight weight)
Sets the product weight |
void |
setWidth(BigDecimal width)
Sets the product dimension width |
| Method Detail |
|---|
Long getId()
void setId(Long id)
id - - the id of the productString getName()
void setName(String name)
name - - the name of the ProductString getDescription()
void setDescription(String description)
description - - a brief description of the productString getLongDescription()
void setLongDescription(String longDescription)
longDescription - the long descriptionDate getActiveStartDate()
void setActiveStartDate(Date activeStartDate)
activeStartDate - - the first day the product is availableDate getActiveEndDate()
void setActiveEndDate(Date activeEndDate)
activeEndDate - - the last day the product is availableboolean isActive()
List<Sku> getSkus()
Skus that are part of this product.
Skus associated with this productvoid setAllSkus(List<Sku> skus)
Skus that are to be associated with this product.
skus - - a List of Skus to associate with this product.List<Sku> getAllSkus()
@Deprecated Map<String,String> getProductImages()
@Deprecated String getProductImage(String imageKey)
imageKey - - a string key to lookup the image for the product
@Deprecated void setProductImages(Map<String,String> productImages)
productImages - - a map of product imagesMap<String,Media> getProductMedia()
void setProductMedia(Map<String,Media> productMedia)
productImages - - a map of product imagesList<Category> getAllParentCategories()
Category(s) this product is associated with.
void setAllParentCategories(List<Category> allParentCategories)
Categorys this product is associated with.
allParentCategories - - a List of all parent Category(s) to associate this product withCategory getDefaultCategory()
Category this product is associated with.
defaultCategory - - the default Category to associate this product withvoid setDefaultCategory(Category defaultCategory)
Category to associate this product with.
defaultCategory - - the default Category to associate this product withString getModel()
void setModel(String model)
model - String getManufacturer()
void setManufacturer(String manufacturer)
manufacturer - ProductDimension getDimension()
ProductDimension for this product
void setDimension(ProductDimension dimension)
ProductDimension for this product
dimension - BigDecimal getWidth()
void setWidth(BigDecimal width)
width - BigDecimal getHeight()
void setHeight(BigDecimal height)
height - BigDecimal getDepth()
void setDepth(BigDecimal depth)
depth - ProductWeight getWeight()
void setWeight(ProductWeight weight)
weight - String getDimensionString()
List<RelatedProduct> getCrossSaleProducts()
void setCrossSaleProducts(List<RelatedProduct> crossSaleProducts)
crossSaleProducts - List<RelatedProduct> getUpSaleProducts()
void setUpSaleProducts(List<RelatedProduct> upSaleProducts)
upSaleProducts - boolean isFeaturedProduct()
void setFeaturedProduct(boolean isFeaturedProduct)
isFeaturedProduct - boolean isMachineSortable()
void setMachineSortable(boolean isMachineSortable)
void setGirth(BigDecimal girth)
BigDecimal getGirth()
ContainerSizeType getSize()
void setSize(ContainerSizeType size)
ContainerShapeType getContainer()
void setContainer(ContainerShapeType container)
List<ProductAttribute> getProductAttributes()
void setProductAttributes(List<ProductAttribute> productAttributes)
String getPromoMessage()
void setPromoMessage(String promoMessage)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||