Class CategoryHierarchyPopulator
- java.lang.Object
-
- de.hybris.platform.commercefacades.catalog.converters.populator.CategoryHierarchyPopulator
-
- All Implemented Interfaces:
PageablePopulator<CategoryModel,CategoryHierarchyData,CatalogOption>
public class CategoryHierarchyPopulator extends java.lang.Object implements PageablePopulator<CategoryModel,CategoryHierarchyData,CatalogOption>
-
-
Constructor Summary
Constructors Constructor Description CategoryHierarchyPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractUrlResolver<CategoryModel>getCategoryUrlResolver()protected AbstractPopulatingConverter<ProductModel,ProductData>getProductConverter()protected ProductServicegetProductService()voidpopulate(CategoryModel source, CategoryHierarchyData target, java.util.Collection<? extends CatalogOption> options, PageOption page)Populate the target instance from the source instance.protected voidrecursive(CategoryHierarchyData categoryData2, CategoryModel category, boolean root, java.util.Collection<? extends CatalogOption> options)voidsetCategoryUrlResolver(AbstractUrlResolver<CategoryModel> categoryUrlResolver)voidsetProductConverter(AbstractPopulatingConverter<ProductModel,ProductData> productConverter)voidsetProductService(ProductService productService)
-
-
-
Method Detail
-
populate
public void populate(CategoryModel source, CategoryHierarchyData target, java.util.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, java.util.Collection<? extends CatalogOption> options)
-
setProductConverter
public void setProductConverter(AbstractPopulatingConverter<ProductModel,ProductData> productConverter)
-
setProductService
public void setProductService(ProductService productService)
-
setCategoryUrlResolver
public void setCategoryUrlResolver(AbstractUrlResolver<CategoryModel> categoryUrlResolver)
-
getProductConverter
protected AbstractPopulatingConverter<ProductModel,ProductData> getProductConverter()
-
getProductService
protected ProductService getProductService()
-
getCategoryUrlResolver
public AbstractUrlResolver<CategoryModel> getCategoryUrlResolver()
-
-