Class PriceDataExampleImportResolver

java.lang.Object
com.broadleafcommerce.dataimport.service.AbstractExampleImportResolver
com.broadleafcommerce.dataimport.service.PriceDataExampleImportResolver
All Implemented Interfaces:
ExampleImportResolver

@Order(1000) public class PriceDataExampleImportResolver extends AbstractExampleImportResolver implements ExampleImportResolver
Looks up resources from classpath:default-examples/$type.$specification. This is designed specifically for use by the framework and is ordered to appear very last.
Author:
Vitalii Voronkov (vvoronkov)
  • Constructor Details

    • PriceDataExampleImportResolver

      public PriceDataExampleImportResolver()
  • Method Details

    • resolveExample

      public org.springframework.core.io.Resource resolveExample(String type, String fileType)
      Description copied from interface: ExampleImportResolver
      Resolve an import file used as an example for the end user to download
      Specified by:
      resolveExample in interface ExampleImportResolver
      Parameters:
      type - usually from DefaultImportType like PRODUCT is being requested
      fileType - file type that the import is requested for
      Returns:
      a resource to the example file