Class AddressWrapper

java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.AddressWrapper
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.profile.core.domain.Address>, org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.Address>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class AddressWrapper extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.Address>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.profile.core.domain.Address>
This is a JAXB wrapper around Address. User: Elbert Bautista Date: 4/10/12
See Also:
  • Field Details

    • 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

      @Deprecated protected StateWrapper state
      Deprecated.
      Deprecated. Use "isoCountrySubdivision" and/or "stateProvinceRegion" instead.
    • country

      @Deprecated protected CountryWrapper country
      Deprecated.
      Deprecated. Use "isoCountryAlpha2" instead.
    • isoCountrySubdivision

      protected String isoCountrySubdivision
    • stateProvinceRegion

      protected String stateProvinceRegion
    • isoCountryAlpha2

      protected ISOCountryWrapper isoCountryAlpha2
    • 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 Details

    • AddressWrapper

      public AddressWrapper()
  • Method Details

    • wrapDetails

      public void wrapDetails(org.broadleafcommerce.profile.core.domain.Address model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapDetails in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.Address>
    • wrapSummary

      public void wrapSummary(org.broadleafcommerce.profile.core.domain.Address model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapSummary in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.Address>
    • unwrap

      public org.broadleafcommerce.profile.core.domain.Address unwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext appContext)
      Specified by:
      unwrap in interface org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.profile.core.domain.Address>
    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getFirstName

      public String getFirstName()
    • setFirstName

      public void setFirstName(String firstName)
    • getLastName

      public String getLastName()
    • setLastName

      public void setLastName(String lastName)
    • getAddressLine1

      public String getAddressLine1()
    • setAddressLine1

      public void setAddressLine1(String addressLine1)
    • getAddressLine2

      public String getAddressLine2()
    • setAddressLine2

      public void setAddressLine2(String addressLine2)
    • getAddressLine3

      public String getAddressLine3()
    • setAddressLine3

      public void setAddressLine3(String addressLine3)
    • getCity

      public String getCity()
    • setCity

      public void setCity(String city)
    • getState

      public StateWrapper getState()
    • setState

      public void setState(StateWrapper state)
    • getCountry

      public CountryWrapper getCountry()
    • setCountry

      public void setCountry(CountryWrapper country)
    • getIsoCountrySubdivision

      public String getIsoCountrySubdivision()
    • setIsoCountrySubdivision

      public void setIsoCountrySubdivision(String isoCountrySubdivision)
    • getStateProvinceRegion

      public String getStateProvinceRegion()
    • setStateProvinceRegion

      public void setStateProvinceRegion(String stateProvinceRegion)
    • getIsoCountryAlpha2

      public ISOCountryWrapper getIsoCountryAlpha2()
    • setIsoCountryAlpha2

      public void setIsoCountryAlpha2(ISOCountryWrapper isoCountryAlpha2)
    • getPostalCode

      public String getPostalCode()
    • setPostalCode

      public void setPostalCode(String postalCode)
    • getPhonePrimary

      public PhoneWrapper getPhonePrimary()
    • setPhonePrimary

      public void setPhonePrimary(PhoneWrapper phonePrimary)
    • getPhoneSecondary

      public PhoneWrapper getPhoneSecondary()
    • setPhoneSecondary

      public void setPhoneSecondary(PhoneWrapper phoneSecondary)
    • getPhoneFax

      public PhoneWrapper getPhoneFax()
    • setPhoneFax

      public void setPhoneFax(PhoneWrapper phoneFax)
    • getCompanyName

      public String getCompanyName()
    • setCompanyName

      public void setCompanyName(String companyName)
    • getIsBusiness

      public Boolean getIsBusiness()
    • setIsBusiness

      public void setIsBusiness(Boolean isBusiness)
    • getIsDefault

      public Boolean getIsDefault()
    • setIsDefault

      public void setIsDefault(Boolean isDefault)