Class DataSourceImporter


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

      • DataSourceImporter

        public DataSourceImporter​(Mandant client)
    • Method Detail

      • 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.
      • 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
      • importStepForward

        public void importStepForward()
      • importStepBackward

        public void importStepBackward()
      • reset

        public void reset()