Package com.hybris.merchandising.service
Interface MerchCatalogService
-
- All Known Implementing Classes:
DefaultMerchCatalogService
public interface MerchCatalogServiceMerchCatalogService is a service for the purpose of making catalog queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.util.List<CategoryHierarchy>getCategories(MerchProductDirectoryConfigModel merchProductDirectoryConfigModel)Retrieves a list ofCategoryHierarchyobjects representing the category hierarchy.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)default java.util.List<Product>getProducts(IndexerBatchContext indexerBatchContext, MerchProductDirectoryConfigModel merchProductDirectoryConfigModel)Method to retrieve all the associated toIndexerBatchContext.
-
-
-
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
CategoryHierarchyrepresenting the categories.
-
getProducts
default java.util.List<Product> getProducts(IndexerBatchContext indexerBatchContext, MerchProductDirectoryConfigModel merchProductDirectoryConfigModel) throws IndexerException
Method to retrieve all the associated toIndexerBatchContext.- 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 java.util.List<CategoryHierarchy> getCategories(MerchProductDirectoryConfigModel merchProductDirectoryConfigModel) throws IndexerException
Retrieves a list ofCategoryHierarchyobjects representing the category hierarchy.- Parameters:
merchProductDirectoryConfigModel- - theMerchProductDirectoryConfigModelto retrieve categories for.- Returns:
- a List representing the category hierarchy.
- Throws:
IndexerException- in case of errors.
-
-