public class ProductWrapper extends BaseWrapper implements APIWrapper<Product>
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
active |
protected Date |
activeEndDate |
protected Date |
activeStartDate |
protected Money |
bundleItemsRetailPrice |
protected Money |
bundleItemsSalePrice |
protected List<RelatedProductWrapper> |
crossSaleProducts |
protected Long |
defaultCategoryId |
protected String |
description |
protected Long |
id |
protected String |
longDescription |
protected String |
manufacturer |
protected List<MediaWrapper> |
media |
protected String |
model |
protected String |
name |
protected MediaWrapper |
primaryMedia |
protected Integer |
priority |
protected List<ProductAttributeWrapper> |
productAttributes |
protected List<ProductOptionWrapper> |
productOptions |
protected String |
promoMessage |
protected Money |
retailPrice |
protected Money |
salePrice |
protected List<SkuBundleItemWrapper> |
skuBundleItems |
protected List<RelatedProductWrapper> |
upsaleProducts |
context| Constructor and Description |
|---|
ProductWrapper() |
createElementWrappers, setApplicationContextprotected Long id
protected String name
protected String description
protected String longDescription
protected Money retailPrice
protected Money salePrice
protected MediaWrapper primaryMedia
protected Boolean active
protected List<ProductOptionWrapper> productOptions
protected Integer priority
protected Money bundleItemsRetailPrice
protected Money bundleItemsSalePrice
protected Date activeStartDate
protected Date activeEndDate
protected String manufacturer
protected String model
protected String promoMessage
protected Long defaultCategoryId
protected List<RelatedProductWrapper> upsaleProducts
protected List<RelatedProductWrapper> crossSaleProducts
protected List<ProductAttributeWrapper> productAttributes
protected List<MediaWrapper> media
protected List<SkuBundleItemWrapper> skuBundleItems
public void wrapDetails(Product model, javax.servlet.http.HttpServletRequest request)
wrapDetails in interface APIWrapper<Product>public void wrapSummary(Product model, javax.servlet.http.HttpServletRequest request)
wrapSummary in interface APIWrapper<Product>public Long getId()
public void setId(Long id)
id - the id to setpublic String getName()
public void setName(String name)
name - the name to setpublic String getDescription()
public void setDescription(String description)
description - the description to setpublic String getLongDescription()
public void setLongDescription(String longDescription)
longDescription - the longDescription to setpublic Money getRetailPrice()
public void setRetailPrice(Money retailPrice)
retailPrice - the retailPrice to setpublic Money getSalePrice()
public void setSalePrice(Money salePrice)
salePrice - the salePrice to setpublic MediaWrapper getPrimaryMedia()
public void setPrimaryMedia(MediaWrapper primaryMedia)
primaryMedia - the primaryMedia to setpublic Boolean getActive()
public void setActive(Boolean active)
active - the active to setpublic List<ProductOptionWrapper> getProductOptions()
public void setProductOptions(List<ProductOptionWrapper> productOptions)
productOptions - the productOptions to setpublic Integer getPriority()
public void setPriority(Integer priority)
priority - the priority to setpublic Money getBundleItemsRetailPrice()
public void setBundleItemsRetailPrice(Money bundleItemsRetailPrice)
bundleItemsRetailPrice - the bundleItemsRetailPrice to setpublic Money getBundleItemsSalePrice()
public void setBundleItemsSalePrice(Money bundleItemsSalePrice)
bundleItemsSalePrice - the bundleItemsSalePrice to setpublic Date getActiveStartDate()
public void setActiveStartDate(Date activeStartDate)
activeStartDate - the activeStartDate to setpublic Date getActiveEndDate()
public void setActiveEndDate(Date activeEndDate)
activeEndDate - the activeEndDate to setpublic String getManufacturer()
public void setManufacturer(String manufacturer)
manufacturer - the manufacturer to setpublic String getModel()
public void setModel(String model)
model - the model to setpublic String getPromoMessage()
public void setPromoMessage(String promoMessage)
promoMessage - the promoMessage to setpublic Long getDefaultCategoryId()
public void setDefaultCategoryId(Long defaultCategoryId)
defaultCategoryId - the defaultCategoryId to setpublic List<RelatedProductWrapper> getUpsaleProducts()
public void setUpsaleProducts(List<RelatedProductWrapper> upsaleProducts)
upsaleProducts - the upsaleProducts to setpublic List<RelatedProductWrapper> getCrossSaleProducts()
public void setCrossSaleProducts(List<RelatedProductWrapper> crossSaleProducts)
crossSaleProducts - the crossSaleProducts to setpublic List<ProductAttributeWrapper> getProductAttributes()
public void setProductAttributes(List<ProductAttributeWrapper> productAttributes)
productAttributes - the productAttributes to setpublic List<MediaWrapper> getMedia()
public void setMedia(List<MediaWrapper> media)
media - the media to setpublic List<SkuBundleItemWrapper> getSkuBundleItems()
public void setSkuBundleItems(List<SkuBundleItemWrapper> skuBundleItems)
skuBundleItems - the skuBundleItems to setCopyright © 2015. All Rights Reserved.