Class DefaultExcelTemplateService
java.lang.Object
com.hybris.backoffice.excel.template.DefaultExcelTemplateService
- All Implemented Interfaces:
ExcelTemplateService
@Deprecated(since="1808",
forRemoval=true)
public class DefaultExcelTemplateService
extends Object
implements ExcelTemplateService
Deprecated, for removal: This API element is subject to removal in a future version.
since 1808.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivateFirstNonUtilitySheet(org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.since 1808.protected voidaddAttributeToExcelTypeSystemSheet(AttributeDescriptorModel attributeDescriptor, org.apache.poi.ss.usermodel.Sheet sheet) Deprecated, for removal: This API element is subject to removal in a future version.since 1808, please useTypeSystemSheetPopulator.populate(ExcelExportResult)instead.protected voidaddAttributeToExcelTypeSystemSheet(AttributeDescriptorModel attributeDescriptor, org.apache.poi.ss.usermodel.Sheet sheet, String langIsoCode) Deprecated, for removal: This API element is subject to removal in a future version.since 1808, please useTypeSystemSheetPopulator.populate(ExcelExportResult)instead.voidaddTypeSheet(String typeName, org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Adds a new sheet to given workbook.org.apache.poi.ss.usermodel.RowcreateEmptyRow(org.apache.poi.ss.usermodel.Sheet sheet) Deprecated, for removal: This API element is subject to removal in a future version.Creates an empty row in given sheet.org.apache.poi.ss.usermodel.SheetcreateTypeSheet(String typeCode, org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new type sheet in given workbook.org.apache.poi.ss.usermodel.WorkbookDeprecated, for removal: This API element is subject to removal in a future version.Creates workbook object based on inputStream of excel file.intfindColumnIndex(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, org.apache.poi.ss.usermodel.Sheet sheet, SelectedAttribute selectedAttribute) Deprecated, for removal: This API element is subject to removal in a future version.Finds column index based on selected attribute.findSheetNameForTypeCode(String typeCode, org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Finds sheet name for given type code.findTypeCodeForSheetName(String sheetName, org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Finds type code for given sheet name.protected StringgetAttributeDescriptorName(AttributeDescriptorModel attributeDescriptor) Deprecated, for removal: This API element is subject to removal in a future version.since 1808.getAttributeDisplayName(AttributeDescriptorModel attributeDescriptorModel, String isoCode) Deprecated, for removal: This API element is subject to removal in a future version.Returns displayed header name based on attribute descriptorgetCellValue(org.apache.poi.ss.usermodel.Cell cell) Deprecated, for removal: This API element is subject to removal in a future version.Returns cell value as a string value.Deprecated, for removal: This API element is subject to removal in a future version.since 1808.Deprecated, for removal: This API element is subject to removal in a future version.since 1808.Deprecated, for removal: This API element is subject to removal in a future version.since 1808.Deprecated, for removal: This API element is subject to removal in a future version.since 1808.getHeaders(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, org.apache.poi.ss.usermodel.Sheet typeSheet) Deprecated, for removal: This API element is subject to removal in a future version.Returns list of selected attributes for given sheet, based on metainformation from type system sheet.Deprecated, for removal: This API element is subject to removal in a future version.since 1808.getSelectedAttributesQualifiers(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, org.apache.poi.ss.usermodel.Sheet typeSheet) Deprecated, for removal: This API element is subject to removal in a future version.Returns qualifiers of attributes which at selected in the typSheetList<org.apache.poi.ss.usermodel.Sheet>getSheets(org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Returns all sheets except utility sheets.getSheetsNames(org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Returns all sheets names except utility sheets.Deprecated, for removal: This API element is subject to removal in a future version.org.apache.poi.ss.usermodel.SheetgetTypeSystemSheet(org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Returns sheet which contains metadata about type systemprotected intDeprecated, for removal: This API element is subject to removal in a future version.since 1808.protected voidhideUtilitySheet(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName) Deprecated, for removal: This API element is subject to removal in a future version.since 1808.voidinsertAttributeHeader(org.apache.poi.ss.usermodel.Sheet sheet, SelectedAttribute selectedAttribute, int columnIndex) Deprecated, for removal: This API element is subject to removal in a future version.Inserts value to the sheet's header (first row)voidinsertAttributesHeader(org.apache.poi.ss.usermodel.Sheet sheet, Collection<SelectedAttribute> selectedAttributes) Deprecated, for removal: This API element is subject to removal in a future version.A shortcut forExcelTemplateService.insertAttributeHeader(Sheet, SelectedAttribute, int)It is possible to inserts all values to the header at once instead of invokingExcelTemplateService.insertAttributeHeader(Sheet, SelectedAttribute, int)for every attribute separatelyvoidinsertAttributeValue(org.apache.poi.ss.usermodel.Cell cell, Object object) Deprecated, for removal: This API element is subject to removal in a future version.Inserts given value to a given cellprotected booleanisMandatory(AttributeDescriptorModel attributeDescriptor, String langIsoCode) Deprecated, for removal: This API element is subject to removal in a future version.since 1808.protected voidpopulateTypeSystemSheet(ComposedTypeModel composedType, org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.since 1808, please useTypeSystemSheetPopulator.populate(ExcelExportResult)instead.voidsetAttributeNameFormatter(AttributeNameFormatter<ExcelAttributeDescriptorAttribute> attributeNameFormatter) Deprecated, for removal: This API element is subject to removal in a future version.voidsetCellService(ExcelCellService cellService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetCommonI18NService(CommonI18NService commonI18NService) Deprecated, for removal: This API element is subject to removal in a future version.since 1808.voidsetExcelDateUtils(ExcelDateUtils excelDateUtils) Deprecated, for removal: This API element is subject to removal in a future version.since 1808.voidsetExcelSheetNamingStrategy(ExcelSheetNamingStrategy excelSheetNamingStrategy) Deprecated, for removal: This API element is subject to removal in a future version.since 1808.voidsetExcelTranslatorRegistry(ExcelTranslatorRegistry excelTranslatorRegistry) Deprecated, for removal: This API element is subject to removal in a future version.since 1808.voidsetHeaderService(ExcelHeaderService headerService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetPermissionCRUDService(PermissionCRUDService permissionCRUDService) Deprecated, for removal: This API element is subject to removal in a future version.since 1808.voidsetSheetService(ExcelSheetService sheetService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetTypeService(TypeService typeService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetWorkbookService(ExcelWorkbookService workbookService) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
DefaultExcelTemplateService
public DefaultExcelTemplateService()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
createWorkbook
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceCreates workbook object based on inputStream of excel file. If inputStream doesn't contains excel file then new empty Workbook will be returned.- Specified by:
createWorkbookin interfaceExcelTemplateService- Parameters:
is- Input stream of excel file- Returns:
Workbookobject which represents excel file
-
getTypeSystemSheet
public org.apache.poi.ss.usermodel.Sheet getTypeSystemSheet(org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceReturns sheet which contains metadata about type system- Specified by:
getTypeSystemSheetin interfaceExcelTemplateService- Parameters:
workbook-Workbookobject which represents excel file- Returns:
Sheetwhich contains information about type system
-
getSheetsNames
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceReturns all sheets names except utility sheets.- Specified by:
getSheetsNamesin interfaceExcelTemplateService- Parameters:
workbook-Workbookobject which represents excel file- Returns:
- list of sheets names
-
getSheets
public List<org.apache.poi.ss.usermodel.Sheet> getSheets(org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceReturns all sheets except utility sheets.- Specified by:
getSheetsin interfaceExcelTemplateService- Parameters:
workbook-Workbookobject which represents excel file- Returns:
- list of sheets
-
getCellValue
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceReturns cell value as a string value. In case when cell contains formula then the formula is evaluated and result of the evaluation is returned.- Specified by:
getCellValuein interfaceExcelTemplateService- Parameters:
cell-Cell- Returns:
- string value of cell
-
getHeaders
public List<SelectedAttribute> getHeaders(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, org.apache.poi.ss.usermodel.Sheet typeSheet) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceReturns list of selected attributes for given sheet, based on metainformation from type system sheet.- Specified by:
getHeadersin interfaceExcelTemplateService- Parameters:
typeSystemSheet-Sheetcontains metainformation about attributes for each type sheetstypeSheet-Sheetcontains data for given sheet- Returns:
- list of selected attributes
-
getSelectedAttributesQualifiers
public List<SelectedAttributeQualifier> getSelectedAttributesQualifiers(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, org.apache.poi.ss.usermodel.Sheet typeSheet) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceReturns qualifiers of attributes which at selected in the typSheet- Specified by:
getSelectedAttributesQualifiersin interfaceExcelTemplateService- Parameters:
typeSystemSheet-Sheetcontains metainformation about attributes for each type sheetstypeSheet-Sheetcontains data for given sheet- Returns:
- list of selected attributes.
-
findColumnIndex
public int findColumnIndex(org.apache.poi.ss.usermodel.Sheet typeSystemSheet, org.apache.poi.ss.usermodel.Sheet sheet, SelectedAttribute selectedAttribute) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceFinds column index based on selected attribute. If column doesn't exist then -1 will be returned.- Specified by:
findColumnIndexin interfaceExcelTemplateService- Parameters:
typeSystemSheet- - sheet which contains information about type systemsheet- sheet for current typeselectedAttribute- attribute for which column index should be found.- Returns:
- column index for given selected attribute. If column doesn't exist then -1 will be returned.
-
createTypeSheet
public org.apache.poi.ss.usermodel.Sheet createTypeSheet(String typeCode, org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceCreates a new type sheet in given workbook. If a sheet with given typeCode already exists, it is returned without creating an extra one.- Specified by:
createTypeSheetin interfaceExcelTemplateService- Parameters:
typeCode- a new sheet nameworkbook- workbook which will be extended by a new sheet- Returns:
- sheet
-
findTypeCodeForSheetName
public String findTypeCodeForSheetName(String sheetName, org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceFinds type code for given sheet name.- Specified by:
findTypeCodeForSheetNamein interfaceExcelTemplateService- Parameters:
sheetName- sheet name.workbook- workbook.- Returns:
- found type code.
-
findSheetNameForTypeCode
public String findSheetNameForTypeCode(String typeCode, org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceFinds sheet name for given type code.- Specified by:
findSheetNameForTypeCodein interfaceExcelTemplateService- Parameters:
typeCode- type codeworkbook- workbook- Returns:
- found type code.
-
addTypeSheet
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceAdds a new sheet to given workbook.- Specified by:
addTypeSheetin interfaceExcelTemplateService- Parameters:
typeName- a new sheet name.workbook- workbook which will be extended by a new sheet
-
insertAttributeHeader
public void insertAttributeHeader(org.apache.poi.ss.usermodel.Sheet sheet, SelectedAttribute selectedAttribute, int columnIndex) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceInserts value to the sheet's header (first row)- Specified by:
insertAttributeHeaderin interfaceExcelTemplateService- Parameters:
sheet- where the value will be insertedselectedAttribute- a pojo which allows to retrieve value to insertcolumnIndex- index of a column for inserted value
-
insertAttributesHeader
public void insertAttributesHeader(org.apache.poi.ss.usermodel.Sheet sheet, Collection<SelectedAttribute> selectedAttributes) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceA shortcut forExcelTemplateService.insertAttributeHeader(Sheet, SelectedAttribute, int)It is possible to inserts all values to the header at once instead of invokingExcelTemplateService.insertAttributeHeader(Sheet, SelectedAttribute, int)for every attribute separately- Specified by:
insertAttributesHeaderin interfaceExcelTemplateService- Parameters:
sheet- where the value will be insertedselectedAttributes- a pojo which allows to retrieve value to insert
-
insertAttributeValue
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceInserts given value to a given cell- Specified by:
insertAttributeValuein interfaceExcelTemplateService- Parameters:
cell- where the value will be insertedobject- a value to insert
-
createEmptyRow
public org.apache.poi.ss.usermodel.Row createEmptyRow(org.apache.poi.ss.usermodel.Sheet sheet) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceCreates an empty row in given sheet.- Specified by:
createEmptyRowin interfaceExcelTemplateService- Parameters:
sheet- where the row will be created- Returns:
- row
-
getAttributeDisplayName
public String getAttributeDisplayName(AttributeDescriptorModel attributeDescriptorModel, String isoCode) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelTemplateServiceReturns displayed header name based on attribute descriptor- Specified by:
getAttributeDisplayNamein interfaceExcelTemplateService- Parameters:
attributeDescriptorModel- attribute descriptor of selected attributeisoCode- - isoCode of language- Returns:
- displayed header name based on attribute descriptor
-
hideUtilitySheet
@Deprecated(since="1808", forRemoval=true) protected void hideUtilitySheet(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName) Deprecated, for removal: This API element is subject to removal in a future version.since 1808. Process of hiding sheets was moved toHideUtilitySheetsDecorator -
getUtilitySheetHiddenLevel
Deprecated, for removal: This API element is subject to removal in a future version.since 1808. Process of hiding sheets was moved toHideUtilitySheetsDecorator -
activateFirstNonUtilitySheet
@Deprecated(since="1808", forRemoval=true) protected void activateFirstNonUtilitySheet(org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.since 1808. Process of hiding sheets was moved toHideUtilitySheetsDecorator -
populateTypeSystemSheet
@Deprecated(since="1808", forRemoval=true) protected void populateTypeSystemSheet(ComposedTypeModel composedType, org.apache.poi.ss.usermodel.Workbook workbook) Deprecated, for removal: This API element is subject to removal in a future version.since 1808, please useTypeSystemSheetPopulator.populate(ExcelExportResult)instead. The typeSystem sheet is now being populated inExcelExportWorkbookPostProcessorviaExcelExportWorkbookDecorator -
addAttributeToExcelTypeSystemSheet
@Deprecated(since="1808", forRemoval=true) protected void addAttributeToExcelTypeSystemSheet(AttributeDescriptorModel attributeDescriptor, org.apache.poi.ss.usermodel.Sheet sheet) Deprecated, for removal: This API element is subject to removal in a future version.since 1808, please useTypeSystemSheetPopulator.populate(ExcelExportResult)instead. The typeSystem sheet is now being populated inExcelExportWorkbookPostProcessorviaExcelExportWorkbookDecorator -
addAttributeToExcelTypeSystemSheet
@Deprecated(since="1808", forRemoval=true) protected void addAttributeToExcelTypeSystemSheet(AttributeDescriptorModel attributeDescriptor, org.apache.poi.ss.usermodel.Sheet sheet, String langIsoCode) Deprecated, for removal: This API element is subject to removal in a future version.since 1808, please useTypeSystemSheetPopulator.populate(ExcelExportResult)instead. The typeSystem sheet is now being populated inExcelExportWorkbookPostProcessorviaExcelExportWorkbookDecorator -
isMandatory
@Deprecated(since="1808", forRemoval=true) protected boolean isMandatory(AttributeDescriptorModel attributeDescriptor, String langIsoCode) Deprecated, for removal: This API element is subject to removal in a future version.since 1808. Logic was moved toDisplayNameAttributeNameFormatter -
getAttributeDescriptorName
@Deprecated(since="1808", forRemoval=true) protected String getAttributeDescriptorName(AttributeDescriptorModel attributeDescriptor) Deprecated, for removal: This API element is subject to removal in a future version.since 1808. Logic was moved toDisplayNameAttributeNameFormatter -
setCellService
Deprecated, for removal: This API element is subject to removal in a future version. -
setHeaderService
Deprecated, for removal: This API element is subject to removal in a future version. -
setSheetService
Deprecated, for removal: This API element is subject to removal in a future version. -
setWorkbookService
Deprecated, for removal: This API element is subject to removal in a future version. -
setAttributeNameFormatter
public void setAttributeNameFormatter(AttributeNameFormatter<ExcelAttributeDescriptorAttribute> attributeNameFormatter) Deprecated, for removal: This API element is subject to removal in a future version. -
getTypeService
Deprecated, for removal: This API element is subject to removal in a future version. -
setTypeService
Deprecated, for removal: This API element is subject to removal in a future version. -
getCommonI18NService
Deprecated, for removal: This API element is subject to removal in a future version.since 1808. -
setCommonI18NService
@Deprecated(since="1808", forRemoval=true) public void setCommonI18NService(CommonI18NService commonI18NService) Deprecated, for removal: This API element is subject to removal in a future version.since 1808. -
getExcelTranslatorRegistry
@Deprecated(since="1808", forRemoval=true) public ExcelTranslatorRegistry getExcelTranslatorRegistry()Deprecated, for removal: This API element is subject to removal in a future version.since 1808. -
setExcelTranslatorRegistry
@Deprecated(since="1808", forRemoval=true) public void setExcelTranslatorRegistry(ExcelTranslatorRegistry excelTranslatorRegistry) Deprecated, for removal: This API element is subject to removal in a future version.since 1808. -
getPermissionCRUDService
Deprecated, for removal: This API element is subject to removal in a future version.since 1808. -
setPermissionCRUDService
@Deprecated(since="1808", forRemoval=true) public void setPermissionCRUDService(PermissionCRUDService permissionCRUDService) Deprecated, for removal: This API element is subject to removal in a future version.since 1808. -
getExcelDateUtils
Deprecated, for removal: This API element is subject to removal in a future version.since 1808. -
setExcelDateUtils
@Deprecated(since="1808", forRemoval=true) public void setExcelDateUtils(ExcelDateUtils excelDateUtils) Deprecated, for removal: This API element is subject to removal in a future version.since 1808. -
getExcelSheetNamingStrategy
@Deprecated(since="1808", forRemoval=true) public ExcelSheetNamingStrategy getExcelSheetNamingStrategy()Deprecated, for removal: This API element is subject to removal in a future version.since 1808. -
setExcelSheetNamingStrategy
@Deprecated(since="1808", forRemoval=true) public void setExcelSheetNamingStrategy(ExcelSheetNamingStrategy excelSheetNamingStrategy) Deprecated, for removal: This API element is subject to removal in a future version.since 1808.
-