public class ProductWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Product>
Constructor and Description |
---|
ProductWrapper() |
protected Long id
protected String name
protected String description
protected String longDescription
protected String url
protected org.broadleafcommerce.common.money.Money retailPrice
protected org.broadleafcommerce.common.money.Money salePrice
protected MediaWrapper primaryMedia
protected DynamicSkuPricesWrapper dynamicSkuPrices
protected Boolean active
protected List<ProductOptionWrapper> productOptions
protected Integer priority
protected org.broadleafcommerce.common.money.Money bundleItemsRetailPrice
protected org.broadleafcommerce.common.money.Money bundleItemsSalePrice
protected Date activeStartDate
protected Date activeEndDate
protected String manufacturer
protected String model
protected String promoMessage
protected SkuWrapper defaultSku
protected List<SkuWrapper> additionalSkus
protected Long defaultCategoryId
protected List<RelatedProductWrapper> upsaleProducts
protected List<RelatedProductWrapper> crossSaleProducts
protected List<ProductAttributeWrapper> productAttributes
protected List<MediaWrapper> media
protected List<SkuBundleItemWrapper> skuBundleItems
protected Map<String,List<PromotionMessageDTOWrapper>> promotionMessages
protected Character archived
public void wrapDetails(org.broadleafcommerce.core.catalog.domain.Product model, javax.servlet.http.HttpServletRequest request)
wrapDetails
in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Product>
protected Boolean shouldIncludePromotionMessages(javax.servlet.http.HttpServletRequest request)
protected Boolean shouldIncludePriceData(javax.servlet.http.HttpServletRequest request)
public void wrapSummary(org.broadleafcommerce.core.catalog.domain.Product model, javax.servlet.http.HttpServletRequest request)
wrapSummary
in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.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 String getUrl()
public void setUrl(String url)
url
- the url to setpublic org.broadleafcommerce.common.money.Money getRetailPrice()
public void setRetailPrice(org.broadleafcommerce.common.money.Money retailPrice)
retailPrice
- the retailPrice to setpublic org.broadleafcommerce.common.money.Money getSalePrice()
public void setSalePrice(org.broadleafcommerce.common.money.Money salePrice)
salePrice
- the salePrice to setpublic MediaWrapper getPrimaryMedia()
public void setPrimaryMedia(MediaWrapper primaryMedia)
primaryMedia
- the primaryMedia to setpublic DynamicSkuPricesWrapper getDynamicSkuPrices()
public void setDynamicSkuPrices(DynamicSkuPricesWrapper dynamicSkuPrices)
dynamicSkuPrices
- the dynamicSkuPrices to setpublic Boolean getActive()
public void setActive(Boolean active)
active
- the active to setpublic SkuWrapper getDefaultSku()
public void setDefaultSku(SkuWrapper defaultSku)
public List<SkuWrapper> getAdditionalSkus()
public void setAdditionalSkus(List<SkuWrapper> additionalSkus)
public 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 org.broadleafcommerce.common.money.Money getBundleItemsRetailPrice()
public void setBundleItemsRetailPrice(org.broadleafcommerce.common.money.Money bundleItemsRetailPrice)
bundleItemsRetailPrice
- the bundleItemsRetailPrice to setpublic org.broadleafcommerce.common.money.Money getBundleItemsSalePrice()
public void setBundleItemsSalePrice(org.broadleafcommerce.common.money.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 setpublic Map<String,List<PromotionMessageDTOWrapper>> getPromotionMessages()
public void setPromotionMessages(Map<String,List<PromotionMessageDTOWrapper>> promotionMessages)
promotionMessages
- the promotionMessages to setpublic Character getArchived()
public void setArchived(Character archived)
Copyright © 2020. All rights reserved.