Class DataDrivenEnumBatchLoaderProcessor

java.lang.Object
com.broadleafcommerce.dataexchange.service.catalog.DataDrivenEnumBatchLoaderProcessor
All Implemented Interfaces:
BatchExtensionProcessor, org.springframework.core.Ordered

public class DataDrivenEnumBatchLoaderProcessor extends Object implements BatchExtensionProcessor
Loads data driven enums from the catalog service. Handles out of box data driven enums as well as custom data driven enums defined in properties. Required IDs of the data driven enums are populated on the products. If the values are for some reason needed elsewhere, they can be accessed from the batch context via the attribute FETCHED_DATA_DRIVEN_ENUMS and will be of type DataDrivenEnumResponse.

This may be overridden just like any Broadleaf implementation, but also supports custom mappings that may be configured via property.

See CustomDataDriveEnumProperties for instructions on how to define custom data driven enums.