Package com.hybris.merchandising.client
Interface MerchCatalogServiceClient
- All Known Implementing Classes:
MerchCatalogServiceClientAdapter,NoOpMerchCatalogServiceClientAdapter
public interface MerchCatalogServiceClient
MerchCatalogServiceClient is a JAX-RS interface for the Merchandising Catalog Service.
-
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.
-
Method Details
-
handleProductsBatch
@POST @Produces("application/json") @Path("/${tenant}/products") String handleProductsBatch(@QueryParam("version") Long version, List<Map<String, Object>> products) handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.- Parameters:
version- the version to send the products as.products- a list of products to send.- Returns:
- String - ID of the operation.
-
handleProductsBatch
@POST @Produces("application/json") @Path("/${tenant}/products") String handleProductsBatch(List<Map<String, Object>> products) handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.- Parameters:
products- a list of products to send.- Returns:
- String - ID of the operation.
-
handleProductsBatchAsynch
@POST @Produces("application/json") @Path("/${tenant}/products") 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.- Parameters:
products- a list of products to send.- Returns:
- String - ID of the operation.
-
handleProductsBatchAsynch
@POST @Produces("application/json") @Path("/${tenant}/products") rx.Observable<String> handleProductsBatchAsynch(@QueryParam("version") 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.- Parameters:
version- the version to send the products as.products- a list of products to send.- Returns:
- String - ID of the operation.
-
publishProducts
@POST @Produces("application/json") @Path("/${tenant}/products/publish") Void publishProducts(@QueryParam("version") Long version) publishProducts is an API for marking a set of products as being published to live in a synchronous manner.- Parameters:
version- the version to publish.- Returns:
- Void.
-
publishProductsAsync
@POST @Produces("application/json") @Path("/${tenant}/products/publish") rx.Observable<Void> publishProductsAsync(@QueryParam("version") Long version) publishProducts is an API for marking a set of products as being published to live in an asynchronous manner.- Parameters:
version- the version to publish.- Returns:
- Void.
-
handleCategoriesAsync
@POST @Produces("application/json") @Path("/${tenant}/categories") rx.Observable<String> handleCategoriesAsync(CategoryHierarchyWrapper categories) handleCategoriesAsync is an asynchronous method for sending categories to Merch v2.- Parameters:
categories- theCategoryHierarchyWrapperobject to publish.- Returns:
- an Observable containing the response.
-
handleCategories
@POST @Produces("application/json") @Path("/${tenant}/categories") String handleCategories(CategoryHierarchyWrapper categories) handleCategories is a method for sending categories to Merch v2.- Parameters:
categories- theCategoryHierarchyWrapperobject to publish.- Returns:
- String - ID of the operation.
-