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

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

public class AddressWrapper
extends BaseWrapper
implements APIWrapper<Address>, APIUnwrapper<Address>

This is a JAXB wrapper around Address. User: Elbert Bautista Date: 4/10/12


Field Summary
protected  String addressLine1
           
protected  String addressLine2
           
protected  String addressLine3
           
protected  String city
           
protected  String companyName
           
protected  CountryWrapper country
           
protected  String firstName
           
protected  Long id
           
protected  Boolean isBusiness
           
protected  Boolean isDefault
           
protected  String lastName
           
protected  PhoneWrapper phoneFax
           
protected  PhoneWrapper phonePrimary
           
protected  PhoneWrapper phoneSecondary
           
protected  String postalCode
           
protected  StateWrapper state
           
 
Fields inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
context
 
Constructor Summary
AddressWrapper()
           
 
Method Summary
 Address unwrap(javax.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext appContext)
           
 void wrapDetails(Address model, javax.servlet.http.HttpServletRequest request)
           
 void wrapSummary(Address 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

firstName

protected String firstName

lastName

protected String lastName

addressLine1

protected String addressLine1

addressLine2

protected String addressLine2

addressLine3

protected String addressLine3

city

protected String city

state

protected StateWrapper state

country

protected CountryWrapper country

postalCode

protected String postalCode

phonePrimary

protected PhoneWrapper phonePrimary

phoneSecondary

protected PhoneWrapper phoneSecondary

phoneFax

protected PhoneWrapper phoneFax

companyName

protected String companyName

isBusiness

protected Boolean isBusiness

isDefault

protected Boolean isDefault
Constructor Detail

AddressWrapper

public AddressWrapper()
Method Detail

wrapDetails

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

wrapSummary

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

unwrap

public Address unwrap(javax.servlet.http.HttpServletRequest request,
                      org.springframework.context.ApplicationContext appContext)
Specified by:
unwrap in interface APIUnwrapper<Address>


Copyright © 2013. All Rights Reserved.