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)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.broadleafcommerce.dataimport.service.AbstractExampleImportResolver
AbstractExampleImportResolver.NonExistingResource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.io.Resource
resolveExample
(String type, String fileType) Resolve an import file used as an example for the end user to downloadMethods inherited from class com.broadleafcommerce.dataimport.service.AbstractExampleImportResolver
getNonExistentResource
-
Constructor Details
-
UserExampleImportResolver
public UserExampleImportResolver()
-
-
Method Details
-
resolveExample
Description copied from interface:ExampleImportResolver
Resolve an import file used as an example for the end user to download- Specified by:
resolveExample
in interfaceExampleImportResolver
- Parameters:
type
- usually fromDefaultImportType
like PRODUCT is being requestedfileType
- file type that the import is requested for- Returns:
- a resource to the example file
-