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.
  • 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:
      exportCategories in interface MerchCategoryExporter
    • 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:
      exportCategoriesForCurrentBaseSite in interface MerchCategoryExporter
    • exportCategories

      public void exportCategories(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.
      Specified by:
      exportCategories in interface MerchCategoryExporter
      Parameters:
      productDirectory - the product directory we wish to extract categories for.
    • perform

      public PerformResult perform(CronJobModel cronJob)
      Deprecated, for removal: This API element is subject to removal in a future version.
      The execution body for a 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.
      Specified by:
      perform in interface JobPerformable<CronJobModel>
      Specified by:
      perform in class AbstractJobPerformable<CronJobModel>
      Parameters:
      cronJob - the related CronJob in whose context the execution will be performed.
      Returns:
      a PerformResult that indicates whether the execution was successfully executed or not and has finished or not.
    • perform

      protected PerformResult perform(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.
      Parameters:
      collector - the InMemoryChangesCollector to hold the changed.
      Returns:
      an instance of PerformResult representing the result of the delta detection job.
    • getMerchSynchronizationConfigDao

      protected MerchSynchronizationConfigDao 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

      protected MerchCatalogService 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

      public void setMerchCatalogService(MerchCatalogService merchCatalogService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the configured catalog service.
      Parameters:
      merchCatalogService - the configured MerchCatalogService.
    • getClient

      protected MerchCatalogServiceClient 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

      public void setClient(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.
      Parameters:
      client - the configured MerchCatalogServiceClient to send categories as.
    • getTypeService

      protected TypeService getTypeService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the configured TypeService instance for retrieving composed type for class.
      Returns:
      the configured TypeService.
    • setTypeService

      public void setTypeService(TypeService typeService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the configured instance of TypeService for use.
      Parameters:
      typeService - the TypeService to inject.
    • getChangeDetectionService

      protected ChangeDetectionService getChangeDetectionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the configured instance of ChangeDetectionService for use with this.
      Returns:
      configured ChangeDetectionService.
    • setChangeDetectionService

      public void setChangeDetectionService(ChangeDetectionService changeDetectionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the configured instance of ChangeDetectionService.
      Parameters:
      changeDetectionService - - the ChangeDetectionService to inject.
    • getBaseSiteService

      protected BaseSiteService getBaseSiteService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the configured instance of BaseSiteService for use with this.
      Returns:
      configured BaseSiteService.
    • setBaseSiteService

      public void setBaseSiteService(BaseSiteService baseSiteService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the configured instance of BaseSiteService.
      Parameters:
      changeDetectionService - - the BaseSiteService to inject.