Class WorkbookMaxRowValidator
java.lang.Object
com.hybris.backoffice.excel.validators.WorkbookMaxRowValidator
- All Implemented Interfaces:
WorkbookValidator
Default excel validator for max row. The validator checks whether total number of rows is less than max row indicated
in 'backoffice.excel.import.max.rows' property.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.since 1808.protected Integerprotected intgetNumberOfCorrectRows(org.apache.poi.ss.usermodel.Sheet sheet) protected booleanisRowCorrect(org.apache.poi.ss.usermodel.Row row) protected List<ExcelValidationResult>prepareResult(int totalNumberOfRows) voidsetExcelCellService(ExcelCellService excelCellService) voidsetExcelSheetService(ExcelSheetService excelSheetService) voidsetExcelTemplateService(ExcelTemplateService excelTemplateService) Deprecated, for removal: This API element is subject to removal in a future version.since 1808.validate(org.apache.poi.ss.usermodel.Workbook workbook) Validates workbook.
-
Field Details
-
BACKOFFICE_EXCEL_IMPORT_MAX_ROWS_PROPERTY_KEY
- See Also:
-
DEFAULT_MAX_ROW
public static final int DEFAULT_MAX_ROW- See Also:
-
FIRST_DATA_ROW_INDEX
public static final int FIRST_DATA_ROW_INDEX- See Also:
-
-
Constructor Details
-
WorkbookMaxRowValidator
public WorkbookMaxRowValidator()
-
-
Method Details
-
validate
Description copied from interface:WorkbookValidatorValidates workbook. If workbook doesn't have validation issues then empty list should be returned.- Specified by:
validatein interfaceWorkbookValidator- Returns:
- list of validation results. If workbook doesn't have validation issues then empty list should be returned.
-
getMaxRow
-
prepareResult
-
getNumberOfCorrectRows
protected int getNumberOfCorrectRows(org.apache.poi.ss.usermodel.Sheet sheet) -
isRowCorrect
protected boolean isRowCorrect(org.apache.poi.ss.usermodel.Row row) -
getExcelTemplateService
Deprecated, for removal: This API element is subject to removal in a future version.since 1808. -
setExcelTemplateService
@Deprecated(since="1808", forRemoval=true) public void setExcelTemplateService(ExcelTemplateService excelTemplateService) Deprecated, for removal: This API element is subject to removal in a future version.since 1808. -
getExcelSheetService
-
setExcelSheetService
-
getExcelCellService
-
setExcelCellService
-