Package com.hybris.merchandising.client
Class MerchCatalogServiceClientAdapter
java.lang.Object
com.hybris.merchandising.client.MerchCatalogServiceClientAdapter
- All Implemented Interfaces:
MerchCatalogServiceClient
MerchCatalogServiceClientAdapter is a client for the Merchandising Catalog Service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the configured service.protected ApiRegistryClientServiceGets the configured client service.handleCategories(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.voidsetApiRegistryClientService(ApiRegistryClientService apiRegistryClientService) Sets the configured client service.
-
Constructor Details
-
MerchCatalogServiceClientAdapter
public MerchCatalogServiceClientAdapter()
-
-
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.
-
getAdaptee
Gets the configured service.- Returns:
- the configured
MerchCatalogServiceClient.
-
getYaasServiceFactory
Gets the configured client service.- Returns:
- the configured
ApiRegistryClientService.
-
setApiRegistryClientService
Sets the configured client service.- Parameters:
apiRegistryClientService-ApiRegistryClientService.
-