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)
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
The custom serializer that is used to serializeBigDecimal
price toString
value.protected static class
Extension needed to get ability to create newBeanPropertyWriter
with new property name. -
Constructor Summary
ConstructorDescriptionSpecificationPropertiesSerializerModifier
(ExportSpecification exportSpecification) -
Method Summary
Modifier and TypeMethodDescriptionList<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) protected ExportSpecification
Methods inherited from class com.fasterxml.jackson.databind.ser.BeanSerializerModifier
modifyArraySerializer, modifyCollectionLikeSerializer, modifyCollectionSerializer, modifyEnumSerializer, modifyKeySerializer, modifyMapLikeSerializer, modifyMapSerializer, modifySerializer, orderProperties, updateBuilder
-
Constructor Details
-
SpecificationPropertiesSerializerModifier
-
-
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 classcom.fasterxml.jackson.databind.ser.BeanSerializerModifier
-
getExportSpecification
-