Class UserExampleImportResolver

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

@Order(0) public class UserExampleImportResolver extends AbstractExampleImportResolver implements ExampleImportResolver
Looks up files from classpath:examples/$type.$fileType
Author:
Phillip Verheyden (phillipuniverse)
  • Constructor Details

    • UserExampleImportResolver

      public UserExampleImportResolver()
  • 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