Class MerchCatalogServiceProductDirectoryClientAdapter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.hybris.charon.RawResponse createProductDirectory​(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.Void deleteProductDirectory​(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.
      MerchCatalogServiceProductDirectoryClient getAdaptee()
      Gets the configured service.
      protected ApiRegistryClientService getApiRegistryClientService()
      Gets the configured client service.
      java.lang.String handleCategories​(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.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.
      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.
      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.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.
      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.
      void setApiRegistryClientService​(ApiRegistryClientService apiRegistryClientService)
      Sets the configured client service.
      java.lang.Void updateProductDirectory​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MerchCatalogServiceProductDirectoryClientAdapter

        public MerchCatalogServiceProductDirectoryClientAdapter()
    • 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:
        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.
      • 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:
        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.
      • 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:
        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<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:
        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.
      • 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:
        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<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:
        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.
      • 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:
        deleteProductDirectoryAsync in interface MerchCatalogServiceProductDirectoryClient
        Parameters:
        productDirectoryId - the ID of the ProductDirectory to 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:
        deleteProductDirectory in interface MerchCatalogServiceProductDirectoryClient
        Parameters:
        productDirectoryId - the ID of the ProductDirectory to delete.
        Returns:
        Void.