public abstract class AbstractSystemSetup
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
BOOLEAN_FALSE |
protected static java.lang.String |
BOOLEAN_TRUE |
| Constructor and Description |
|---|
AbstractSystemSetup() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateSolrIndexerCronJobs(java.lang.String solrFacetSearchConfigName) |
SystemSetupParameter |
createBooleanSystemSetupParameter(java.lang.String key,
java.lang.String label,
boolean defaultValue)
Helper method for creating a Boolean setup parameter.
|
void |
createContentCatalogSyncJob(SystemSetupContext context,
java.lang.String catalogId) |
void |
createProductCatalogSyncJob(SystemSetupContext context,
java.lang.String catalogId) |
void |
createSolrIndexerCronJobs(java.lang.String solrFacetSearchConfigName) |
PerformResult |
executeCatalogSyncJob(SystemSetupContext context,
java.lang.String catalogId) |
void |
executeSolrIndexerCronJob(java.lang.String solrFacetSearchConfigName,
boolean fullReIndex) |
boolean |
getBooleanSystemSetupParameter(SystemSetupContext context,
java.lang.String key)
Helper method for checking setting of a Boolean setup parameter.
|
java.util.List<SyncItemJobModel> |
getCatalogSyncJob(java.lang.String catalogId)
Searches for synchronization jobs of given catalog id
|
CatalogVersionService |
getCatalogVersionService() |
boolean |
getDefaultValueForBooleanSystemSetupParameter(java.lang.String key)
Helper method for getting default value of a Boolean setup parameter
|
EventService |
getEventService() |
abstract java.util.List<SystemSetupParameter> |
getInitializationOptions()
Abstract method to be implemented in subclasses.
|
SetupImpexService |
getSetupImpexService() |
SetupSolrIndexerService |
getSetupSolrIndexerService() |
SetupSyncJobService |
getSetupSyncJobService() |
void |
importImpexFile(SystemSetupContext context,
java.lang.String file) |
void |
importImpexFile(SystemSetupContext context,
java.lang.String file,
boolean errorIfMissing) |
void |
importImpexFile(SystemSetupContext context,
java.lang.String file,
boolean errorIfMissing,
boolean legacyMode) |
boolean |
isSyncRerunNeeded(PerformResult syncCronJobResult) |
void |
logError(SystemSetupContext context,
java.lang.String message,
java.lang.Throwable throwable)
Log an error message in to the jsp context
|
void |
logInfo(SystemSetupContext context,
java.lang.String message)
Log an info message in to the jsp context
|
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setEventService(EventService eventService) |
void |
setSetupImpexService(SetupImpexService setupImpexService) |
void |
setSetupSolrIndexerService(SetupSolrIndexerService setupSolrIndexerService) |
void |
setSetupSyncJobService(SetupSyncJobService setupSyncJobService) |
protected static final java.lang.String BOOLEAN_TRUE
protected static final java.lang.String BOOLEAN_FALSE
public abstract java.util.List<SystemSetupParameter> getInitializationOptions()
public void logInfo(SystemSetupContext context, java.lang.String message)
context - the system setup contextmessage - the message to logpublic void logError(SystemSetupContext context, java.lang.String message, java.lang.Throwable throwable)
context - the system setup contextmessage - the message to logthrowable - thrown exception, may be nullpublic SystemSetupParameter createBooleanSystemSetupParameter(java.lang.String key, java.lang.String label, boolean defaultValue)
key - label - defaultValue - public boolean getBooleanSystemSetupParameter(SystemSetupContext context, java.lang.String key)
context - key - public boolean getDefaultValueForBooleanSystemSetupParameter(java.lang.String key)
key - public java.util.List<SyncItemJobModel> getCatalogSyncJob(java.lang.String catalogId) throws UnknownIdentifierException
catalogId - to search synchronization jobs for.UnknownIdentifierException - if no catalog with given id is foundpublic PerformResult executeCatalogSyncJob(SystemSetupContext context, java.lang.String catalogId)
public void importImpexFile(SystemSetupContext context, java.lang.String file)
public void importImpexFile(SystemSetupContext context, java.lang.String file, boolean errorIfMissing)
public void importImpexFile(SystemSetupContext context, java.lang.String file, boolean errorIfMissing, boolean legacyMode)
public void createProductCatalogSyncJob(SystemSetupContext context, java.lang.String catalogId)
public void createContentCatalogSyncJob(SystemSetupContext context, java.lang.String catalogId)
public void createSolrIndexerCronJobs(java.lang.String solrFacetSearchConfigName)
public void executeSolrIndexerCronJob(java.lang.String solrFacetSearchConfigName,
boolean fullReIndex)
public void activateSolrIndexerCronJobs(java.lang.String solrFacetSearchConfigName)
public boolean isSyncRerunNeeded(PerformResult syncCronJobResult)
public 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)
Copyright © 2018 SAP SE. All Rights Reserved.