java.lang.Object
org.apache.fineract.infrastructure.bulkimport.importhandler.ImportHandlerUtils

public final class ImportHandlerUtils extends Object
  • Method Details

    • getNumberOfRows

      public static Integer getNumberOfRows(org.apache.poi.ss.usermodel.Sheet sheet, int primaryColumn)
    • isNotImported

      public static boolean isNotImported(org.apache.poi.ss.usermodel.Row row, int statusColumn)
    • readAsLong

      public static Long readAsLong(int colIndex, org.apache.poi.ss.usermodel.Row row)
    • readAsString

      public static String readAsString(int colIndex, org.apache.poi.ss.usermodel.Row row)
    • trimEmptyDecimalPortion

      public static String trimEmptyDecimalPortion(String result)
    • readAsDate

      public static LocalDate readAsDate(int colIndex, org.apache.poi.ss.usermodel.Row row)
    • readAsBoolean

      public static Boolean readAsBoolean(int colIndex, org.apache.poi.ss.usermodel.Row row)
    • readAsInt

      public static Integer readAsInt(int colIndex, org.apache.poi.ss.usermodel.Row row)
    • readAsDouble

      public static Double readAsDouble(int colIndex, org.apache.poi.ss.usermodel.Row row)
    • writeString

      public static void writeString(int colIndex, org.apache.poi.ss.usermodel.Row row, String value)
    • 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

      public static String getDefaultUserMessages(List<org.apache.fineract.infrastructure.core.data.ApiParameterError> ApiParameterErrorList)
    • getErrorList

      public static String getErrorList(List<String> errorList)
    • writeErrorMessage

      public static void writeErrorMessage(org.apache.poi.ss.usermodel.Sheet sheet, Integer rowIndex, String errorMessage, int statusColumn)
    • getErrorMessage

      public static String getErrorMessage(RuntimeException re)
    • getIdByName

      public static Long getIdByName(org.apache.poi.ss.usermodel.Sheet sheet, String name)
    • 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

      public static String getCodeByName(org.apache.poi.ss.usermodel.Sheet sheet, String name)
    • getFrequencyId

      public static String getFrequencyId(String frequency)
    • getRepeatsOnDayId

      public static String getRepeatsOnDayId(String repeatsOnDay)