Class SpecificationPropertiesSerializerModifier

java.lang.Object
com.fasterxml.jackson.databind.ser.BeanSerializerModifier
com.broadleafcommerce.common.dataexport.service.specification.SpecificationPropertiesSerializerModifier

public class SpecificationPropertiesSerializerModifier extends com.fasterxml.jackson.databind.ser.BeanSerializerModifier
Excludes properties, that do not exist in the specification, during serialization and converts property names to header names.
Author:
Vitalii Voronkov (vvoronkov)
  • Constructor Details

    • SpecificationPropertiesSerializerModifier

      public SpecificationPropertiesSerializerModifier(ExportSpecification exportSpecification)
  • Method Details

    • changeProperties

      public List<com.fasterxml.jackson.databind.ser.BeanPropertyWriter> changeProperties(com.fasterxml.jackson.databind.SerializationConfig config, com.fasterxml.jackson.databind.BeanDescription beanDesc, List<com.fasterxml.jackson.databind.ser.BeanPropertyWriter> beanProperties)
      Overrides:
      changeProperties in class com.fasterxml.jackson.databind.ser.BeanSerializerModifier
    • getExportSpecification

      protected ExportSpecification getExportSpecification()