Class NoOpMerchCatalogServiceClientAdapter

java.lang.Object
com.hybris.merchandising.client.NoOpMerchCatalogServiceClientAdapter
All Implemented Interfaces:
MerchCatalogServiceClient

public class NoOpMerchCatalogServiceClientAdapter extends Object implements MerchCatalogServiceClient
NoOpMerchCatalogServiceClientAdapter is a no-operation adapter which simply logs the output sent to it.
  • Constructor Details

    • NoOpMerchCatalogServiceClientAdapter

      public NoOpMerchCatalogServiceClientAdapter()
  • Method Details

    • handleProductsBatch

      public String handleProductsBatch(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.
      Specified by:
      handleProductsBatch in interface MerchCatalogServiceClient
      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:
      handleProductsBatchAsynch in interface MerchCatalogServiceClient
      Parameters:
      version - the version to send the products as.
      products - a list of products to send.
      Returns:
      String - ID of the operation.
    • publishProducts

      public Void publishProducts(Long version)
      publishProducts is an API for marking a set of products as being published to live in a synchronous manner.
      Specified by:
      publishProducts in interface MerchCatalogServiceClient
      Parameters:
      version - the version to publish.
      Returns:
      Void.
    • publishProductsAsync

      public 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.
      Specified by:
      publishProductsAsync in interface MerchCatalogServiceClient
      Parameters:
      version - the version to publish.
      Returns:
      Void.
    • handleCategoriesAsync

      public rx.Observable<String> handleCategoriesAsync(CategoryHierarchyWrapper categories)
      handleCategoriesAsync is an asynchronous method for sending categories to Merch v2.
      Specified by:
      handleCategoriesAsync in interface MerchCatalogServiceClient
      Parameters:
      categories - the CategoryHierarchyWrapper object to publish.
      Returns:
      an Observable containing the response.
    • handleCategories

      public String handleCategories(CategoryHierarchyWrapper categories)
      handleCategories is a method for sending categories to Merch v2.
      Specified by:
      handleCategories in interface MerchCatalogServiceClient
      Parameters:
      categories - the CategoryHierarchyWrapper object to publish.
      Returns:
      String - ID of the operation.
    • handleProductsBatch

      public 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.
      Specified by:
      handleProductsBatch in interface MerchCatalogServiceClient
      Parameters:
      products - a list of products to send.
      Returns:
      String - ID of the operation.
    • handleProductsBatchAsynch

      public 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.
      Specified by:
      handleProductsBatchAsynch in interface MerchCatalogServiceClient
      Parameters:
      products - a list of products to send.
      Returns:
      String - ID of the operation.