Class DataSourceImporter
- java.lang.Object
-
- de.xima.fc.gui.utils.data.importer.DataSourceImporter
-
public class DataSourceImporter extends Object
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description DataSourceImporter(Mandant client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EContentType
getContentType()
CSVImportOptions
getCsvImportOptions()
StringDataSheet
getDataSheet()
Datenquelle
getDataSource()
EDatenquellenTyp
getDataSourceType()
ExcelImportOptions
getExcelImportOptions()
EWizardStepCSVImport
getImportStep()
String
getLimitsMessage()
Integer
getStartAtLine()
byte[]
getUploadedBytes()
org.primefaces.model.file.UploadedFile
getUploadedFile()
String
getUploadedFileName()
void
importStepBackward()
void
importStepForward()
void
reset()
void
setImportStep(EWizardStepCSVImport importStep)
void
setStartAtLine(Integer startAtLine)
void
setUploadedFile(org.primefaces.model.file.UploadedFile uploadedFile)
void
upload(org.primefaces.event.FileUploadEvent event)
uploads file to bean
-
-
-
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.
-
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 theUploadedFile
- 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()
-
-