Class CustomDataDriveEnumProperties
java.lang.Object
com.broadleafcommerce.dataexchange.service.catalog.CustomDataDriveEnumProperties
@ConfigurationProperties("broadleaf.dataexchange.catalog.data-driven-enum")
public class CustomDataDriveEnumProperties
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A map of custom data driven enum mappings.int
hashCode()
void
setCustomMappings
(Map<String, CustomDataDriveEnumProperties.DataDrivenEnumMapping> customMappings) A map of custom data driven enum mappings.toString()
-
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-