Interface ImportSpecificationService
- All Known Implementing Classes:
DefaultImportSpecificationService
public interface ImportSpecificationService
Service to fetch
ImportSpecification instances.- Author:
- Kelly Tisdell (ktisdell)
-
Method Summary
Modifier and TypeMethodDescriptionfindAllGlobalImportSpecifications(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns allGlobalImportSpecificationinstances.findImportSpecification(String type, String specificationRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds theImportSpecificationfor the type and ref for the specifiedContextInfo, or the defaultImportSpecificationfor the type.
-
Method Details
-
findImportSpecification
ImportSpecification findImportSpecification(String type, @Nullable String specificationRef, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds theImportSpecificationfor the type and ref for the specifiedContextInfo, or the defaultImportSpecificationfor the type.- Parameters:
type- the import type for which to find the specification forspecificationRef- theImportRequest.getSpecificationRef()andImport.getSpecificationRef()to find the specification forcontextInfo- the 'importing' context info, which should match the context the import will actually be performed in. SeeImportManager.buildImportingContextInfo(Import, OperationType)- Returns:
- the first specification that matches the requested type, else a generic
DefaultSpecification - See Also:
-
findAllGlobalImportSpecifications
List<GlobalImportSpecification> findAllGlobalImportSpecifications(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns allGlobalImportSpecificationinstances.- Parameters:
contextInfo- the 'importing' context info, which should match the context the import will actually be performed in. SeeImportManager.buildImportingContextInfo(Import, OperationType)- Returns:
- all global import specifications
-