Class ImportResources

java.lang.Object
org.qubership.atp.dataset.migration.model.ImportResources
All Implemented Interfaces:
Closeable, AutoCloseable

public class ImportResources extends Object implements Closeable
Encapsulates all resources used in import process.
  • Field Details

    • services

      public final DsServicesFacade services
    • excelEvaluator

      public final ExcelEvaluator excelEvaluator
    • falloutReport

      public final FalloutReport falloutReport
    • bookName

      public final String bookName
    • groupDataSetName

      public final String groupDataSetName
    • book

      public final org.apache.poi.xssf.usermodel.XSSFWorkbook book
    • va

      public final VisibilityArea va
  • Constructor Details

  • Method Details

    • create

      public static ImportResources create(DsServicesFacade services, String visibilityAreaName, String excelDataFolder, String bookName, String groupDataSetName) throws IOException, org.apache.poi.openxml4j.exceptions.InvalidFormatException
      create parent dataset.
      Parameters:
      services - services
      visibilityAreaName - visibility area where data sets are created
      excelDataFolder - - location with xlsx files
      bookName - - target excel file name
      groupDataSetName - - default data set for group parameter with default values(parent); name for all groups datasets(child)
      Throws:
      IOException - - in case IO errors occurred,
      org.apache.poi.openxml4j.exceptions.InvalidFormatException - - in case invalid Excel File format.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable