Interface MerchCatalogService

All Known Implementing Classes:
DefaultMerchCatalogService

public interface MerchCatalogService
MerchCatalogService is a service for the purpose of making catalog queries.
  • Method Details

    • getCategories

      @Deprecated(since="1911", forRemoval=true) List<CategoryHierarchy> getCategories(String baseSite, String catalog, String catalogVersion, String baseCatalogPageUrl)
      Deprecated, for removal: This API element is subject to removal in a future version.
      see com.hybris.merchandising.service.MerchCatalogService.getCategories(MerchProductDirectoryConfigModel)
      getCategories is a method for retrieving the category hierarchy (including subcategories).
      Parameters:
      baseSite - the base site we wish to retrieve the category hierarchy for.
      catalog - the catalog we wish to retrieve the category hierarchy from.
      catalogVersion - the catalog version we wish to retrieve the category hierarchy for.
      baseCatalogPageUrl - the URL we wish to use to access the category from.
      Returns:
      a List of CategoryHierarchy representing the categories.
    • getProducts

      default List<Product> getProducts(IndexerBatchContext indexerBatchContext, MerchProductDirectoryConfigModel merchProductDirectoryConfigModel) throws IndexerException
      Method to retrieve all the associated to IndexerBatchContext.
      Parameters:
      indexerBatchContext - represents a context valid for the duration of an indexer batch.
      merchProductDirectoryConfigModel - the config model being used to retrieve products for.
      Returns:
      List of that represents the merchandising properties
      Throws:
      IndexerException - in case of errors.
    • getCategories

      default List<CategoryHierarchy> getCategories(MerchProductDirectoryConfigModel merchProductDirectoryConfigModel) throws IndexerException
      Retrieves a list of CategoryHierarchy objects representing the category hierarchy.
      Parameters:
      merchProductDirectoryConfigModel - - the MerchProductDirectoryConfigModel to retrieve categories for.
      Returns:
      a List representing the category hierarchy.
      Throws:
      IndexerException - in case of errors.
    • getProducts

      default List<Product> getProducts(SnIndexerBatchContext indexerBatchContext, MerchSnConfigModel merchConfig, MerchSnSynchContext merchContext)
      Method to retrieve all the associated to SnIndexerBatchContext.
      Parameters:
      indexerBatchContext - Indexer context
      merchConfig - Merchandising product directory configuration
      merchContext - represents a context valid for the duration of an indexer batch.
      Returns:
      List of that represents the merchandising properties
    • getCategories

      default List<CategoryHierarchy> getCategories(MerchSnConfigModel merchSnConfig)
      Retrieves a list of CategoryHierarchy objects representing the category hierarchy.
      Parameters:
      merchSnConfig - Merchandising product directory configuration.
      Returns:
      a List representing the category hierarchy.
    • getCatalogVersionsToSynch

      default List<CatalogVersionModel> getCatalogVersionsToSynch(MerchSnConfigModel merchSnConfig)
      Returns catalog versions related to given merchandising configuration which should be synchronized
      Parameters:
      merchSnConfig - Merchandising product directory configuration.
      Returns:
      List of catalog versions, which should be synchronized