@Deprecated public class DefaultExcelTemplateService extends java.lang.Object implements ExcelTemplateService
| Constructor and Description |
|---|
DefaultExcelTemplateService()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateFirstNonUtilitySheet(Workbook workbook)
Deprecated.
since 1808. Process of hiding sheets was moved to
HideUtilitySheetsDecorator |
protected void |
addAttributeToExcelTypeSystemSheet(AttributeDescriptorModel attributeDescriptor,
Sheet sheet)
Deprecated.
since 1808, please use
TypeSystemSheetPopulator.populate(ExcelExportResult) instead. The
typeSystem sheet is now being populated in
ExcelExportWorkbookPostProcessor via
ExcelExportWorkbookDecorator |
protected void |
addAttributeToExcelTypeSystemSheet(AttributeDescriptorModel attributeDescriptor,
Sheet sheet,
java.lang.String langIsoCode)
Deprecated.
since 1808, please use
TypeSystemSheetPopulator.populate(ExcelExportResult) instead. The
typeSystem sheet is now being populated in
ExcelExportWorkbookPostProcessor via
ExcelExportWorkbookDecorator |
void |
addTypeSheet(java.lang.String typeName,
Workbook workbook)
Deprecated.
Adds a new sheet to given workbook.
|
Row |
createEmptyRow(Sheet sheet)
Deprecated.
Creates an empty row in given sheet.
|
Sheet |
createTypeSheet(java.lang.String typeCode,
Workbook workbook)
Deprecated.
Creates a new type sheet in given workbook.
|
Workbook |
createWorkbook(java.io.InputStream is)
Deprecated.
Creates workbook object based on inputStream of excel file.
|
int |
findColumnIndex(Sheet typeSystemSheet,
Sheet sheet,
SelectedAttribute selectedAttribute)
Deprecated.
Finds column index based on selected attribute.
|
java.lang.String |
findSheetNameForTypeCode(java.lang.String typeCode,
Workbook workbook)
Deprecated.
Finds sheet name for given type code.
|
java.lang.String |
findTypeCodeForSheetName(java.lang.String sheetName,
Workbook workbook)
Deprecated.
Finds type code for given sheet name.
|
protected java.lang.String |
getAttributeDescriptorName(AttributeDescriptorModel attributeDescriptor)
Deprecated.
since 1808. Logic was moved to
DisplayNameAttributeNameFormatter |
java.lang.String |
getAttributeDisplayName(AttributeDescriptorModel attributeDescriptorModel,
java.lang.String isoCode)
Deprecated.
Returns displayed header name based on attribute descriptor
|
java.lang.String |
getCellValue(Cell cell)
Deprecated.
Returns cell value as a string value.
|
CommonI18NService |
getCommonI18NService()
Deprecated.
since 1808.
|
ExcelDateUtils |
getExcelDateUtils()
Deprecated.
since 1808.
|
ExcelSheetNamingStrategy |
getExcelSheetNamingStrategy()
Deprecated.
since 1808.
|
ExcelTranslatorRegistry |
getExcelTranslatorRegistry()
Deprecated.
since 1808.
|
java.util.List<SelectedAttribute> |
getHeaders(Sheet typeSystemSheet,
Sheet typeSheet)
Deprecated.
Returns list of selected attributes for given sheet, based on metainformation from type system sheet.
|
PermissionCRUDService |
getPermissionCRUDService()
Deprecated.
since 1808.
|
java.util.List<SelectedAttributeQualifier> |
getSelectedAttributesQualifiers(Sheet typeSystemSheet,
Sheet typeSheet)
Deprecated.
Returns qualifiers of attributes which at selected in the typSheet
|
java.util.List<Sheet> |
getSheets(Workbook workbook)
Deprecated.
Returns all sheets except utility sheets.
|
java.util.List<java.lang.String> |
getSheetsNames(Workbook workbook)
Deprecated.
Returns all sheets names except utility sheets.
|
TypeService |
getTypeService()
Deprecated.
|
Sheet |
getTypeSystemSheet(Workbook workbook)
Deprecated.
Returns sheet which contains metadata about type system
|
protected int |
getUtilitySheetHiddenLevel()
Deprecated.
since 1808. Process of hiding sheets was moved to
HideUtilitySheetsDecorator |
protected void |
hideUtilitySheet(Workbook workbook,
java.lang.String sheetName)
Deprecated.
since 1808. Process of hiding sheets was moved to
HideUtilitySheetsDecorator |
void |
insertAttributeHeader(Sheet sheet,
SelectedAttribute selectedAttribute,
int columnIndex)
Deprecated.
Inserts value to the sheet's header (first row)
|
void |
insertAttributesHeader(Sheet sheet,
java.util.Collection<SelectedAttribute> selectedAttributes)
Deprecated.
A shortcut for
ExcelTemplateService.insertAttributeHeader(Sheet, SelectedAttribute, int) It is possible to inserts all values
to the header at once instead of invoking ExcelTemplateService.insertAttributeHeader(Sheet, SelectedAttribute, int) for every
attribute separately |
void |
insertAttributeValue(Cell cell,
java.lang.Object object)
Deprecated.
Inserts given value to a given cell
|
protected boolean |
isMandatory(AttributeDescriptorModel attributeDescriptor,
java.lang.String langIsoCode)
Deprecated.
since 1808. Logic was moved to
DisplayNameAttributeNameFormatter |
protected void |
populateTypeSystemSheet(ComposedTypeModel composedType,
Workbook workbook)
Deprecated.
since 1808, please use
TypeSystemSheetPopulator.populate(ExcelExportResult) instead. The
typeSystem sheet is now being populated in
ExcelExportWorkbookPostProcessor via
ExcelExportWorkbookDecorator |
void |
setAttributeNameFormatter(AttributeNameFormatter<ExcelAttributeDescriptorAttribute> attributeNameFormatter)
Deprecated.
|
void |
setCellService(ExcelCellService cellService)
Deprecated.
|
void |
setCommonI18NService(CommonI18NService commonI18NService)
Deprecated.
since 1808.
|
void |
setExcelDateUtils(ExcelDateUtils excelDateUtils)
Deprecated.
since 1808.
|
void |
setExcelSheetNamingStrategy(ExcelSheetNamingStrategy excelSheetNamingStrategy)
Deprecated.
since 1808.
|
void |
setExcelTranslatorRegistry(ExcelTranslatorRegistry excelTranslatorRegistry)
Deprecated.
since 1808.
|
void |
setHeaderService(ExcelHeaderService headerService)
Deprecated.
|
void |
setPermissionCRUDService(PermissionCRUDService permissionCRUDService)
Deprecated.
since 1808.
|
void |
setSheetService(ExcelSheetService sheetService)
Deprecated.
|
void |
setTypeService(TypeService typeService)
Deprecated.
|
void |
setWorkbookService(ExcelWorkbookService workbookService)
Deprecated.
|
public Workbook createWorkbook(java.io.InputStream is)
ExcelTemplateServicecreateWorkbook in interface ExcelTemplateServiceis - Input stream of excel fileWorkbook object which represents excel filepublic Sheet getTypeSystemSheet(Workbook workbook)
ExcelTemplateServicegetTypeSystemSheet in interface ExcelTemplateServiceworkbook - Workbook object which represents excel fileSheet which contains information about type systempublic java.util.List<java.lang.String> getSheetsNames(Workbook workbook)
ExcelTemplateServicegetSheetsNames in interface ExcelTemplateServiceworkbook - Workbook object which represents excel filepublic java.util.List<Sheet> getSheets(Workbook workbook)
ExcelTemplateServicegetSheets in interface ExcelTemplateServiceworkbook - Workbook object which represents excel filepublic java.lang.String getCellValue(Cell cell)
ExcelTemplateServicegetCellValue in interface ExcelTemplateServicecell - Cellpublic java.util.List<SelectedAttribute> getHeaders(Sheet typeSystemSheet, Sheet typeSheet)
ExcelTemplateServicegetHeaders in interface ExcelTemplateServicetypeSystemSheet - Sheet contains metainformation about attributes for each type sheetstypeSheet - Sheet contains data for given sheetpublic java.util.List<SelectedAttributeQualifier> getSelectedAttributesQualifiers(Sheet typeSystemSheet, Sheet typeSheet)
ExcelTemplateServicegetSelectedAttributesQualifiers in interface ExcelTemplateServicetypeSystemSheet - Sheet contains metainformation about attributes for each type sheetstypeSheet - Sheet contains data for given sheetpublic int findColumnIndex(Sheet typeSystemSheet,
Sheet sheet,
SelectedAttribute selectedAttribute)
ExcelTemplateServicefindColumnIndex in interface ExcelTemplateServicetypeSystemSheet - - sheet which contains information about type systemsheet - sheet for current typeselectedAttribute - attribute for which column index should be found.public Sheet createTypeSheet(java.lang.String typeCode,
Workbook workbook)
ExcelTemplateServicecreateTypeSheet in interface ExcelTemplateServicetypeCode - a new sheet nameworkbook - workbook which will be extended by a new sheetpublic java.lang.String findTypeCodeForSheetName(java.lang.String sheetName,
Workbook workbook)
ExcelTemplateServicefindTypeCodeForSheetName in interface ExcelTemplateServicesheetName - sheet name.workbook - workbook.public java.lang.String findSheetNameForTypeCode(java.lang.String typeCode,
Workbook workbook)
ExcelTemplateServicefindSheetNameForTypeCode in interface ExcelTemplateServicetypeCode - type codeworkbook - workbookpublic void addTypeSheet(java.lang.String typeName,
Workbook workbook)
ExcelTemplateServiceaddTypeSheet in interface ExcelTemplateServicetypeName - a new sheet name.workbook - workbook which will be extended by a new sheetpublic void insertAttributeHeader(Sheet sheet,
SelectedAttribute selectedAttribute,
int columnIndex)
ExcelTemplateServiceinsertAttributeHeader in interface ExcelTemplateServicesheet - where the value will be insertedselectedAttribute - a pojo which allows to retrieve value to insertcolumnIndex - index of a column for inserted valuepublic void insertAttributesHeader(Sheet sheet,
java.util.Collection<SelectedAttribute> selectedAttributes)
ExcelTemplateServiceExcelTemplateService.insertAttributeHeader(Sheet, SelectedAttribute, int) It is possible to inserts all values
to the header at once instead of invoking ExcelTemplateService.insertAttributeHeader(Sheet, SelectedAttribute, int) for every
attribute separatelyinsertAttributesHeader in interface ExcelTemplateServicesheet - where the value will be insertedselectedAttributes - a pojo which allows to retrieve value to insertpublic void insertAttributeValue(Cell cell,
java.lang.Object object)
ExcelTemplateServiceinsertAttributeValue in interface ExcelTemplateServicecell - where the value will be insertedobject - a value to insertpublic Row createEmptyRow(Sheet sheet)
ExcelTemplateServicecreateEmptyRow in interface ExcelTemplateServicesheet - where the row will be createdpublic java.lang.String getAttributeDisplayName(AttributeDescriptorModel attributeDescriptorModel, java.lang.String isoCode)
ExcelTemplateServicegetAttributeDisplayName in interface ExcelTemplateServiceattributeDescriptorModel - attribute descriptor of selected attributeisoCode - - isoCode of language@Deprecated
protected void hideUtilitySheet(Workbook workbook,
java.lang.String sheetName)
HideUtilitySheetsDecorator@Deprecated protected int getUtilitySheetHiddenLevel()
HideUtilitySheetsDecorator@Deprecated protected void activateFirstNonUtilitySheet(Workbook workbook)
HideUtilitySheetsDecorator@Deprecated protected void populateTypeSystemSheet(ComposedTypeModel composedType, Workbook workbook)
TypeSystemSheetPopulator.populate(ExcelExportResult) instead. The
typeSystem sheet is now being populated in
ExcelExportWorkbookPostProcessor via
ExcelExportWorkbookDecorator@Deprecated protected void addAttributeToExcelTypeSystemSheet(AttributeDescriptorModel attributeDescriptor, Sheet sheet)
TypeSystemSheetPopulator.populate(ExcelExportResult) instead. The
typeSystem sheet is now being populated in
ExcelExportWorkbookPostProcessor via
ExcelExportWorkbookDecorator@Deprecated protected void addAttributeToExcelTypeSystemSheet(AttributeDescriptorModel attributeDescriptor, Sheet sheet, java.lang.String langIsoCode)
TypeSystemSheetPopulator.populate(ExcelExportResult) instead. The
typeSystem sheet is now being populated in
ExcelExportWorkbookPostProcessor via
ExcelExportWorkbookDecorator@Deprecated protected boolean isMandatory(AttributeDescriptorModel attributeDescriptor, java.lang.String langIsoCode)
DisplayNameAttributeNameFormatter@Deprecated protected java.lang.String getAttributeDescriptorName(AttributeDescriptorModel attributeDescriptor)
DisplayNameAttributeNameFormatterpublic void setCellService(ExcelCellService cellService)
public void setHeaderService(ExcelHeaderService headerService)
public void setSheetService(ExcelSheetService sheetService)
public void setWorkbookService(ExcelWorkbookService workbookService)
public void setAttributeNameFormatter(AttributeNameFormatter<ExcelAttributeDescriptorAttribute> attributeNameFormatter)
public TypeService getTypeService()
public void setTypeService(TypeService typeService)
@Deprecated public CommonI18NService getCommonI18NService()
@Deprecated public void setCommonI18NService(CommonI18NService commonI18NService)
@Deprecated public ExcelTranslatorRegistry getExcelTranslatorRegistry()
@Deprecated public void setExcelTranslatorRegistry(ExcelTranslatorRegistry excelTranslatorRegistry)
@Deprecated public PermissionCRUDService getPermissionCRUDService()
@Deprecated public void setPermissionCRUDService(PermissionCRUDService permissionCRUDService)
@Deprecated public ExcelDateUtils getExcelDateUtils()
@Deprecated public void setExcelDateUtils(ExcelDateUtils excelDateUtils)
@Deprecated public ExcelSheetNamingStrategy getExcelSheetNamingStrategy()
@Deprecated public void setExcelSheetNamingStrategy(ExcelSheetNamingStrategy excelSheetNamingStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.