Class CustomerAttributeWrapper

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

public class CustomerAttributeWrapper extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.CustomerAttribute>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.profile.core.domain.CustomerAttribute>
API wrapper to wrap Customer Attributes.
Author:
Priyesh Patel
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Long
     
    protected Long
     
    protected String
     
    protected String
     

    Fields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper

    context
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
    void
    setCustomerId(Long customerId)
     
    void
    setId(Long id)
     
    void
     
    void
     
    org.broadleafcommerce.profile.core.domain.CustomerAttribute
    unwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context)
     
    void
    wrapDetails(org.broadleafcommerce.profile.core.domain.CustomerAttribute model, jakarta.servlet.http.HttpServletRequest request)
     
    void
    wrapSummary(org.broadleafcommerce.profile.core.domain.CustomerAttribute model, jakarta.servlet.http.HttpServletRequest request)
     

    Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper

    createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • id

      protected Long id
    • name

      protected String name
    • value

      protected String value
    • customerId

      protected Long customerId
  • Constructor Details

    • CustomerAttributeWrapper

      public CustomerAttributeWrapper()
  • Method Details

    • wrapDetails

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

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

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

      public Long getId()
    • setId

      public void setId(Long id)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getValue

      public String getValue()
    • setValue

      public void setValue(String value)
    • getCustomerId

      public Long getCustomerId()
    • setCustomerId

      public void setCustomerId(Long customerId)