Class DefaultProductExportFacade
java.lang.Object
de.hybris.platform.commercefacades.product.impl.DefaultProductExportFacade
- All Implemented Interfaces:
ProductExportFacade
Default implementation of
ProductExportFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ProductData>convertModelsToDTOs(Collection<ProductOption> options, List<ProductModel> models) protected ProductResultDatacreateResultDataWithPagination(int start, int count, List<ProductData> productsData, int pageSize, long totalNumberOfResults) getAllProductsForOptions(String catalog, String version, Collection<ProductOption> options, int start, int count) Retrieves all productsprotected Collection<CatalogVersionModel>getExportedCatalogVersions(String catalog, String version) protected ExportProductServiceprotected ModelServicegetOnlyModifiedProductsForOptions(String catalog, String version, Date modifiedTime, Collection<ProductOption> options, int start, int count) Retrieves products that were modified after timestampprotected ObjectgetProductAttribute(ProductModel productModel, String attribute) Get an attribute value from a product.protected ProductCategoriesPopulatorprotected Converter<ProductModel,ProductData> protected ProductServicevoidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetExportProductService(ExportProductService exportProductService) voidsetModelService(ModelService modelService) voidsetProductCategoriesPopulator(ProductCategoriesPopulator productCategoriesPopulator) voidsetProductConfiguredPopulator(ConfigurablePopulator<ProductModel, ProductData, ProductOption> productConfiguredPopulator) voidsetProductConverter(Converter<ProductModel, ProductData> productConverter) voidsetProductService(ProductService productService)
-
Constructor Details
-
DefaultProductExportFacade
public DefaultProductExportFacade()
-
-
Method Details
-
getProductAttribute
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 productattribute- the name of the attribute to lookup- Returns:
- the value of the attribute
-
getAllProductsForOptions
public ProductResultData getAllProductsForOptions(String catalog, String version, Collection<ProductOption> options, int start, int count) Description copied from interface:ProductExportFacadeRetrieves all products- Specified by:
getAllProductsForOptionsin interfaceProductExportFacade- Parameters:
catalog- the catalog from which to get the productsversion- the catalog versionoptions- 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 Listcount- number of Products which will be returned in the List- Returns:
ProductResultData
-
getExportedCatalogVersions
protected Collection<CatalogVersionModel> getExportedCatalogVersions(String catalog, String version) -
getOnlyModifiedProductsForOptions
public ProductResultData getOnlyModifiedProductsForOptions(String catalog, String version, Date modifiedTime, Collection<ProductOption> options, int start, int count) Description copied from interface:ProductExportFacadeRetrieves products that were modified after timestamp- Specified by:
getOnlyModifiedProductsForOptionsin interfaceProductExportFacade- Parameters:
catalog- the catalog from which to get the productsversion- the catalog versionmodifiedTime- timestampoptions- 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 Listcount- number of Products which will be returned in the List- Returns:
ProductResultData
-
createResultDataWithPagination
protected ProductResultData createResultDataWithPagination(int start, int count, List<ProductData> productsData, int pageSize, long totalNumberOfResults) -
convertModelsToDTOs
protected List<ProductData> convertModelsToDTOs(Collection<ProductOption> options, List<ProductModel> models) -
getExportProductService
-
setExportProductService
-
getProductService
-
setProductService
-
getModelService
-
setModelService
-
getProductConverter
-
setProductConverter
-
getProductConfiguredPopulator
protected ConfigurablePopulator<ProductModel,ProductData, getProductConfiguredPopulator()ProductOption> -
setProductConfiguredPopulator
public void setProductConfiguredPopulator(ConfigurablePopulator<ProductModel, ProductData, ProductOption> productConfiguredPopulator) -
getProductCategoriesPopulator
-
setProductCategoriesPopulator
-
setCatalogVersionService
-