Class ProductWrapper
java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.ProductWrapper
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Product>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
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>
This is a JAXB wrapper around Product.
User: Kelly Tisdell
Date: 4/10/12
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected Dateprotected Dateprotected List<SkuWrapper>protected Characterprotected org.broadleafcommerce.common.money.Moneyprotected org.broadleafcommerce.common.money.Moneyprotected List<RelatedProductWrapper>protected Longprotected SkuWrapperprotected Stringprotected DynamicSkuPricesWrapperprotected Longprotected Stringprotected Stringprotected List<MediaWrapper>protected Stringprotected Stringprotected MediaWrapperprotected Integerprotected List<ProductAttributeWrapper>protected List<ProductOptionWrapper>protected Stringprotected Map<String,List<PromotionMessageDTOWrapper>> protected org.broadleafcommerce.common.money.Moneyprotected org.broadleafcommerce.common.money.Moneyprotected List<SkuBundleItemWrapper>protected List<RelatedProductWrapper>protected StringFields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.money.Moneyorg.broadleafcommerce.common.money.MoneygetId()getMedia()getModel()getName()org.broadleafcommerce.common.money.Moneyorg.broadleafcommerce.common.money.MoneygetUrl()voidvoidsetActiveEndDate(Date activeEndDate) voidsetActiveStartDate(Date activeStartDate) voidsetAdditionalSkus(List<SkuWrapper> additionalSkus) voidsetArchived(Character archived) voidsetBundleItemsRetailPrice(org.broadleafcommerce.common.money.Money bundleItemsRetailPrice) voidsetBundleItemsSalePrice(org.broadleafcommerce.common.money.Money bundleItemsSalePrice) voidsetCrossSaleProducts(List<RelatedProductWrapper> crossSaleProducts) voidsetDefaultCategoryId(Long defaultCategoryId) voidsetDefaultSku(SkuWrapper defaultSku) voidsetDescription(String description) voidsetDynamicSkuPrices(DynamicSkuPricesWrapper dynamicSkuPrices) voidvoidsetLongDescription(String longDescription) voidsetManufacturer(String manufacturer) voidsetMedia(List<MediaWrapper> media) voidvoidvoidsetPrimaryMedia(MediaWrapper primaryMedia) voidsetPriority(Integer priority) voidsetProductAttributes(List<ProductAttributeWrapper> productAttributes) voidsetProductOptions(List<ProductOptionWrapper> productOptions) voidsetPromoMessage(String promoMessage) voidsetPromotionMessages(Map<String, List<PromotionMessageDTOWrapper>> promotionMessages) voidsetRetailPrice(org.broadleafcommerce.common.money.Money retailPrice) voidsetSalePrice(org.broadleafcommerce.common.money.Money salePrice) voidsetSkuBundleItems(List<SkuBundleItemWrapper> skuBundleItems) voidsetUpsaleProducts(List<RelatedProductWrapper> upsaleProducts) voidprotected BooleanshouldIncludePriceData(jakarta.servlet.http.HttpServletRequest request) protected BooleanshouldIncludePromotionMessages(jakarta.servlet.http.HttpServletRequest request) voidwrapDetails(org.broadleafcommerce.core.catalog.domain.Product model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.core.catalog.domain.Product model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
id
-
name
-
description
-
longDescription
-
url
-
retailPrice
protected org.broadleafcommerce.common.money.Money retailPrice -
salePrice
protected org.broadleafcommerce.common.money.Money salePrice -
-
dynamicSkuPrices
-
active
-
productOptions
-
priority
-
bundleItemsRetailPrice
protected org.broadleafcommerce.common.money.Money bundleItemsRetailPrice -
bundleItemsSalePrice
protected org.broadleafcommerce.common.money.Money bundleItemsSalePrice -
activeStartDate
-
activeEndDate
-
manufacturer
-
model
-
promoMessage
-
defaultSku
-
additionalSkus
-
defaultCategoryId
-
upsaleProducts
-
crossSaleProducts
-
productAttributes
-
media
-
skuBundleItems
-
promotionMessages
-
archived
-
-
Constructor Details
-
ProductWrapper
public ProductWrapper()
-
-
Method Details
-
wrapDetails
public void wrapDetails(org.broadleafcommerce.core.catalog.domain.Product model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapDetailsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Product>
-
shouldIncludePromotionMessages
-
shouldIncludePriceData
-
wrapSummary
public void wrapSummary(org.broadleafcommerce.core.catalog.domain.Product model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Product>
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getLongDescription
- Returns:
- the longDescription
-
setLongDescription
- Parameters:
longDescription- the longDescription to set
-
getUrl
- Returns:
- the url
-
setUrl
- Parameters:
url- the url to set
-
getRetailPrice
public org.broadleafcommerce.common.money.Money getRetailPrice()- Returns:
- the retailPrice
-
setRetailPrice
public void setRetailPrice(org.broadleafcommerce.common.money.Money retailPrice) - Parameters:
retailPrice- the retailPrice to set
-
getSalePrice
public org.broadleafcommerce.common.money.Money getSalePrice()- Returns:
- the salePrice
-
setSalePrice
public void setSalePrice(org.broadleafcommerce.common.money.Money salePrice) - Parameters:
salePrice- the salePrice to set
-
getPrimaryMedia
- Returns:
- the primaryMedia
-
setPrimaryMedia
- Parameters:
primaryMedia- the primaryMedia to set
-
getDynamicSkuPrices
- Returns:
- the dynamicSkuPrices
-
setDynamicSkuPrices
- Parameters:
dynamicSkuPrices- the dynamicSkuPrices to set
-
getActive
- Returns:
- the active
-
setActive
- Parameters:
active- the active to set
-
getDefaultSku
-
setDefaultSku
-
getAdditionalSkus
-
setAdditionalSkus
-
getProductOptions
- Returns:
- the productOptions
-
setProductOptions
- Parameters:
productOptions- the productOptions to set
-
getPriority
- Returns:
- the priority
-
setPriority
- Parameters:
priority- the priority to set
-
getBundleItemsRetailPrice
public org.broadleafcommerce.common.money.Money getBundleItemsRetailPrice()- Returns:
- the bundleItemsRetailPrice
-
setBundleItemsRetailPrice
public void setBundleItemsRetailPrice(org.broadleafcommerce.common.money.Money bundleItemsRetailPrice) - Parameters:
bundleItemsRetailPrice- the bundleItemsRetailPrice to set
-
getBundleItemsSalePrice
public org.broadleafcommerce.common.money.Money getBundleItemsSalePrice()- Returns:
- the bundleItemsSalePrice
-
setBundleItemsSalePrice
public void setBundleItemsSalePrice(org.broadleafcommerce.common.money.Money bundleItemsSalePrice) - Parameters:
bundleItemsSalePrice- the bundleItemsSalePrice to set
-
getActiveStartDate
- Returns:
- the activeStartDate
-
setActiveStartDate
- Parameters:
activeStartDate- the activeStartDate to set
-
getActiveEndDate
- Returns:
- the activeEndDate
-
setActiveEndDate
- Parameters:
activeEndDate- the activeEndDate to set
-
getManufacturer
- Returns:
- the manufacturer
-
setManufacturer
- Parameters:
manufacturer- the manufacturer to set
-
getModel
- Returns:
- the model
-
setModel
- Parameters:
model- the model to set
-
getPromoMessage
- Returns:
- the promoMessage
-
setPromoMessage
- Parameters:
promoMessage- the promoMessage to set
-
getDefaultCategoryId
- Returns:
- the defaultCategoryId
-
setDefaultCategoryId
- Parameters:
defaultCategoryId- the defaultCategoryId to set
-
getUpsaleProducts
- Returns:
- the upsaleProducts
-
setUpsaleProducts
- Parameters:
upsaleProducts- the upsaleProducts to set
-
getCrossSaleProducts
- Returns:
- the crossSaleProducts
-
setCrossSaleProducts
- Parameters:
crossSaleProducts- the crossSaleProducts to set
-
getProductAttributes
- Returns:
- the productAttributes
-
setProductAttributes
- Parameters:
productAttributes- the productAttributes to set
-
getMedia
- Returns:
- the media
-
setMedia
- Parameters:
media- the media to set
-
getSkuBundleItems
- Returns:
- the skuBundleItems
-
setSkuBundleItems
- Parameters:
skuBundleItems- the skuBundleItems to set
-
getPromotionMessages
- Returns:
- the promotionMessages
-
setPromotionMessages
- Parameters:
promotionMessages- the promotionMessages to set
-
getArchived
-
setArchived
-