Class NoOpMerchCatalogServiceProductDirectoryClientAdapter

java.lang.Object
com.hybris.merchandising.client.NoOpMerchCatalogServiceProductDirectoryClientAdapter
All Implemented Interfaces:
MerchCatalogServiceProductDirectoryClient

public class NoOpMerchCatalogServiceProductDirectoryClientAdapter extends Object implements MerchCatalogServiceProductDirectoryClient
Non operational debug utility implementation of MerchCatalogServiceProductDirectoryClient.
  • Constructor Details

    • NoOpMerchCatalogServiceProductDirectoryClientAdapter

      public NoOpMerchCatalogServiceProductDirectoryClientAdapter()
  • Method Details

    • handleProductsBatch

      public String 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.
      Specified by:
      handleProductsBatch in interface MerchCatalogServiceProductDirectoryClient
      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<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:
      handleProductsBatchAsync in interface MerchCatalogServiceProductDirectoryClient
      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:
      handleProductsBatchAsync in interface MerchCatalogServiceProductDirectoryClient
      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)
      Description copied from interface: MerchCatalogServiceProductDirectoryClient
      handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.
      Specified by:
      handleProductsBatch in interface MerchCatalogServiceProductDirectoryClient
      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)
      Description copied from interface: MerchCatalogServiceProductDirectoryClient
      handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.
      Specified by:
      handleProductsBatchAsync in interface MerchCatalogServiceProductDirectoryClient
      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 Void handleProductsBatch(String productDirectoryId, List<Product> products)
      handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.
      Specified by:
      handleProductsBatch in interface MerchCatalogServiceProductDirectoryClient
      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.
    • publishProducts

      public Void publishProducts(String productDirectoryId, 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 MerchCatalogServiceProductDirectoryClient
      Parameters:
      productDirectoryId - - the product directory ID we wish to associate the products with.
      version - the version to publish.
      Returns:
      Void.
    • publishProductsAsync

      public 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.
      Specified by:
      publishProductsAsync in interface MerchCatalogServiceProductDirectoryClient
      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:
      publishProducts in interface MerchCatalogServiceProductDirectoryClient
      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:
      publishProductsAsync in interface MerchCatalogServiceProductDirectoryClient
      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:
      handleCategoriesAsync in interface MerchCatalogServiceProductDirectoryClient
      Parameters:
      productDirectoryId - - the product directory ID we wish to associate the categories with.
      categories - the CategoryHierarchyWrapper object to publish.
      Returns:
      an Observable containing the response.
    • handleCategories

      public String handleCategories(String productDirectoryId, CategoryHierarchyWrapper categories)
      handleCategories is a method for sending categories to CDS.
      Specified by:
      handleCategories in interface MerchCatalogServiceProductDirectoryClient
      Parameters:
      productDirectoryId - - the product directory ID we wish to associate the categories with.
      categories - the CategoryHierarchyWrapper object to publish.
      Returns:
      String - ID of 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:
      createProductDirectory in interface MerchCatalogServiceProductDirectoryClient
      Parameters:
      productDirectory - the ProductDirectory we wish to create.
      Returns:
      a RawResponse representing the response of the operation.
    • updateProductDirectory

      public Void updateProductDirectory(String productDirectoryId, ProductDirectory productDirectory)
      updateProductDirectory is a method for updating an existing product directory and synchronising with CDS.
      Specified by:
      updateProductDirectory in interface MerchCatalogServiceProductDirectoryClient
      Parameters:
      productDirectoryId - the ID of the ProductDirectory to update.
      productDirectory - the ProductDirectory to update.
      Returns:
      Void.
    • 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:
      createProductDirectoryAsync in interface MerchCatalogServiceProductDirectoryClient
      Parameters:
      productDirectory - the ProductDirectory we wish to create.
      Returns:
      Observable representing the RawResponse 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:
      updateProductDirectoryAsync in interface MerchCatalogServiceProductDirectoryClient
      Parameters:
      productDirectoryId - the ID of the ProductDirectory to update.
      productDirectory - the ProductDirectory to update.
      Returns:
      an Observable containing Void.
    • deleteProductDirectoryAsync

      public rx.Observable<Void> deleteProductDirectoryAsync(String productDirectoryId)
      deleteProductDirectoryAsync is a method for deleting an existing product directory and synchronising with CDS.
      Specified by:
      deleteProductDirectoryAsync in interface MerchCatalogServiceProductDirectoryClient
      Parameters:
      productDirectoryId - the ID of the ProductDirectory to delete.
      Returns:
      an Observable containing Void.
    • deleteProductDirectory

      public Void deleteProductDirectory(String productDirectoryId)
      deleteProductDirectory is a method for deleting an existing product directory and synchronising with CDS.
      Specified by:
      deleteProductDirectory in interface MerchCatalogServiceProductDirectoryClient
      Parameters:
      productDirectoryId - the ID of the ProductDirectory to delete.
      Returns:
      Void.