Class AbstractDataImportService

java.lang.Object
de.hybris.platform.commerceservices.dataimport.AbstractDataImportService
Direct Known Subclasses:
CoreDataImportService, SampleDataImportService

public abstract class AbstractDataImportService extends Object
Defines common data import services for subclasses.
  • Field Details

  • Constructor Details

    • AbstractDataImportService

      public AbstractDataImportService()
  • Method Details

    • execute

      public abstract void execute(AbstractSystemSetup systemSetup, SystemSetupContext context, List<ImportData> importData)
      Execute import data.
      Parameters:
      systemSetup - the system setup parameters
      context - the system setup context
      importData - the data to import
    • importCommonData

      protected abstract void importCommonData(String extensionName)
    • importProductCatalog

      protected abstract void importProductCatalog(String extensionName, String productCatalogName)
    • importContentCatalog

      protected abstract void importContentCatalog(String extensionName, String contentCatalogName)
    • importStore

      protected abstract void importStore(String extensionName, String storeName, String productCatalogName)
    • importSolrIndex

      protected abstract void importSolrIndex(String extensionName, String storeName)
    • importSearchServicesIndex

      protected void importSearchServicesIndex(String extensionName, String storeName)
    • importSite

      protected void importSite(String extensionName, String siteName)
    • importJobs

      protected abstract void importJobs(String extensionName, String storeName)
    • importAllData

      protected void importAllData(AbstractSystemSetup systemSetup, SystemSetupContext context, ImportData importData, boolean syncCatalogs)
    • synchronizeProductCatalog

      public boolean synchronizeProductCatalog(AbstractSystemSetup systemSetup, SystemSetupContext context, String catalogName, boolean syncCatalogs)
      Creates and runs a product catalog synchronization job
      Parameters:
      systemSetup - the system setup parameters
      context - the system setup context
      catalogName - the catalog name
      syncCatalogs - executes catalog synchronization job if true
      Returns:
      true if operation was successful
    • synchronizeContentCatalog

      public boolean synchronizeContentCatalog(AbstractSystemSetup systemSetup, SystemSetupContext context, String catalogName, boolean syncCatalogs)
      Creates and runs a content catalog synchronization job
      Parameters:
      systemSetup - the system setup parameters
      context - the system setup context
      catalogName - the catalog name
      syncCatalogs - executes catalog synchronization job if true
      Returns:
      true if operation was successful
    • assignDependent

      public void assignDependent(String dependsOnProduct, List<String> dependentContents)
      Assigns dependent content catalog sync jobs to product catalog sync jobs
      Parameters:
      dependsOnProduct - the job to assign to
      dependentContents - the dependent job names
    • runSolrIndex

      public void runSolrIndex(String extensionName, String storeName)
      Runs solr indexer jobs
      Parameters:
      extensionName -
      storeName -
    • isSyncRerunNeeded

      public boolean isSyncRerunNeeded(PerformResult syncCronJobResult)
      Determines if the sync job needs to be rerun
      Parameters:
      syncCronJobResult - the sync job result
      Returns:
      true is the sync job is null or unsuccessful
    • getBeanForName

      public <T> T getBeanForName(String name)
      Gets a bean by name
      Parameters:
      name - the bean name
      Returns:
      the bean
    • isExtensionLoaded

      public boolean isExtensionLoaded(String extensionNameToCheck)
      Determines whether an extension is loaded or not
      Parameters:
      extensionNameToCheck - the extension name
      Returns:
      true if the List of loaded extensions contains the extension's name
    • getSetupImpexService

      public SetupImpexService getSetupImpexService()
    • setSetupImpexService

      public void setSetupImpexService(SetupImpexService setupImpexService)
    • getSetupSyncJobService

      public SetupSyncJobService getSetupSyncJobService()
    • setSetupSyncJobService

      public void setSetupSyncJobService(SetupSyncJobService setupSyncJobService)
    • getSetupSolrIndexerService

      public SetupSolrIndexerService getSetupSolrIndexerService()
    • setSetupSolrIndexerService

      public void setSetupSolrIndexerService(SetupSolrIndexerService setupSolrIndexerService)
    • getCatalogVersionService

      public CatalogVersionService getCatalogVersionService()
    • setCatalogVersionService

      public void setCatalogVersionService(CatalogVersionService catalogVersionService)
    • getEventService

      public EventService getEventService()
    • setEventService

      public void setEventService(EventService eventService)
    • getConfigurationService

      public ConfigurationService getConfigurationService()
    • setConfigurationService

      public void setConfigurationService(ConfigurationService configurationService)