Class DataSourcesBean
java.lang.Object
de.xima.fc.gui.bean.data.DataSourcesBean
- All Implemented Interfaces:
Serializable
Bean für die aktuelle Session und deren Informationen
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.primefaces.model.StreamedContentGeneratesStreamedContentfrom the List of all the marked data sources contained within the model.getModel()Deprecated.org.primefaces.model.StreamedContentgetSource(Datenquelle source) GeneratesStreamedContentfor the given data source and returns itvoidimports the CSV data from the previously uploaded file with the previously set options (through the import dialog)voidinit()booleanvoidvoidsetCsvParameterModel(CSVDatasourceParameterModel csvParameterModel) voidvoidsetSessionBean(SessionBean sessionBean) Deprecated.voidsetSheetBean(DataSourcesSheetBean sheetBean) voidsetSourceCode(String sourceCode) voidsetTableView(boolean isTableView) voidsetType(EDatenquellenTyp type) Sets the type of the selected data source and gives it a unique name depending on the typevoidvoidvoidDownload the data from the configured remote URL and put into data sheet.voiduploadAndPersist(org.primefaces.event.FileUploadEvent event) voiduploadFile(org.primefaces.event.FileUploadEvent event)
-
Constructor Details
-
DataSourcesBean
public DataSourcesBean()
-
-
Method Details
-
init
@PostConstruct public void init() -
getSheetBean
-
setSheetBean
-
getAvailableTypes
-
updateModel
public void updateModel() -
getModel
- Returns:
- the model
-
setModel
- Parameters:
model- the model to set
-
getFileImporter
-
getSourceCode
-
setSourceCode
- Parameters:
sourceCode- the sourceCode to set
-
getSourceCorruptedMsg
-
setType
Sets the type of the selected data source and gives it a unique name depending on the type- Parameters:
type-EDatenquellenTypto set
-
getCsvParameterModel
-
setCsvParameterModel
-
isTableView
public boolean isTableView()- Returns:
- true if the table view is currently active and false if the source code view is currently active
-
setTableView
public void setTableView(boolean isTableView) - Parameters:
isTableView- true for table view. false for source code view
-
getGeneratedUrl
-
getDatenbankzugriffe
-
getSource
GeneratesStreamedContentfor the given data source and returns it- Parameters:
source-Datenquellefor which theStreamedContentshould be generated- Returns:
StreamedContentof the given data source
-
getCurrentNameLabel
-
remoteLastUpdated
- Returns:
- localized string with the last update date of the remote data source
-
remoteLastUpdatedStatus
- Returns:
- localized string with the last update status of the remote data source
-
updateRemoteDataSource
public void updateRemoteDataSource()Download the data from the configured remote URL and put into data sheet. Also updates timestamp and status of the last update on csvParamModel. -
getMarkedSources
public org.primefaces.model.StreamedContent getMarkedSources()GeneratesStreamedContentfrom the List of all the marked data sources contained within the model. If this list contains only a single entry theStreamedContentfor this data source will be returned. If the list contains more than one entry the data sources will be packed into a zip file and the generatedStreamedContentof the zip file will be returned.- Returns:
- the
StreamedContentof all the marked model data sources
-
toggleView
public void toggleView() -
importCSVFromFile
public void importCSVFromFile()imports the CSV data from the previously uploaded file with the previously set options (through the import dialog) -
uploadAndPersist
public void uploadAndPersist(org.primefaces.event.FileUploadEvent event) -
onImportSourceDialogCancel
public void onImportSourceDialogCancel() -
uploadFile
public void uploadFile(org.primefaces.event.FileUploadEvent event) -
getLimitsMessage
-
getSessionBean
Deprecated. -
setSessionBean
Deprecated.
-