Class DefaultItemImportFacade

java.lang.Object
com.hybris.datahub.core.facades.impl.DefaultItemImportFacade
All Implemented Interfaces:
ItemImportFacade

public class DefaultItemImportFacade extends Object implements ItemImportFacade
Default facade for the ImpEx import process.
  • Constructor Details

    • DefaultItemImportFacade

      public DefaultItemImportFacade()
  • Method Details

    • importItems

      public ItemImportResult importItems(ItemImportTaskData ctx)
      Description copied from interface: ItemImportFacade
      Imports data into the system.
      Specified by:
      importItems in interface ItemImportFacade
      Parameters:
      ctx - import task context data, which describes what items should be imported.
      Returns:
      result of the items import.
    • setImportService

      public void setImportService(ImportService impl)
      Injects ImportService implementation to be used by this facade.
      Parameters:
      impl - implementation of the ImportService to use.
    • setResultConverter

      public void setResultConverter(ImportResultConverter converter)
      Injects implementation of the ImportResultConverter
      Parameters:
      converter - a converter to use for changing import service result to this facade's result.
    • setDataHubFacade

      public void setDataHubFacade(DataHubFacade dataHubFacade)
      Injects implementation of DataHubFacade
      Parameters:
      dataHubFacade - The dataHubFacade.
    • setEventService

      public final void setEventService(EventService eventService)
      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

      public void setImportConfigStrategy(ImportConfigStrategy importConfigStrategy)
      Injects the ImpEx import config strategy used
      Parameters:
      importConfigStrategy - the import config strategy to be used.