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

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

public class OrderItemWrapper
extends BaseWrapper
implements APIWrapper<OrderItem>

This is a JAXB wrapper around OrderItem. For simplicity and most use cases, this wrapper only serializes attributes of DiscreteOrderItem This wrapper should be extended for BundledOrderItems etc... User: Elbert Bautista Date: 4/10/12


Field Summary
protected  List<OrderItemWrapper> bundleItems
           
protected  Long categoryId
           
protected  Long id
           
protected  Boolean isBundle
           
protected  String name
           
protected  Long orderId
           
protected  List<OrderItemAttributeWrapper> orderItemAttributes
           
protected  List<OrderItemPriceDetailWrapper> orderItemPriceDetails
           
protected  Long productId
           
protected  List<OrderItemQualifierWrapper> qualifiers
           
protected  Integer quantity
           
protected  Money retailPrice
           
protected  Money salePrice
           
protected  Long skuId
           
 
Fields inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
context
 
Constructor Summary
OrderItemWrapper()
           
 
Method Summary
 void wrapDetails(OrderItem model, javax.servlet.http.HttpServletRequest request)
           
 void wrapSummary(OrderItem 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

quantity

protected Integer quantity

retailPrice

protected Money retailPrice

salePrice

protected Money salePrice

orderId

protected Long orderId

categoryId

protected Long categoryId

skuId

protected Long skuId

productId

protected Long productId

isBundle

protected Boolean isBundle

orderItemAttributes

protected List<OrderItemAttributeWrapper> orderItemAttributes

orderItemPriceDetails

protected List<OrderItemPriceDetailWrapper> orderItemPriceDetails

bundleItems

protected List<OrderItemWrapper> bundleItems

qualifiers

protected List<OrderItemQualifierWrapper> qualifiers
Constructor Detail

OrderItemWrapper

public OrderItemWrapper()
Method Detail

wrapDetails

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

wrapSummary

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


Copyright © 2013. All Rights Reserved.