Class AbstractDataImportService

    • Field Detail

      • ACTIVATE_SOLR_CRON_JOBS

        public static final java.lang.String ACTIVATE_SOLR_CRON_JOBS
        See Also:
        Constant Field Values
      • IMPORT_MOBILE_DATA

        public static final java.lang.String IMPORT_MOBILE_DATA
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractDataImportService

        public AbstractDataImportService()
    • Method Detail

      • execute

        public abstract void execute​(AbstractSystemSetup systemSetup,
                                     SystemSetupContext context,
                                     java.util.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​(java.lang.String extensionName)
      • importProductCatalog

        protected abstract void importProductCatalog​(java.lang.String extensionName,
                                                     java.lang.String productCatalogName)
      • importContentCatalog

        protected abstract void importContentCatalog​(java.lang.String extensionName,
                                                     java.lang.String contentCatalogName)
      • importStore

        protected abstract void importStore​(java.lang.String extensionName,
                                            java.lang.String storeName,
                                            java.lang.String productCatalogName)
      • importSolrIndex

        protected abstract void importSolrIndex​(java.lang.String extensionName,
                                                java.lang.String storeName)
      • importJobs

        protected abstract void importJobs​(java.lang.String extensionName,
                                           java.lang.String storeName)
      • synchronizeProductCatalog

        public boolean synchronizeProductCatalog​(AbstractSystemSetup systemSetup,
                                                 SystemSetupContext context,
                                                 java.lang.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,
                                                 java.lang.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​(java.lang.String dependsOnProduct,
                                    java.util.List<java.lang.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​(java.lang.String extensionName,
                                 java.lang.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​(java.lang.String name)
        Gets a bean by name
        Parameters:
        name - the bean name
        Returns:
        the bean
      • isExtensionLoaded

        public boolean isExtensionLoaded​(java.lang.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
      • setSetupImpexService

        public void setSetupImpexService​(SetupImpexService setupImpexService)
      • setSetupSyncJobService

        public void setSetupSyncJobService​(SetupSyncJobService setupSyncJobService)
      • setSetupSolrIndexerService

        public void setSetupSolrIndexerService​(SetupSolrIndexerService setupSolrIndexerService)
      • setCatalogVersionService

        public void setCatalogVersionService​(CatalogVersionService catalogVersionService)
      • setEventService

        public void setEventService​(EventService eventService)
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)