Package com.hybris.merchandising.client
Class NoOpMerchCatalogServiceClientAdapter
java.lang.Object
com.hybris.merchandising.client.NoOpMerchCatalogServiceClientAdapter
- All Implemented Interfaces:
MerchCatalogServiceClient
public class NoOpMerchCatalogServiceClientAdapter
extends Object
implements MerchCatalogServiceClient
NoOpMerchCatalogServiceClientAdapter is a no-operation adapter which
simply logs the output sent to it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleCategories(CategoryHierarchyWrapper categories) handleCategories is a method for sending categories to Merch v2.rx.Observable<String>handleCategoriesAsync(CategoryHierarchyWrapper categories) handleCategoriesAsync is an asynchronous method for sending categories to Merch v2.handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.handleProductsBatch(List<Map<String, Object>> products) handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.rx.Observable<String>handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.rx.Observable<String>handleProductsBatchAsynch(List<Map<String, Object>> products) handleProductsBatchAsynch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.publishProducts(Long version) publishProducts is an API for marking a set of products as being published to live in a synchronous manner.rx.Observable<Void>publishProductsAsync(Long version) publishProducts is an API for marking a set of products as being published to live in an asynchronous manner.
-
Constructor Details
-
NoOpMerchCatalogServiceClientAdapter
public NoOpMerchCatalogServiceClientAdapter()
-
-
Method Details
-
handleProductsBatch
handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.- Specified by:
handleProductsBatchin interfaceMerchCatalogServiceClient- Parameters:
version- the version to send the products as.products- a list of products to send.- Returns:
- String - ID of the operation.
-
handleProductsBatchAsynch
public rx.Observable<String> handleProductsBatchAsynch(Long version, List<Map<String, Object>> products) handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.- Specified by:
handleProductsBatchAsynchin interfaceMerchCatalogServiceClient- Parameters:
version- the version to send the products as.products- a list of products to send.- Returns:
- String - ID of the operation.
-
publishProducts
publishProducts is an API for marking a set of products as being published to live in a synchronous manner.- Specified by:
publishProductsin interfaceMerchCatalogServiceClient- Parameters:
version- the version to publish.- Returns:
- Void.
-
publishProductsAsync
publishProducts is an API for marking a set of products as being published to live in an asynchronous manner.- Specified by:
publishProductsAsyncin interfaceMerchCatalogServiceClient- Parameters:
version- the version to publish.- Returns:
- Void.
-
handleCategoriesAsync
handleCategoriesAsync is an asynchronous method for sending categories to Merch v2.- Specified by:
handleCategoriesAsyncin interfaceMerchCatalogServiceClient- Parameters:
categories- theCategoryHierarchyWrapperobject to publish.- Returns:
- an Observable containing the response.
-
handleCategories
handleCategories is a method for sending categories to Merch v2.- Specified by:
handleCategoriesin interfaceMerchCatalogServiceClient- Parameters:
categories- theCategoryHierarchyWrapperobject to publish.- Returns:
- String - ID of the operation.
-
handleProductsBatch
handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.- Specified by:
handleProductsBatchin interfaceMerchCatalogServiceClient- Parameters:
products- a list of products to send.- Returns:
- String - ID of the operation.
-
handleProductsBatchAsynch
handleProductsBatchAsynch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.- Specified by:
handleProductsBatchAsynchin interfaceMerchCatalogServiceClient- Parameters:
products- a list of products to send.- Returns:
- String - ID of the operation.
-