public abstract class AbstractDataImportService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTIVATE_SOLR_CRON_JOBS |
static java.lang.String |
IMPORT_MOBILE_DATA |
| Constructor and Description |
|---|
AbstractDataImportService() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignDependent(java.lang.String dependsOnProduct,
java.util.List<java.lang.String> dependentContents)
Assigns dependent content catalog sync jobs to product catalog sync jobs
|
abstract void |
execute(AbstractSystemSetup systemSetup,
SystemSetupContext context,
java.util.List<ImportData> importData)
Execute import data.
|
<T> T |
getBeanForName(java.lang.String name)
Gets a bean by name
|
CatalogVersionService |
getCatalogVersionService() |
ConfigurationService |
getConfigurationService() |
EventService |
getEventService() |
SetupImpexService |
getSetupImpexService() |
SetupSolrIndexerService |
getSetupSolrIndexerService() |
SetupSyncJobService |
getSetupSyncJobService() |
protected void |
importAllData(AbstractSystemSetup systemSetup,
SystemSetupContext context,
ImportData importData,
boolean syncCatalogs) |
protected abstract void |
importCommonData(java.lang.String extensionName) |
protected abstract void |
importContentCatalog(java.lang.String extensionName,
java.lang.String contentCatalogName) |
protected abstract void |
importJobs(java.lang.String extensionName,
java.lang.String storeName) |
protected abstract void |
importProductCatalog(java.lang.String extensionName,
java.lang.String productCatalogName) |
protected abstract void |
importSolrIndex(java.lang.String extensionName,
java.lang.String storeName) |
protected abstract void |
importStore(java.lang.String extensionName,
java.lang.String storeName,
java.lang.String productCatalogName) |
boolean |
isExtensionLoaded(java.lang.String extensionNameToCheck)
Determines whether an extension is loaded or not
|
boolean |
isSyncRerunNeeded(PerformResult syncCronJobResult)
Determines if the sync job needs to be rerun
|
void |
runSolrIndex(java.lang.String extensionName,
java.lang.String storeName)
Runs solr indexer jobs
|
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setEventService(EventService eventService) |
void |
setSetupImpexService(SetupImpexService setupImpexService) |
void |
setSetupSolrIndexerService(SetupSolrIndexerService setupSolrIndexerService) |
void |
setSetupSyncJobService(SetupSyncJobService setupSyncJobService) |
boolean |
synchronizeContentCatalog(AbstractSystemSetup systemSetup,
SystemSetupContext context,
java.lang.String catalogName,
boolean syncCatalogs)
Creates and runs a content catalog synchronization job
|
boolean |
synchronizeProductCatalog(AbstractSystemSetup systemSetup,
SystemSetupContext context,
java.lang.String catalogName,
boolean syncCatalogs)
Creates and runs a product catalog synchronization job
|
public static final java.lang.String ACTIVATE_SOLR_CRON_JOBS
public static final java.lang.String IMPORT_MOBILE_DATA
public abstract void execute(AbstractSystemSetup systemSetup, SystemSetupContext context, java.util.List<ImportData> importData)
systemSetup - the system setup parameterscontext - the system setup contextimportData - the data to importprotected abstract void importCommonData(java.lang.String extensionName)
protected abstract void importProductCatalog(java.lang.String extensionName,
java.lang.String productCatalogName)
protected abstract void importContentCatalog(java.lang.String extensionName,
java.lang.String contentCatalogName)
protected abstract void importStore(java.lang.String extensionName,
java.lang.String storeName,
java.lang.String productCatalogName)
protected abstract void importSolrIndex(java.lang.String extensionName,
java.lang.String storeName)
protected abstract void importJobs(java.lang.String extensionName,
java.lang.String storeName)
protected void importAllData(AbstractSystemSetup systemSetup, SystemSetupContext context, ImportData importData, boolean syncCatalogs)
public boolean synchronizeProductCatalog(AbstractSystemSetup systemSetup, SystemSetupContext context, java.lang.String catalogName, boolean syncCatalogs)
systemSetup - the system setup parameterscontext - the system setup contextcatalogName - the catalog namesyncCatalogs - executes catalog synchronization job if truepublic boolean synchronizeContentCatalog(AbstractSystemSetup systemSetup, SystemSetupContext context, java.lang.String catalogName, boolean syncCatalogs)
systemSetup - the system setup parameterscontext - the system setup contextcatalogName - the catalog namesyncCatalogs - executes catalog synchronization job if truepublic void assignDependent(java.lang.String dependsOnProduct,
java.util.List<java.lang.String> dependentContents)
dependsOnProduct - the job to assign todependentContents - the dependent job namespublic void runSolrIndex(java.lang.String extensionName,
java.lang.String storeName)
extensionName - storeName - public boolean isSyncRerunNeeded(PerformResult syncCronJobResult)
syncCronJobResult - the sync job resultpublic <T> T getBeanForName(java.lang.String name)
name - the bean namepublic boolean isExtensionLoaded(java.lang.String extensionNameToCheck)
extensionNameToCheck - the extension nameList of loaded extensions contains the extension's namepublic SetupImpexService getSetupImpexService()
public void setSetupImpexService(SetupImpexService setupImpexService)
public SetupSyncJobService getSetupSyncJobService()
public void setSetupSyncJobService(SetupSyncJobService setupSyncJobService)
public SetupSolrIndexerService getSetupSolrIndexerService()
public void setSetupSolrIndexerService(SetupSolrIndexerService setupSolrIndexerService)
public CatalogVersionService getCatalogVersionService()
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
public EventService getEventService()
public void setEventService(EventService eventService)
public ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
Copyright © 2018 SAP SE. All Rights Reserved.