Class DataSourceImporter

java.lang.Object
de.xima.fc.gui.utils.data.importer.DataSourceImporter

public class DataSourceImporter extends Object
Author:
XIMA MEDIA GmbH
  • Constructor Details

    • DataSourceImporter

      public DataSourceImporter(Mandant client)
  • Method Details

    • getLimitsMessage

      public String getLimitsMessage()
      Returns:
      A (warning) message that is non-empty when the uploaded data had to be modified due to a restriction. For example, users cannot upload Excel / CSV files with more than a given number of cells.
    • getImportStep

      public EWizardStepCSVImport getImportStep()
    • setImportStep

      public void setImportStep(EWizardStepCSVImport importStep)
    • getDataSourceType

      public EDatenquellenTyp getDataSourceType()
    • getContentType

      public EContentType getContentType()
    • getCsvImportOptions

      public CSVImportOptions getCsvImportOptions()
    • getExcelImportOptions

      public ExcelImportOptions getExcelImportOptions()
    • getUploadedFile

      public org.primefaces.model.file.UploadedFile getUploadedFile()
    • setUploadedFile

      public void setUploadedFile(org.primefaces.model.file.UploadedFile uploadedFile)
    • getUploadedBytes

      public byte[] getUploadedBytes()
    • getUploadedFileName

      public String getUploadedFileName()
    • getStartAtLine

      public Integer getStartAtLine()
    • setStartAtLine

      public void setStartAtLine(Integer startAtLine)
    • upload

      public void upload(org.primefaces.event.FileUploadEvent event) throws Exception
      uploads file to bean
      Parameters:
      event - that holds the UploadedFile
      Throws:
      Exception - on errors while reading the upload or if the file type is not valid for datasources
    • getDataSource

      public Datenquelle getDataSource() throws Exception
      Throws:
      Exception
    • getDataSheet

      public StringDataSheet getDataSheet() throws Exception
      Throws:
      Exception
    • importStepForward

      public void importStepForward()
    • importStepBackward

      public void importStepBackward()
    • reset

      public void reset()