Package com.hybris.merchandising.client
Class MerchCatalogServiceClientAdapter
- java.lang.Object
-
- com.hybris.merchandising.client.MerchCatalogServiceClientAdapter
-
- All Implemented Interfaces:
MerchCatalogServiceClient
public class MerchCatalogServiceClientAdapter extends java.lang.Object implements MerchCatalogServiceClient
MerchCatalogServiceClientAdapter is a client for the Merchandising Catalog Service.
-
-
Constructor Summary
Constructors Constructor Description MerchCatalogServiceClientAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MerchCatalogServiceClientgetAdaptee()Gets the configured service.protected ApiRegistryClientServicegetYaasServiceFactory()Gets the configured client service.java.lang.StringhandleCategories(CategoryHierarchyWrapper categories)handleCategories is a method for sending categories to Merch v2.rx.Observable<java.lang.String>handleCategoriesAsync(CategoryHierarchyWrapper categories)handleCategoriesAsync is an asynchronous method for sending categories to Merch v2.java.lang.StringhandleProductsBatch(java.lang.Long version, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> products)handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.java.lang.StringhandleProductsBatch(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> products)handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.rx.Observable<java.lang.String>handleProductsBatchAsynch(java.lang.Long version, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> products)handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.rx.Observable<java.lang.String>handleProductsBatchAsynch(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> products)handleProductsBatchAsynch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.java.lang.VoidpublishProducts(java.lang.Long version)publishProducts is an API for marking a set of products as being published to live in a synchronous manner.rx.Observable<java.lang.Void>publishProductsAsync(java.lang.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.
-
-
-
Method Detail
-
handleProductsBatch
public java.lang.String handleProductsBatch(java.lang.Long version, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> products)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<java.lang.String> handleProductsBatchAsynch(java.lang.Long version, java.util.List<java.util.Map<java.lang.String,java.lang.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
public java.lang.Void publishProducts(java.lang.Long version)
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
public rx.Observable<java.lang.Void> publishProductsAsync(java.lang.Long version)
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
public rx.Observable<java.lang.String> handleCategoriesAsync(CategoryHierarchyWrapper categories)
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
public java.lang.String handleCategories(CategoryHierarchyWrapper categories)
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
public java.lang.String handleProductsBatch(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> products)
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
public rx.Observable<java.lang.String> handleProductsBatchAsynch(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> products)
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
public MerchCatalogServiceClient getAdaptee()
Gets the configured service.- Returns:
- the configured
MerchCatalogServiceClient.
-
getYaasServiceFactory
protected ApiRegistryClientService getYaasServiceFactory()
Gets the configured client service.- Returns:
- the configured
ApiRegistryClientService.
-
setApiRegistryClientService
public void setApiRegistryClientService(ApiRegistryClientService apiRegistryClientService)
Sets the configured client service.- Parameters:
apiRegistryClientService-ApiRegistryClientService.
-
-