Interface MerchCatalogService

  • All Known Implementing Classes:
    DefaultMerchCatalogService

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

      • getCategories

        @Deprecated(since="1911",
                    forRemoval=true)
        java.util.List<CategoryHierarchy> getCategories​(java.lang.String baseSite,
                                                        java.lang.String catalog,
                                                        java.lang.String catalogVersion,
                                                        java.lang.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.
        baseCategoryUrl - the URL we wish to use to access the category from.
        Returns:
        a List of CategoryHierarchy representing the categories.
      • getProducts

        default java.util.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.