Class AbstractDataImportService
java.lang.Object
de.hybris.platform.commerceservices.dataimport.AbstractDataImportService
- Direct Known Subclasses:
CoreDataImportService,SampleDataImportService
Defines common data import services for subclasses.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassignDependent(String dependsOnProduct, List<String> dependentContents) Assigns dependent content catalog sync jobs to product catalog sync jobsabstract voidexecute(AbstractSystemSetup systemSetup, SystemSetupContext context, List<ImportData> importData) Execute import data.<T> TgetBeanForName(String name) Gets a bean by nameprotected voidimportAllData(AbstractSystemSetup systemSetup, SystemSetupContext context, ImportData importData, boolean syncCatalogs) protected abstract voidimportCommonData(String extensionName) protected abstract voidimportContentCatalog(String extensionName, String contentCatalogName) protected abstract voidimportJobs(String extensionName, String storeName) protected abstract voidimportProductCatalog(String extensionName, String productCatalogName) protected voidimportSearchServicesIndex(String extensionName, String storeName) protected voidimportSite(String extensionName, String siteName) protected abstract voidimportSolrIndex(String extensionName, String storeName) protected abstract voidimportStore(String extensionName, String storeName, String productCatalogName) booleanisExtensionLoaded(String extensionNameToCheck) Determines whether an extension is loaded or notbooleanisSyncRerunNeeded(PerformResult syncCronJobResult) Determines if the sync job needs to be rerunvoidrunSolrIndex(String extensionName, String storeName) Runs solr indexer jobsvoidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetConfigurationService(ConfigurationService configurationService) voidsetEventService(EventService eventService) voidsetSetupImpexService(SetupImpexService setupImpexService) voidsetSetupSolrIndexerService(SetupSolrIndexerService setupSolrIndexerService) voidsetSetupSyncJobService(SetupSyncJobService setupSyncJobService) booleansynchronizeContentCatalog(AbstractSystemSetup systemSetup, SystemSetupContext context, String catalogName, boolean syncCatalogs) Creates and runs a content catalog synchronization jobbooleansynchronizeProductCatalog(AbstractSystemSetup systemSetup, SystemSetupContext context, String catalogName, boolean syncCatalogs) Creates and runs a product catalog synchronization job
-
Field Details
-
ACTIVATE_SOLR_CRON_JOBS
- See Also:
-
IMPORT_MOBILE_DATA
- See Also:
-
-
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 parameterscontext- the system setup contextimportData- the data to import
-
importCommonData
-
importProductCatalog
-
importContentCatalog
-
importStore
-
importSolrIndex
-
importSearchServicesIndex
-
importSite
-
importJobs
-
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 parameterscontext- the system setup contextcatalogName- the catalog namesyncCatalogs- 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 parameterscontext- the system setup contextcatalogName- the catalog namesyncCatalogs- executes catalog synchronization job if true- Returns:
- true if operation was successful
-
assignDependent
Assigns dependent content catalog sync jobs to product catalog sync jobs- Parameters:
dependsOnProduct- the job to assign todependentContents- the dependent job names
-
runSolrIndex
Runs solr indexer jobs- Parameters:
extensionName-storeName-
-
isSyncRerunNeeded
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
Gets a bean by name- Parameters:
name- the bean name- Returns:
- the bean
-
isExtensionLoaded
Determines whether an extension is loaded or not- Parameters:
extensionNameToCheck- the extension name- Returns:
- true if the
Listof loaded extensions contains the extension's name
-
getSetupImpexService
-
setSetupImpexService
-
getSetupSyncJobService
-
setSetupSyncJobService
-
getSetupSolrIndexerService
-
setSetupSolrIndexerService
-
getCatalogVersionService
-
setCatalogVersionService
-
getEventService
-
setEventService
-
getConfigurationService
-
setConfigurationService
-