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 Details

    • id

      protected Long id
    • name

      protected String name
    • description

      protected String description
    • longDescription

      protected String longDescription
    • url

      protected String url
    • retailPrice

      protected org.broadleafcommerce.common.money.Money retailPrice
    • salePrice

      protected org.broadleafcommerce.common.money.Money salePrice
    • primaryMedia

      protected MediaWrapper primaryMedia
    • dynamicSkuPrices

      protected DynamicSkuPricesWrapper dynamicSkuPrices
    • active

      protected Boolean active
    • productOptions

      protected List<ProductOptionWrapper> productOptions
    • priority

      protected Integer priority
    • bundleItemsRetailPrice

      protected org.broadleafcommerce.common.money.Money bundleItemsRetailPrice
    • bundleItemsSalePrice

      protected org.broadleafcommerce.common.money.Money bundleItemsSalePrice
    • activeStartDate

      protected Date activeStartDate
    • activeEndDate

      protected Date activeEndDate
    • manufacturer

      protected String manufacturer
    • model

      protected String model
    • promoMessage

      protected String promoMessage
    • defaultSku

      protected SkuWrapper defaultSku
    • additionalSkus

      protected List<SkuWrapper> additionalSkus
    • defaultCategoryId

      protected Long defaultCategoryId
    • upsaleProducts

      protected List<RelatedProductWrapper> upsaleProducts
    • crossSaleProducts

      protected List<RelatedProductWrapper> crossSaleProducts
    • productAttributes

      protected List<ProductAttributeWrapper> productAttributes
    • media

      protected List<MediaWrapper> media
    • skuBundleItems

      protected List<SkuBundleItemWrapper> skuBundleItems
    • promotionMessages

      protected Map<String,List<PromotionMessageDTOWrapper>> promotionMessages
    • archived

      protected Character 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:
      wrapDetails in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Product>
    • shouldIncludePromotionMessages

      protected Boolean shouldIncludePromotionMessages(jakarta.servlet.http.HttpServletRequest request)
    • shouldIncludePriceData

      protected Boolean shouldIncludePriceData(jakarta.servlet.http.HttpServletRequest request)
    • wrapSummary

      public void wrapSummary(org.broadleafcommerce.core.catalog.domain.Product model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapSummary in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Product>
    • getId

      public Long getId()
      Returns:
      the id
    • setId

      public void setId(Long id)
      Parameters:
      id - the id to set
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getDescription

      public String getDescription()
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • getLongDescription

      public String getLongDescription()
      Returns:
      the longDescription
    • setLongDescription

      public void setLongDescription(String longDescription)
      Parameters:
      longDescription - the longDescription to set
    • getUrl

      public String getUrl()
      Returns:
      the url
    • setUrl

      public void setUrl(String url)
      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

      public MediaWrapper getPrimaryMedia()
      Returns:
      the primaryMedia
    • setPrimaryMedia

      public void setPrimaryMedia(MediaWrapper primaryMedia)
      Parameters:
      primaryMedia - the primaryMedia to set
    • getDynamicSkuPrices

      public DynamicSkuPricesWrapper getDynamicSkuPrices()
      Returns:
      the dynamicSkuPrices
    • setDynamicSkuPrices

      public void setDynamicSkuPrices(DynamicSkuPricesWrapper dynamicSkuPrices)
      Parameters:
      dynamicSkuPrices - the dynamicSkuPrices to set
    • getActive

      public Boolean getActive()
      Returns:
      the active
    • setActive

      public void setActive(Boolean active)
      Parameters:
      active - the active to set
    • getDefaultSku

      public SkuWrapper getDefaultSku()
    • setDefaultSku

      public void setDefaultSku(SkuWrapper defaultSku)
    • getAdditionalSkus

      public List<SkuWrapper> getAdditionalSkus()
    • setAdditionalSkus

      public void setAdditionalSkus(List<SkuWrapper> additionalSkus)
    • getProductOptions

      public List<ProductOptionWrapper> getProductOptions()
      Returns:
      the productOptions
    • setProductOptions

      public void setProductOptions(List<ProductOptionWrapper> productOptions)
      Parameters:
      productOptions - the productOptions to set
    • getPriority

      public Integer getPriority()
      Returns:
      the priority
    • setPriority

      public void setPriority(Integer priority)
      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

      public Date getActiveStartDate()
      Returns:
      the activeStartDate
    • setActiveStartDate

      public void setActiveStartDate(Date activeStartDate)
      Parameters:
      activeStartDate - the activeStartDate to set
    • getActiveEndDate

      public Date getActiveEndDate()
      Returns:
      the activeEndDate
    • setActiveEndDate

      public void setActiveEndDate(Date activeEndDate)
      Parameters:
      activeEndDate - the activeEndDate to set
    • getManufacturer

      public String getManufacturer()
      Returns:
      the manufacturer
    • setManufacturer

      public void setManufacturer(String manufacturer)
      Parameters:
      manufacturer - the manufacturer to set
    • getModel

      public String getModel()
      Returns:
      the model
    • setModel

      public void setModel(String model)
      Parameters:
      model - the model to set
    • getPromoMessage

      public String getPromoMessage()
      Returns:
      the promoMessage
    • setPromoMessage

      public void setPromoMessage(String promoMessage)
      Parameters:
      promoMessage - the promoMessage to set
    • getDefaultCategoryId

      public Long getDefaultCategoryId()
      Returns:
      the defaultCategoryId
    • setDefaultCategoryId

      public void setDefaultCategoryId(Long defaultCategoryId)
      Parameters:
      defaultCategoryId - the defaultCategoryId to set
    • getUpsaleProducts

      public List<RelatedProductWrapper> getUpsaleProducts()
      Returns:
      the upsaleProducts
    • setUpsaleProducts

      public void setUpsaleProducts(List<RelatedProductWrapper> upsaleProducts)
      Parameters:
      upsaleProducts - the upsaleProducts to set
    • getCrossSaleProducts

      public List<RelatedProductWrapper> getCrossSaleProducts()
      Returns:
      the crossSaleProducts
    • setCrossSaleProducts

      public void setCrossSaleProducts(List<RelatedProductWrapper> crossSaleProducts)
      Parameters:
      crossSaleProducts - the crossSaleProducts to set
    • getProductAttributes

      public List<ProductAttributeWrapper> getProductAttributes()
      Returns:
      the productAttributes
    • setProductAttributes

      public void setProductAttributes(List<ProductAttributeWrapper> productAttributes)
      Parameters:
      productAttributes - the productAttributes to set
    • getMedia

      public List<MediaWrapper> getMedia()
      Returns:
      the media
    • setMedia

      public void setMedia(List<MediaWrapper> media)
      Parameters:
      media - the media to set
    • getSkuBundleItems

      public List<SkuBundleItemWrapper> getSkuBundleItems()
      Returns:
      the skuBundleItems
    • setSkuBundleItems

      public void setSkuBundleItems(List<SkuBundleItemWrapper> skuBundleItems)
      Parameters:
      skuBundleItems - the skuBundleItems to set
    • getPromotionMessages

      public Map<String,List<PromotionMessageDTOWrapper>> getPromotionMessages()
      Returns:
      the promotionMessages
    • setPromotionMessages

      public void setPromotionMessages(Map<String,List<PromotionMessageDTOWrapper>> promotionMessages)
      Parameters:
      promotionMessages - the promotionMessages to set
    • getArchived

      public Character getArchived()
    • setArchived

      public void setArchived(Character archived)