Package de.xima.fc.gui.bean.data
Class DataSourcesBean
java.lang.Object
de.xima.fc.gui.common.utils.msg.I18nUtils
de.xima.fc.gui.common.utils.msg.MessageUtils
de.xima.fc.gui.common.utils.msg.AMessaging
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.StreamedContent
GeneratesStreamedContent
from the List of all the marked data sources contained within the model.getModel()
Deprecated.org.primefaces.model.StreamedContent
getSource
(Datenquelle source) GeneratesStreamedContent
for the given data source and returns itvoid
imports the CSV data from the previously uploaded file with the previously set options (through the import dialog)void
init()
boolean
boolean
void
void
setFirstRowIsHeader
(boolean firstRowIsHeader) void
void
setSessionBean
(SessionBean sessionBean) Deprecated.void
setSheetBean
(DataSourcesSheetBean sheetBean) void
setSourceCode
(String sourceCode) void
setTableView
(boolean isTableView) void
setType
(EDatenquellenTyp type) Sets the type of the selected data source and gives it a unique name depending on the typevoid
void
void
uploadAndPersist
(org.primefaces.event.FileUploadEvent event) void
uploadFile
(org.primefaces.event.FileUploadEvent event) Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
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
- Returns:
String
sourceCode from pe:codeMirror
-
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
-EDatenquellenTyp
to set
-
isFirstRowIsHeader
public boolean isFirstRowIsHeader()- Returns:
- the firstRowIsHeader
-
setFirstRowIsHeader
public void setFirstRowIsHeader(boolean firstRowIsHeader) - Parameters:
firstRowIsHeader
- the firstRowIsHeader to set
-
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
GeneratesStreamedContent
for the given data source and returns it- Parameters:
source
-Datenquelle
for which theStreamedContent
should be generated- Returns:
StreamedContent
of the given data source
-
getCurrentNameLabel
-
getMarkedSources
public org.primefaces.model.StreamedContent getMarkedSources()GeneratesStreamedContent
from the List of all the marked data sources contained within the model. If this list contains only a single entry theStreamedContent
for 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 generatedStreamedContent
of the zip file will be returned.- Returns:
- the
StreamedContent
of 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.
-