Class DefaultProductExportFacade

    • Constructor Detail

      • DefaultProductExportFacade

        public DefaultProductExportFacade()
    • Method Detail

      • getProductAttribute

        protected java.lang.Object getProductAttribute​(ProductModel productModel,
                                                       java.lang.String attribute)
        Get an attribute value from a product. If the attribute value is null and the product is a variant then the same attribute will be requested from the base product.
        Parameters:
        productModel - the product
        attribute - the name of the attribute to lookup
        Returns:
        the value of the attribute
      • getAllProductsForOptions

        public ProductResultData getAllProductsForOptions​(java.lang.String catalog,
                                                          java.lang.String version,
                                                          java.util.Collection<ProductOption> options,
                                                          int start,
                                                          int count)
        Description copied from interface: ProductExportFacade
        Retrieves all products
        Specified by:
        getAllProductsForOptions in interface ProductExportFacade
        Parameters:
        catalog - the catalog from which to get the products
        version - the catalog version
        options - options set that determines amount of information that will be attached to the returned product.
        start - index position of the first Product, which will be included in the returned List
        count - number of Products which will be returned in the List
        Returns:
        ProductResultData
      • getExportedCatalogVersions

        protected java.util.Collection<CatalogVersionModel> getExportedCatalogVersions​(java.lang.String catalog,
                                                                                       java.lang.String version)
      • getOnlyModifiedProductsForOptions

        public ProductResultData getOnlyModifiedProductsForOptions​(java.lang.String catalog,
                                                                   java.lang.String version,
                                                                   java.util.Date modifiedTime,
                                                                   java.util.Collection<ProductOption> options,
                                                                   int start,
                                                                   int count)
        Description copied from interface: ProductExportFacade
        Retrieves products that were modified after timestamp
        Specified by:
        getOnlyModifiedProductsForOptions in interface ProductExportFacade
        Parameters:
        catalog - the catalog from which to get the products
        version - the catalog version
        modifiedTime - timestamp
        options - options set that determines amount of information that will be attached to the returned product.
        start - index position of the first Product, which will be included in the returned List
        count - number of Products which will be returned in the List
        Returns:
        ProductResultData
      • createResultDataWithPagination

        protected ProductResultData createResultDataWithPagination​(int start,
                                                                   int count,
                                                                   java.util.List<ProductData> productsData,
                                                                   int pageSize,
                                                                   long totalNumberOfResults)
      • setExportProductService

        public void setExportProductService​(ExportProductService exportProductService)
      • setProductService

        public void setProductService​(ProductService productService)
      • getModelService

        protected ModelService getModelService()
      • setModelService

        public void setModelService​(ModelService modelService)
      • setProductCategoriesPopulator

        public void setProductCategoriesPopulator​(ProductCategoriesPopulator productCategoriesPopulator)
      • setCatalogVersionService

        public void setCatalogVersionService​(CatalogVersionService catalogVersionService)