Class TypeSystemSheetPopulator
- java.lang.Object
-
- com.hybris.backoffice.excel.template.populator.typesheet.TypeSystemSheetPopulator
-
- All Implemented Interfaces:
ExcelSheetPopulator
public class TypeSystemSheetPopulator extends java.lang.Object implements ExcelSheetPopulator
Populates workbook with information about the type system.
-
-
Constructor Summary
Constructors Constructor Description TypeSystemSheetPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,TypeSystemRow>mergeAttributesByQualifier(java.util.Collection<AttributeDescriptorModel> attributes)GroupsAttributeDescriptorModels byComposedTypeModel's code.voidpopulate(ExcelExportResult excelExportResult)Populates given workbook with information about given typesprotected voidpopulate(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, java.util.Collection<AttributeDescriptorModel> attributeDescriptors)protected voidpopulateTypeSystemSheet(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, java.util.Collection<TypeSystemRow> typeSystemRows)Populates sheet with collection ofTypeSystemRows.voidsetExcelCellService(ExcelCellService excelCellService)voidsetMapper(ExcelMapper<ExcelExportResult,AttributeDescriptorModel> mapper)voidsetTypeSystemRowFactory(TypeSystemRowFactory typeSystemRowFactory)
-
-
-
Method Detail
-
populate
public void populate(@Nonnull ExcelExportResult excelExportResult)Populates given workbook with information about given types- Specified by:
populatein interfaceExcelSheetPopulator- Parameters:
excelExportResult- that contains the workbook to populate and export results to be used
-
populate
protected void populate(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, java.util.Collection<AttributeDescriptorModel> attributeDescriptors)
-
mergeAttributesByQualifier
protected java.util.Map<java.lang.String,TypeSystemRow> mergeAttributesByQualifier(java.util.Collection<AttributeDescriptorModel> attributes)
GroupsAttributeDescriptorModels byComposedTypeModel's code.- Parameters:
attributes- which should be grouped- Returns:
- a map where the key is
ComposedTypeModel's code and values areTypeSystemRows
-
populateTypeSystemSheet
protected void populateTypeSystemSheet(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, java.util.Collection<TypeSystemRow> typeSystemRows)Populates sheet with collection ofTypeSystemRows. It usesExcelTemplateConstants.TypeSystemas columns.- Parameters:
typeSystemSheet- a sheet where the information should be puttypeSystemRows- the collection ofTypeSystemRows that should be used to populate sheet
-
setMapper
public void setMapper(ExcelMapper<ExcelExportResult,AttributeDescriptorModel> mapper)
-
setTypeSystemRowFactory
public void setTypeSystemRowFactory(TypeSystemRowFactory typeSystemRowFactory)
-
setExcelCellService
public void setExcelCellService(ExcelCellService excelCellService)
-
-