Class DefaultMerchCategoryExporter
java.lang.Object
de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<CronJobModel>
com.hybris.merchandising.exporter.DefaultMerchCategoryExporter
- All Implemented Interfaces:
MerchCategoryExporter,JobPerformable<CronJobModel>
@Deprecated(since="1911",
forRemoval=true)
public class DefaultMerchCategoryExporter
extends AbstractJobPerformable<CronJobModel>
implements MerchCategoryExporter
Deprecated, for removal: This API element is subject to removal in a future version.
DefaultMerchCategoryExporter is a default implementation of
MerchCategoryExporter for the purposes of
exporting the categories from a configured catalog / catalog version to Merch v2.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
flexibleSearchService, modelService, sessionService -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.exportCategories is a method for retrieving the category hierarchy and invoking a call to Merch v2 to persist the hierarchy.voidexportCategories(MerchProductDirectoryConfigModel productDirectory) Deprecated, for removal: This API element is subject to removal in a future version.exportCategories is a method for retrieving the categories to synchronise for a given product directory.voidDeprecated, for removal: This API element is subject to removal in a future version.exportCategoriesForCurrentBaseSite is a method for retrieving the category hierarchy and invoking a call to Merch v2 to persist the hierarchy.protected BaseSiteServiceDeprecated, for removal: This API element is subject to removal in a future version.Gets the configured instance ofBaseSiteServicefor use with this.protected ChangeDetectionServiceDeprecated, for removal: This API element is subject to removal in a future version.Gets the configured instance ofChangeDetectionServicefor use with this.protected MerchCatalogServiceClientDeprecated, for removal: This API element is subject to removal in a future version.Gets the configured client for handling the sending of the categories to Merch v2.protected MerchCatalogServiceDeprecated, for removal: This API element is subject to removal in a future version.Gets the configured catalog service.protected MerchSynchronizationConfigDaoDeprecated, for removal: This API element is subject to removal in a future version.Retrieves the configured DAO to retrieve the configuration.protected TypeServiceDeprecated, for removal: This API element is subject to removal in a future version.Gets the configuredTypeServiceinstance for retrieving composed type for class.protected PerformResultperform(InMemoryChangesCollector collector) Deprecated, for removal: This API element is subject to removal in a future version.perform is a method for actually performing the delta detection functionality.perform(CronJobModel cronJob) Deprecated, for removal: This API element is subject to removal in a future version.The execution body for aServicelayerJob.voidsetBaseSiteService(BaseSiteService baseSiteService) Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured instance ofBaseSiteService.voidsetChangeDetectionService(ChangeDetectionService changeDetectionService) Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured instance ofChangeDetectionService.voidsetClient(MerchCatalogServiceClient client) Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured client for handling the sending of categories to Merch v2.voidsetMerchCatalogService(MerchCatalogService merchCatalogService) Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured catalog service.voidsetMerchSynchronizationConfigDao(MerchSynchronizationConfigDao merchSynchronizationConfigDao) Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured DAO to retrieve the configuration.voidsetTypeService(TypeService typeService) Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured instance ofTypeServicefor use.Methods inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionService
-
Constructor Details
-
DefaultMerchCategoryExporter
public DefaultMerchCategoryExporter()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
exportCategories
public void exportCategories()Deprecated, for removal: This API element is subject to removal in a future version.exportCategories is a method for retrieving the category hierarchy and invoking a call to Merch v2 to persist the hierarchy.- Specified by:
exportCategoriesin interfaceMerchCategoryExporter
-
exportCategoriesForCurrentBaseSite
public void exportCategoriesForCurrentBaseSite()Deprecated, for removal: This API element is subject to removal in a future version.exportCategoriesForCurrentBaseSite is a method for retrieving the category hierarchy and invoking a call to Merch v2 to persist the hierarchy.- Specified by:
exportCategoriesForCurrentBaseSitein interfaceMerchCategoryExporter
-
exportCategories
Deprecated, for removal: This API element is subject to removal in a future version.exportCategories is a method for retrieving the categories to synchronise for a given product directory.- Specified by:
exportCategoriesin interfaceMerchCategoryExporter- Parameters:
productDirectory- the product directory we wish to extract categories for.
-
perform
Deprecated, for removal: This API element is subject to removal in a future version.The execution body for aServicelayerJob. 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.- Specified by:
performin interfaceJobPerformable<CronJobModel>- Specified by:
performin classAbstractJobPerformable<CronJobModel>- Parameters:
cronJob- the related CronJob in whose context the execution will be performed.- Returns:
- a
PerformResultthat indicates whether theexecutionwas successfully executed or not and has finished or not.
-
perform
Deprecated, for removal: This API element is subject to removal in a future version.perform is a method for actually performing the delta detection functionality.- Parameters:
collector- theInMemoryChangesCollectorto hold the changed.- Returns:
- an instance of
PerformResultrepresenting the result of the delta detection job.
-
getMerchSynchronizationConfigDao
Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the configured DAO to retrieve the configuration.- Returns:
- the configured
MerchSynchronizationConfigDao.
-
setMerchSynchronizationConfigDao
public void setMerchSynchronizationConfigDao(MerchSynchronizationConfigDao merchSynchronizationConfigDao) Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured DAO to retrieve the configuration.- Parameters:
merchSynchronizationConfigDao-
-
getMerchCatalogService
Deprecated, for removal: This API element is subject to removal in a future version.Gets the configured catalog service.- Returns:
- the configured
MerchCatalogService.
-
setMerchCatalogService
Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured catalog service.- Parameters:
merchCatalogService- the configuredMerchCatalogService.
-
getClient
Deprecated, for removal: This API element is subject to removal in a future version.Gets the configured client for handling the sending of the categories to Merch v2.- Returns:
- the configured
MerchCatalogServiceClient.
-
setClient
Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured client for handling the sending of categories to Merch v2.- Parameters:
client- the configuredMerchCatalogServiceClientto send categories as.
-
getTypeService
Deprecated, for removal: This API element is subject to removal in a future version.Gets the configuredTypeServiceinstance for retrieving composed type for class.- Returns:
- the configured
TypeService.
-
setTypeService
Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured instance ofTypeServicefor use.- Parameters:
typeService- theTypeServiceto inject.
-
getChangeDetectionService
Deprecated, for removal: This API element is subject to removal in a future version.Gets the configured instance ofChangeDetectionServicefor use with this.- Returns:
- configured
ChangeDetectionService.
-
setChangeDetectionService
Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured instance ofChangeDetectionService.- Parameters:
changeDetectionService- - theChangeDetectionServiceto inject.
-
getBaseSiteService
Deprecated, for removal: This API element is subject to removal in a future version.Gets the configured instance ofBaseSiteServicefor use with this.- Returns:
- configured
BaseSiteService.
-
setBaseSiteService
Deprecated, for removal: This API element is subject to removal in a future version.Sets the configured instance ofBaseSiteService.- Parameters:
changeDetectionService- - theBaseSiteServiceto inject.
-
DefaultMerchProductDirectoryCategoryExporter.