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

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

public class PhoneWrapper
extends BaseWrapper
implements APIWrapper<Phone>, APIUnwrapper<Phone>

This is a JAXB wrapper around Phone. User: Elbert Bautista Date: 4/24/12


Field Summary
protected  Long id
           
protected  Boolean isActive
           
protected  Boolean isDefault
           
protected  String phoneNumber
           
 
Fields inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
context
 
Constructor Summary
PhoneWrapper()
           
 
Method Summary
 Phone unwrap(javax.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext appContext)
           
 void wrapDetails(Phone model, javax.servlet.http.HttpServletRequest request)
           
 void wrapSummary(Phone 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

phoneNumber

protected String phoneNumber

isActive

protected Boolean isActive

isDefault

protected Boolean isDefault
Constructor Detail

PhoneWrapper

public PhoneWrapper()
Method Detail

wrapDetails

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

wrapSummary

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

unwrap

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


Copyright © 2013. All Rights Reserved.