Documentation Home

Fulfillment Location Extensibility Guide

The main extension points of the fulfillment location import are the following classes:

  • LocationImportDTO
    • To add fields to the dto (and thus adding fields to import payload) extend LocationImportDTO and create a bean overriding the default bean with id com.broadleafcommerce.inventory.advanced.admin.web.api.dto.LocationImportDTO
  • AdminAdvancedInventoryImportEndpoint
    • This should be extended if the request mappings need to be changed for importing inventory or fulfillment locations
  • AdvancedInventoryImportEventScheduler
    • This class should be extended in the event that there needs to be a customization in how to create the system event. This would include adding new system event details, or changing the worker type (run on a different node than admin).
  • FulfillmentLocationImportEventConsumer
    • processImport
    • This method does the parsing of the file so if the preferred file type isn't JSON then this method can be overridden to parse the file differently