Package com.hybris.merchandising.client
Class MerchCatalogServiceProductDirectoryClientAdapter
java.lang.Object
com.hybris.merchandising.client.MerchCatalogServiceProductDirectoryClientAdapter
- All Implemented Interfaces:
MerchCatalogServiceProductDirectoryClient
public class MerchCatalogServiceProductDirectoryClientAdapter
extends Object
implements MerchCatalogServiceProductDirectoryClient
MerchCatalogServiceClientAdapter is a client for the Merchandising Catalog Service to synchronise product directories,
products and categories from commerce.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.hybris.charon.RawResponsecreateProductDirectory(ProductDirectory productDirectory) createProductDirectory is a method for creating a product directory and synchronising with CDS.rx.Observable<com.hybris.charon.RawResponse>createProductDirectoryAsync(ProductDirectory productDirectory) createProductDirectoryAsync is a method for creating a product directory and synchronising with CDS.deleteProductDirectory(String productDirectoryId) deleteProductDirectory is a method for deleting an existing product directory and synchronising with CDS.rx.Observable<Void>deleteProductDirectoryAsync(String productDirectoryId) deleteProductDirectoryAsync is a method for deleting an existing product directory and synchronising with CDS.Gets the configured service.protected ApiRegistryClientServiceGets the configured client service.handleCategories(String productDirectoryId, CategoryHierarchyWrapper categories) handleCategories is a method for sending categories to CDS.rx.Observable<String>handleCategoriesAsync(String productDirectoryId, CategoryHierarchyWrapper categories) handleCategoriesAsync is an asynchronous method for sending categories to CDS.handleProductsBatch(String productDirectoryId, Long version, List<Product> products) handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.handleProductsBatch(String productDirectoryId, String version, List<Product> products) handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.handleProductsBatch(String productDirectoryId, List<Product> products) handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.rx.Observable<String>handleProductsBatchAsync(String productDirectoryId, Long version, List<Product> products) handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.rx.Observable<String>handleProductsBatchAsync(String productDirectoryId, String version, List<Product> products) handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.rx.Observable<Void>handleProductsBatchAsync(String productDirectoryId, List<Product> products) handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.publishProducts(String productDirectoryId, Long version) publishProducts is an API for marking a set of products as being published to live in a synchronous manner.publishProducts(String productDirectoryId, String version, ProductPublishContext context) publishProducts is an API for marking a set of products as being published to live in a synchronous manner.rx.Observable<Void>publishProductsAsync(String productDirectoryId, Long version) publishProductsAsync is an API for marking a set of products as being published to live in an asynchronous manner.rx.Observable<Void>publishProductsAsync(String productDirectoryId, String version, ProductPublishContext context) publishProductsAsync 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.updateProductDirectory(String productDirectoryId, ProductDirectory productDirectory) updateProductDirectory is a method for updating an existing product directory and synchronising with CDS.rx.Observable<Void>updateProductDirectoryAsync(String productDirectoryId, ProductDirectory productDirectory) updateProductDirectoryAsync is a method for updating an existing product directory and synchronising with CDS.
-
Constructor Details
-
MerchCatalogServiceProductDirectoryClientAdapter
public MerchCatalogServiceProductDirectoryClientAdapter()
-
-
Method Details
-
handleProductsBatch
handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.- Specified by:
handleProductsBatchin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the products with.version- the version to send the products as.products- a list of products to send.- Returns:
- String - ID of the operation.
-
handleProductsBatchAsync
public rx.Observable<String> handleProductsBatchAsync(String productDirectoryId, String version, List<Product> products) handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.- Specified by:
handleProductsBatchAsyncin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the products with.version- the version to send the products as.products- a list of products to send.- Returns:
- String - ID of the operation.
-
handleProductsBatch
public String handleProductsBatch(String productDirectoryId, String version, List<Product> products) handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.- Specified by:
handleProductsBatchin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the products with.version- the version to send the products as.products- a list of products to send.- 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 interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the products with.products- a list of products to send.- Returns:
- String - ID of the operation.
-
handleProductsBatchAsync
public rx.Observable<Void> handleProductsBatchAsync(String productDirectoryId, List<Product> products) handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.- Specified by:
handleProductsBatchAsyncin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the products with.products- a list of products to send.- Returns:
- String - ID of the operation.
-
handleProductsBatchAsync
public rx.Observable<String> handleProductsBatchAsync(String productDirectoryId, Long version, List<Product> products) handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.- Specified by:
handleProductsBatchAsyncin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the products with.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 interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the products with.version- the version to publish.- Returns:
- Void.
-
publishProductsAsync
publishProductsAsync is an API for marking a set of products as being published to live in an asynchronous manner.- Specified by:
publishProductsAsyncin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the products with.version- the version to publish.- Returns:
- an Observable containing Void.
-
publishProducts
public Void publishProducts(String productDirectoryId, String version, ProductPublishContext context) publishProducts is an API for marking a set of products as being published to live in a synchronous manner.- Specified by:
publishProductsin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the products with.version- the version to publish.context- additional info e.g. total number of products- Returns:
- Void.
-
publishProductsAsync
public rx.Observable<Void> publishProductsAsync(String productDirectoryId, String version, ProductPublishContext context) publishProductsAsync is an API for marking a set of products as being published to live in an asynchronous manner.- Specified by:
publishProductsAsyncin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the products with.version- the version to publish.context- additional info e.g. total number of products- Returns:
- Void.
-
handleCategoriesAsync
public rx.Observable<String> handleCategoriesAsync(String productDirectoryId, CategoryHierarchyWrapper categories) handleCategoriesAsync is an asynchronous method for sending categories to CDS.- Specified by:
handleCategoriesAsyncin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the categories with.categories- theCategoryHierarchyWrapperobject to publish.- Returns:
- an Observable containing the response.
-
handleCategories
handleCategories is a method for sending categories to CDS.- Specified by:
handleCategoriesin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the categories with.categories- theCategoryHierarchyWrapperobject to publish.- Returns:
- String - ID of the operation.
-
createProductDirectoryAsync
public rx.Observable<com.hybris.charon.RawResponse> createProductDirectoryAsync(ProductDirectory productDirectory) createProductDirectoryAsync is a method for creating a product directory and synchronising with CDS.- Specified by:
createProductDirectoryAsyncin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectory- theProductDirectorywe wish to create.- Returns:
- Observable representing the
RawResponseof the operation.
-
createProductDirectory
createProductDirectory is a method for creating a product directory and synchronising with CDS.- Specified by:
createProductDirectoryin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectory- theProductDirectorywe wish to create.- Returns:
- a
RawResponserepresenting the response of the operation.
-
updateProductDirectoryAsync
public rx.Observable<Void> updateProductDirectoryAsync(String productDirectoryId, ProductDirectory productDirectory) updateProductDirectoryAsync is a method for updating an existing product directory and synchronising with CDS.- Specified by:
updateProductDirectoryAsyncin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- the ID of theProductDirectoryto update.productDirectory- theProductDirectoryto update.- Returns:
- an Observable containing Void.
-
updateProductDirectory
updateProductDirectory is a method for updating an existing product directory and synchronising with CDS.- Specified by:
updateProductDirectoryin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- the ID of theProductDirectoryto update.productDirectory- theProductDirectoryto update.- Returns:
- Void.
-
deleteProductDirectoryAsync
deleteProductDirectoryAsync is a method for deleting an existing product directory and synchronising with CDS.- Specified by:
deleteProductDirectoryAsyncin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- the ID of theProductDirectoryto delete.- Returns:
- an Observable containing Void.
-
deleteProductDirectory
deleteProductDirectory is a method for deleting an existing product directory and synchronising with CDS.- Specified by:
deleteProductDirectoryin interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- the ID of theProductDirectoryto delete.- Returns:
- Void.
-
getAdaptee
Gets the configured service.- Returns:
- the configured
MerchCatalogServiceProductDirectoryClient.
-
getApiRegistryClientService
Gets the configured client service.- Returns:
- the configured
ApiRegistryClientService.
-
setApiRegistryClientService
Sets the configured client service.- Parameters:
apiRegistryClientService-ApiRegistryClientService.
-