Class ImportHandlerUtils
java.lang.Object
org.apache.fineract.infrastructure.bulkimport.importhandler.ImportHandlerUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.poi.ss.usermodel.CellStylegetCellStyle(org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.IndexedColors color) static org.apache.fineract.infrastructure.core.data.EnumOptionDatagetChargeAmountTypeEnum(String chargeAmountType) static org.apache.fineract.infrastructure.core.data.EnumOptionDatagetChargeTimeTypeEmun(org.apache.poi.ss.usermodel.Sheet sheet, String name) static StringgetCodeByName(org.apache.poi.ss.usermodel.Sheet sheet, String name) static StringgetDefaultUserMessages(List<org.apache.fineract.infrastructure.core.data.ApiParameterError> ApiParameterErrorList) static StringgetErrorList(List<String> errorList) static Stringstatic StringgetFrequencyId(String frequency) static LonggetIdByName(org.apache.poi.ss.usermodel.Sheet sheet, String name) static IntegergetNumberOfRows(org.apache.poi.ss.usermodel.Sheet sheet, int primaryColumn) static StringgetRepeatsOnDayId(String repeatsOnDay) static booleanisNotImported(org.apache.poi.ss.usermodel.Row row, int statusColumn) static BooleanreadAsBoolean(int colIndex, org.apache.poi.ss.usermodel.Row row) static LocalDatereadAsDate(int colIndex, org.apache.poi.ss.usermodel.Row row) static DoublereadAsDouble(int colIndex, org.apache.poi.ss.usermodel.Row row) static IntegerreadAsInt(int colIndex, org.apache.poi.ss.usermodel.Row row) static LongreadAsLong(int colIndex, org.apache.poi.ss.usermodel.Row row) static StringreadAsString(int colIndex, org.apache.poi.ss.usermodel.Row row) static StringtrimEmptyDecimalPortion(String result) static voidwriteErrorMessage(org.apache.poi.ss.usermodel.Sheet sheet, Integer rowIndex, String errorMessage, int statusColumn) static voidwriteString(int colIndex, org.apache.poi.ss.usermodel.Row row, String value)
-
Method Details
-
getNumberOfRows
-
isNotImported
public static boolean isNotImported(org.apache.poi.ss.usermodel.Row row, int statusColumn) -
readAsLong
-
readAsString
-
trimEmptyDecimalPortion
-
readAsDate
-
readAsBoolean
-
readAsInt
-
readAsDouble
-
writeString
-
getCellStyle
public static org.apache.poi.ss.usermodel.CellStyle getCellStyle(org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.IndexedColors color) -
getDefaultUserMessages
-
getErrorList
-
writeErrorMessage
-
getErrorMessage
-
getIdByName
-
getChargeTimeTypeEmun
public static org.apache.fineract.infrastructure.core.data.EnumOptionData getChargeTimeTypeEmun(org.apache.poi.ss.usermodel.Sheet sheet, String name) -
getChargeAmountTypeEnum
public static org.apache.fineract.infrastructure.core.data.EnumOptionData getChargeAmountTypeEnum(String chargeAmountType) -
getCodeByName
-
getFrequencyId
-
getRepeatsOnDayId
-