Class PhoneWrapper

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

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

    • id

      protected Long id
    • phoneNumber

      protected String phoneNumber
    • isActive

      protected Boolean isActive
    • isDefault

      protected Boolean isDefault
  • Constructor Details

    • PhoneWrapper

      public PhoneWrapper()
  • Method Details

    • wrapDetails

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

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

      public org.broadleafcommerce.profile.core.domain.Phone 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.Phone>
    • getId

      public Long getId()
      Returns:
      the id
    • setId

      public void setId(Long id)
      Parameters:
      id - the id to set
    • getPhoneNumber

      public String getPhoneNumber()
      Returns:
      the phoneNumber
    • setPhoneNumber

      public void setPhoneNumber(String phoneNumber)
      Parameters:
      phoneNumber - the phoneNumber to set
    • getIsActive

      public Boolean getIsActive()
      Returns:
      the isActive
    • setIsActive

      public void setIsActive(Boolean isActive)
      Parameters:
      isActive - the isActive to set
    • getIsDefault

      public Boolean getIsDefault()
      Returns:
      the isDefault
    • setIsDefault

      public void setIsDefault(Boolean isDefault)
      Parameters:
      isDefault - the isDefault to set