public class DefaultMerchCategoryExporter extends AbstractJobPerformable<CronJobModel> implements MerchCategoryExporter
MerchCategoryExporter for the purposes of
exporting the categories from a configured catalog / catalog version to Merch v2.flexibleSearchService, modelService, sessionService| Constructor and Description |
|---|
DefaultMerchCategoryExporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
exportCategories()
exportCategories is a method for retrieving the category hierarchy and
invoking a call to Merch v2 to persist the hierarchy.
|
void |
exportCategoriesForCurrentBaseSite()
exportCategoriesForCurrentBaseSite is a method for retrieving the category hierarchy and
invoking a call to Merch v2 to persist the hierarchy.
|
protected BaseSiteService |
getBaseSiteService()
Gets the configured instance of
BaseSiteService for use with this. |
protected ChangeDetectionService |
getChangeDetectionService()
Gets the configured instance of
ChangeDetectionService for use with this. |
protected MerchCatalogServiceClient |
getClient()
Gets the configured client for handling the sending of the categories to Merch v2.
|
protected MerchCatalogService |
getMerchCatalogService()
Gets the configured catalog service.
|
protected MerchSynchronizationConfigDao |
getMerchSynchronizationConfigDao()
Retrieves the configured DAO to retrieve the configuration.
|
protected TypeService |
getTypeService()
Gets the configured
TypeService instance for retrieving composed type for class. |
PerformResult |
perform(CronJobModel cronJob)
The execution body for a
ServicelayerJob. |
protected PerformResult |
perform(InMemoryChangesCollector collector)
perform is a method for actually performing the delta detection functionality.
|
void |
setBaseSiteService(BaseSiteService baseSiteService)
Sets the configured instance of
BaseSiteService. |
void |
setChangeDetectionService(ChangeDetectionService changeDetectionService)
Sets the configured instance of
ChangeDetectionService. |
void |
setClient(MerchCatalogServiceClient client)
Sets the configured client for handling the sending of categories to Merch v2.
|
void |
setMerchCatalogService(MerchCatalogService merchCatalogService)
Sets the configured catalog service.
|
void |
setMerchSynchronizationConfigDao(MerchSynchronizationConfigDao merchSynchronizationConfigDao)
Sets the configured DAO to retrieve the configuration.
|
void |
setTypeService(TypeService typeService)
Sets the configured instance of
TypeService for use. |
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionServicepublic void exportCategories()
exportCategories in interface MerchCategoryExporterpublic void exportCategoriesForCurrentBaseSite()
exportCategoriesForCurrentBaseSite in interface MerchCategoryExporterpublic PerformResult perform(CronJobModel cronJob)
ServicelayerJob. Implement here your execution logic. It can be called
synchronous or asynchronous. So be aware of thread-safety. Method will return a result object saying if the
execution has reached end and if it was successful.perform in interface JobPerformable<CronJobModel>perform in class AbstractJobPerformable<CronJobModel>cronJob - the related CronJob in whose context the execution will be performed.PerformResult that indicates whether the execution was successfully executed
or not and has finished or not.protected PerformResult perform(InMemoryChangesCollector collector)
collector - the InMemoryChangesCollector to hold the changed.PerformResult representing the result of the delta detection job.protected MerchSynchronizationConfigDao getMerchSynchronizationConfigDao()
MerchSynchronizationConfigDao.public void setMerchSynchronizationConfigDao(MerchSynchronizationConfigDao merchSynchronizationConfigDao)
merchSynchronizationConfigDao - protected MerchCatalogService getMerchCatalogService()
MerchCatalogService.public void setMerchCatalogService(MerchCatalogService merchCatalogService)
merchCatalogService - the configured MerchCatalogService.protected MerchCatalogServiceClient getClient()
MerchCatalogServiceClient.public void setClient(MerchCatalogServiceClient client)
client - the configured MerchCatalogServiceClient to send categories as.protected TypeService getTypeService()
TypeService instance for retrieving composed type for class.TypeService.public void setTypeService(TypeService typeService)
TypeService for use.typeService - the TypeService to inject.protected ChangeDetectionService getChangeDetectionService()
ChangeDetectionService for use with this.ChangeDetectionService.public void setChangeDetectionService(ChangeDetectionService changeDetectionService)
ChangeDetectionService.changeDetectionService - - the ChangeDetectionService to inject.protected BaseSiteService getBaseSiteService()
BaseSiteService for use with this.BaseSiteService.public void setBaseSiteService(BaseSiteService baseSiteService)
BaseSiteService.changeDetectionService - - the BaseSiteService to inject.Copyright © 2018 SAP SE. All Rights Reserved.