Class DefaultItemImportFacade
java.lang.Object
com.hybris.datahub.core.facades.impl.DefaultItemImportFacade
- All Implemented Interfaces:
ItemImportFacade
Default facade for the ImpEx import process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionImports data into the system.voidsetDataHubFacade(DataHubFacade dataHubFacade) Injects implementation ofDataHubFacadevoidsetErrorLimit(int errorLimit) Injects the maximum number of errors that will be reported back to Data Hub in a single publication.final voidsetEventService(EventService eventService) Injects event service used by the system.voidsetImportConfigStrategy(ImportConfigStrategy importConfigStrategy) Injects the ImpEx import config strategy usedvoidInjectsImportServiceimplementation to be used by this facade.voidsetResultConverter(ImportResultConverter converter) Injects implementation of theImportResultConverter
-
Constructor Details
-
DefaultItemImportFacade
public DefaultItemImportFacade()
-
-
Method Details
-
importItems
Description copied from interface:ItemImportFacadeImports data into the system.- Specified by:
importItemsin interfaceItemImportFacade- Parameters:
ctx- import task context data, which describes what items should be imported.- Returns:
- result of the items import.
-
setImportService
InjectsImportServiceimplementation to be used by this facade.- Parameters:
impl- implementation of theImportServiceto use.
-
setResultConverter
Injects implementation of theImportResultConverter- Parameters:
converter- a converter to use for changing import service result to this facade's result.
-
setDataHubFacade
Injects implementation ofDataHubFacade- Parameters:
dataHubFacade- The dataHubFacade.
-
setEventService
Injects event service used by the system.- Parameters:
eventService- event service implementation to use.
-
setErrorLimit
public void setErrorLimit(int errorLimit) Injects the maximum number of errors that will be reported back to Data Hub in a single publication.- Parameters:
errorLimit- The error limit.
-
setImportConfigStrategy
Injects the ImpEx import config strategy used- Parameters:
importConfigStrategy- the import config strategy to be used.
-