Class TypeSystemSheetPopulator
java.lang.Object
com.hybris.backoffice.excel.template.populator.typesheet.TypeSystemSheetPopulator
- All Implemented Interfaces:
ExcelSheetPopulator
Populates workbook with information about the type system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,TypeSystemRow> mergeAttributesByQualifier(Collection<AttributeDescriptorModel> attributes) GroupsAttributeDescriptorModels byComposedTypeModel's code and name.voidpopulate(ExcelExportResult excelExportResult) Populates given workbook with information about given typesprotected voidpopulate(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, Collection<AttributeDescriptorModel> attributeDescriptors) protected voidpopulateTypeSystemSheet(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, Collection<TypeSystemRow> typeSystemRows) Populates sheet with collection ofTypeSystemRows.voidsetExcelCellService(ExcelCellService excelCellService) voidvoidsetTypeSystemRowFactory(TypeSystemRowFactory typeSystemRowFactory)
-
Constructor Details
-
TypeSystemSheetPopulator
public TypeSystemSheetPopulator()
-
-
Method Details
-
populate
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, Collection<AttributeDescriptorModel> attributeDescriptors) -
mergeAttributesByQualifier
protected Map<String,TypeSystemRow> mergeAttributesByQualifier(Collection<AttributeDescriptorModel> attributes) GroupsAttributeDescriptorModels byComposedTypeModel's code and name.- Parameters:
attributes- which should be grouped- Returns:
- a map where the key is
ComposedTypeModel's code joined with its name, and values areTypeSystemRows
-
populateTypeSystemSheet
protected void populateTypeSystemSheet(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, 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
-
setTypeSystemRowFactory
-
setExcelCellService
-