org.broadleafcommerce.core.web.api.wrapper
Class ProductWrapper

java.lang.Object
  extended by org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
      extended by org.broadleafcommerce.core.web.api.wrapper.ProductWrapper
All Implemented Interfaces:
APIWrapper<Product>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class ProductWrapper
extends BaseWrapper
implements APIWrapper<Product>

This is a JAXB wrapper around Product. User: Kelly Tisdell Date: 4/10/12


Field Summary
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
           
 
Fields inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
context
 
Constructor Summary
ProductWrapper()
           
 
Method Summary
 void wrapDetails(Product model, javax.servlet.http.HttpServletRequest request)
           
 void wrapSummary(Product model, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

name

protected String name

description

protected String description

longDescription

protected String longDescription

retailPrice

protected Money retailPrice

salePrice

protected Money salePrice

primaryMedia

protected MediaWrapper primaryMedia

active

protected Boolean active

productOptions

protected List<ProductOptionWrapper> productOptions

priority

protected Integer priority

bundleItemsRetailPrice

protected Money bundleItemsRetailPrice

bundleItemsSalePrice

protected Money bundleItemsSalePrice

activeStartDate

protected Date activeStartDate

activeEndDate

protected Date activeEndDate

manufacturer

protected String manufacturer

model

protected String model

promoMessage

protected String promoMessage

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
Constructor Detail

ProductWrapper

public ProductWrapper()
Method Detail

wrapDetails

public void wrapDetails(Product model,
                        javax.servlet.http.HttpServletRequest request)
Specified by:
wrapDetails in interface APIWrapper<Product>

wrapSummary

public void wrapSummary(Product model,
                        javax.servlet.http.HttpServletRequest request)
Specified by:
wrapSummary in interface APIWrapper<Product>


Copyright © 2013. All Rights Reserved.