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  CategoryWrapper category
           
protected  Long id
           
protected  String name
           
protected  Long orderId
           
protected  List<OrderItemAttributeWrapper> orderItemAttributes
           
protected  ProductWrapper product
           
protected  Integer quantity
           
protected  Money retailPrice
           
protected  Money salePrice
           
protected  SkuWrapper sku
           
 
Fields inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
context
 
Constructor Summary
OrderItemWrapper()
           
 
Method Summary
 void wrap(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

category

protected CategoryWrapper category

orderId

protected Long orderId

sku

protected SkuWrapper sku

product

protected ProductWrapper product

orderItemAttributes

protected List<OrderItemAttributeWrapper> orderItemAttributes
Constructor Detail

OrderItemWrapper

public OrderItemWrapper()
Method Detail

wrap

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


Copyright © 2013. All Rights Reserved.