Class CustomDataDriveEnumProperties

java.lang.Object
com.broadleafcommerce.dataexchange.service.catalog.CustomDataDriveEnumProperties

@ConfigurationProperties("broadleaf.dataexchange.catalog.data-driven-enum") public class CustomDataDriveEnumProperties extends Object
  • Constructor Details

    • CustomDataDriveEnumProperties

      public CustomDataDriveEnumProperties()
  • Method Details

    • getCustomMappings

      A map of custom data driven enum mappings. This is a mapping of field on the product or variant to the data driven enum type. This allows for custom data driven enums to be resolved and mapped automatically without needing to manually fetch/map them in code. Support is available for singular values or collections.

      For example, if you have a custom field on the product entity titled "targetAge" that is a data driven enum of type "TARGET_AGE", you may define a property like this:

       
          broadleaf:
            dataexchange:
              catalog:
                data-driven-enum:
                  custom-mappings:
                    targetAge:
                      type: TARGET_AGE
                      collection: false //Optional. Defaults to false. Set to true if an array/collection
       
       
    • setCustomMappings

      public void setCustomMappings(Map<String,CustomDataDriveEnumProperties.DataDrivenEnumMapping> customMappings)
      A map of custom data driven enum mappings. This is a mapping of field on the product or variant to the data driven enum type. This allows for custom data driven enums to be resolved and mapped automatically without needing to manually fetch/map them in code. Support is available for singular values or collections.

      For example, if you have a custom field on the product entity titled "targetAge" that is a data driven enum of type "TARGET_AGE", you may define a property like this:

       
          broadleaf:
            dataexchange:
              catalog:
                data-driven-enum:
                  custom-mappings:
                    targetAge:
                      type: TARGET_AGE
                      collection: false //Optional. Defaults to false. Set to true if an array/collection
       
       
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object