Interface CatalogService
- All Known Implementing Classes:
DefaultCatalogService
public interface CatalogService
Service to interact with Catalog service to retrieve products for indexing.
-
Method Summary
Modifier and TypeMethodDescriptionreadBatchOfProductIds(String startId, int batchSize) Deprecated.readBatchOfProductIds(String startId, int batchSize, Map<String, Object> additionalProperties) Reads a batch of IDs to be placed in a queue for processing.List<com.broadleafcommerce.search.catalog.core.domain.Product>Reads a batch ofProductsby an id.List<com.broadleafcommerce.search.catalog.core.domain.Product>readBatchOfProducts(List<String> ids) Reads a batch ofProductsby their IDs.
-
Method Details
-
readBatchOfProductIds
@Deprecated(since="2.1.5-GA") List<String> readBatchOfProductIds(@Nullable String startId, int batchSize) throws com.broadleafcommerce.search.api.SearchIndexException Deprecated.in favor ofreadBatchOfProductIds(String, int, Map<String, Object>)for the potential to utilize a time range when reading products.- Throws:
com.broadleafcommerce.search.api.SearchIndexException
-
readBatchOfProductIds
List<String> readBatchOfProductIds(@Nullable String startId, int batchSize, @Nullable Map<String, Object> additionalProperties) throws com.broadleafcommerce.search.api.SearchIndexExceptionReads a batch of IDs to be placed in a queue for processing.- Parameters:
startId- The starting IDbatchSize- The size of the batch to readadditionalProperties- additional information that can be used to filter the items to be indexed- Returns:
- A list of product IDs.
- Throws:
com.broadleafcommerce.search.api.SearchIndexException
-
readBatchOfProducts
List<com.broadleafcommerce.search.catalog.core.domain.Product> readBatchOfProducts(List<String> ids) throws com.broadleafcommerce.search.api.SearchIndexException Reads a batch ofProductsby their IDs.- Parameters:
ids- A list of product IDs.- Returns:
- A list of products or an empty list.
- Throws:
com.broadleafcommerce.search.api.SearchIndexException- if the service call fails for any reason.
-
readBatchOfProducts
List<com.broadleafcommerce.search.catalog.core.domain.Product> readBatchOfProducts(String id) throws com.broadleafcommerce.search.api.SearchIndexException Reads a batch ofProductsby an id.- Parameters:
id- A product ID.- Returns:
- A list of products or an empty list.
- Throws:
com.broadleafcommerce.search.api.SearchIndexException- if the service call fails for any reason.
-
readBatchOfProductIds(String, int, Map<String, Object>)for the potential to utilize a time range when reading products.