Package com.hybris.merchandising.client
Class MerchCatalogServiceProductDirectoryClientAdapter
- java.lang.Object
-
- com.hybris.merchandising.client.MerchCatalogServiceProductDirectoryClientAdapter
-
- All Implemented Interfaces:
MerchCatalogServiceProductDirectoryClient
public class MerchCatalogServiceProductDirectoryClientAdapter extends java.lang.Object implements MerchCatalogServiceProductDirectoryClient
MerchCatalogServiceClientAdapter is a client for the Merchandising Catalog Service to synchronise product directories, products and categories from commerce.
-
-
Constructor Summary
Constructors Constructor Description MerchCatalogServiceProductDirectoryClientAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.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.java.lang.VoiddeleteProductDirectory(java.lang.String productDirectoryId)deleteProductDirectory is a method for deleting an existing product directory and synchronising with CDS.rx.Observable<java.lang.Void>deleteProductDirectoryAsync(java.lang.String productDirectoryId)deleteProductDirectoryAsync is a method for deleting an existing product directory and synchronising with CDS.MerchCatalogServiceProductDirectoryClientgetAdaptee()Gets the configured service.protected ApiRegistryClientServicegetApiRegistryClientService()Gets the configured client service.java.lang.StringhandleCategories(java.lang.String productDirectoryId, CategoryHierarchyWrapper categories)handleCategories is a method for sending categories to CDS.rx.Observable<java.lang.String>handleCategoriesAsync(java.lang.String productDirectoryId, CategoryHierarchyWrapper categories)handleCategoriesAsync is an asynchronous method for sending categories to CDS.java.lang.StringhandleProductsBatch(java.lang.String productDirectoryId, java.lang.Long version, java.util.List<Product> products)handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.java.lang.VoidhandleProductsBatch(java.lang.String productDirectoryId, java.util.List<Product> products)handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.rx.Observable<java.lang.String>handleProductsBatchAsync(java.lang.String productDirectoryId, java.lang.Long version, java.util.List<Product> products)handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.rx.Observable<java.lang.Void>handleProductsBatchAsync(java.lang.String productDirectoryId, java.util.List<Product> products)handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.java.lang.VoidpublishProducts(java.lang.String productDirectoryId, 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.String productDirectoryId, java.lang.Long version)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.java.lang.VoidupdateProductDirectory(java.lang.String productDirectoryId, ProductDirectory productDirectory)updateProductDirectory is a method for updating an existing product directory and synchronising with CDS.rx.Observable<java.lang.Void>updateProductDirectoryAsync(java.lang.String productDirectoryId, ProductDirectory productDirectory)updateProductDirectoryAsync is a method for updating an existing product directory and synchronising with CDS.
-
-
-
Method Detail
-
handleProductsBatch
public java.lang.String handleProductsBatch(java.lang.String productDirectoryId, java.lang.Long version, java.util.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
public java.lang.Void handleProductsBatch(java.lang.String productDirectoryId, java.util.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.products- a list of products to send.- Returns:
- String - ID of the operation.
-
handleProductsBatchAsync
public rx.Observable<java.lang.Void> handleProductsBatchAsync(java.lang.String productDirectoryId, java.util.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<java.lang.String> handleProductsBatchAsync(java.lang.String productDirectoryId, java.lang.Long version, java.util.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
public java.lang.Void publishProducts(java.lang.String productDirectoryId, 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 interfaceMerchCatalogServiceProductDirectoryClient- Parameters:
productDirectoryId- - the product directory ID we wish to associate the products with.version- the version to publish.- Returns:
- Void.
-
publishProductsAsync
public rx.Observable<java.lang.Void> publishProductsAsync(java.lang.String productDirectoryId, java.lang.Long version)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.
-
handleCategoriesAsync
public rx.Observable<java.lang.String> handleCategoriesAsync(java.lang.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
public java.lang.String handleCategories(java.lang.String productDirectoryId, CategoryHierarchyWrapper categories)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
public com.hybris.charon.RawResponse createProductDirectory(ProductDirectory productDirectory)
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<java.lang.Void> updateProductDirectoryAsync(java.lang.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
public java.lang.Void updateProductDirectory(java.lang.String productDirectoryId, ProductDirectory productDirectory)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
public rx.Observable<java.lang.Void> deleteProductDirectoryAsync(java.lang.String productDirectoryId)
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
public java.lang.Void deleteProductDirectory(java.lang.String productDirectoryId)
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
public MerchCatalogServiceProductDirectoryClient getAdaptee()
Gets the configured service.- Returns:
- the configured
MerchCatalogServiceProductDirectoryClient.
-
getApiRegistryClientService
protected ApiRegistryClientService getApiRegistryClientService()
Gets the configured client service.- Returns:
- the configured
ApiRegistryClientService.
-
setApiRegistryClientService
public void setApiRegistryClientService(ApiRegistryClientService apiRegistryClientService)
Sets the configured client service.- Parameters:
apiRegistryClientService-ApiRegistryClientService.
-
-