Package com.hybris.merchandising.service
Interface MerchCatalogService
- All Known Implementing Classes:
DefaultMerchCatalogService
public interface MerchCatalogService
MerchCatalogService is a service for the purpose of making catalog queries.
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<CatalogVersionModel>getCatalogVersionsToSynch(MerchSnConfigModel merchSnConfig) Returns catalog versions related to given merchandising configuration which should be synchronizeddefault List<CategoryHierarchy>getCategories(MerchProductDirectoryConfigModel merchProductDirectoryConfigModel) Retrieves a list ofCategoryHierarchyobjects representing the category hierarchy.default List<CategoryHierarchy>getCategories(MerchSnConfigModel merchSnConfig) Retrieves a list ofCategoryHierarchyobjects representing the category hierarchy.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)getProducts(SnIndexerBatchContext indexerBatchContext, MerchSnConfigModel merchConfig, MerchSnSynchContext merchContext) Method to retrieve all the associated toSnIndexerBatchContext.getProducts(IndexerBatchContext indexerBatchContext, MerchProductDirectoryConfigModel merchProductDirectoryConfigModel) Method to retrieve all the associated toIndexerBatchContext.
-
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
CategoryHierarchyrepresenting the categories.
-
getProducts
default 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 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.
-
getProducts
default List<Product> getProducts(SnIndexerBatchContext indexerBatchContext, MerchSnConfigModel merchConfig, MerchSnSynchContext merchContext) Method to retrieve all the associated toSnIndexerBatchContext.- Parameters:
indexerBatchContext- Indexer contextmerchConfig- Merchandising product directory configurationmerchContext- represents a context valid for the duration of an indexer batch.- Returns:
- List of that represents the merchandising properties
-
getCategories
Retrieves a list ofCategoryHierarchyobjects representing the category hierarchy.- Parameters:
merchSnConfig- Merchandising product directory configuration.- Returns:
- a List representing the category hierarchy.
-
getCatalogVersionsToSynch
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
-