Class CategoryHierarchyPopulator
java.lang.Object
de.hybris.platform.commercefacades.catalog.converters.populator.CategoryHierarchyPopulator
- All Implemented Interfaces:
PageablePopulator<CategoryModel,CategoryHierarchyData, CatalogOption>
public class CategoryHierarchyPopulator
extends Object
implements PageablePopulator<CategoryModel,CategoryHierarchyData,CatalogOption>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractPopulatingConverter<ProductModel,ProductData> protected ProductServicevoidpopulate(CategoryModel source, CategoryHierarchyData target, Collection<? extends CatalogOption> options, PageOption page) Populate the target instance from the source instance.protected voidrecursive(CategoryHierarchyData categoryData2, CategoryModel category, boolean root, Collection<? extends CatalogOption> options) voidsetCategoryUrlResolver(AbstractUrlResolver<CategoryModel> categoryUrlResolver) voidsetProductConverter(AbstractPopulatingConverter<ProductModel, ProductData> productConverter) voidsetProductService(ProductService productService)
-
Constructor Details
-
CategoryHierarchyPopulator
public CategoryHierarchyPopulator()
-
-
Method Details
-
populate
public void populate(CategoryModel source, CategoryHierarchyData target, Collection<? extends CatalogOption> options, PageOption page) throws ConversionException Description copied from interface:PageablePopulatorPopulate the target instance from the source instance. The collection of options is used to control what data is populated.- Specified by:
populatein interfacePageablePopulator<CategoryModel,CategoryHierarchyData, CatalogOption> - Parameters:
source- the source objecttarget- the target to filloptions- options used to control what data is populated- Throws:
ConversionException- if an error occurs
-
recursive
protected void recursive(CategoryHierarchyData categoryData2, CategoryModel category, boolean root, Collection<? extends CatalogOption> options) -
setProductConverter
public void setProductConverter(AbstractPopulatingConverter<ProductModel, ProductData> productConverter) -
setProductService
-
setCategoryUrlResolver
-
getProductConverter
-
getProductService
-
getCategoryUrlResolver
-