public class DataSourcesBean extends FCContextBean
Modifier and Type | Class and Description |
---|---|
class |
DataSourcesBean.EntityListModelImpl |
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
systemUC
Constructor and Description |
---|
DataSourcesBean() |
Modifier and Type | Method and Description |
---|---|
List<EDatenquellenTyp> |
getAvailableTypes() |
String |
getCurrentNameLabel() |
List<DatenbankZugriff> |
getDatenbankzugriffe() |
DataSourceImporter |
getFileImporter() |
String |
getGeneratedUrl() |
org.primefaces.model.StreamedContent |
getMarkedSources()
Generates
StreamedContent from the List of all the marked data sources contained within the model. |
IEntityListModelSelectByView<Datenquelle> |
getModel() |
DataSourcesSheetBean |
getSheetBean() |
org.primefaces.model.StreamedContent |
getSource(Datenquelle source)
Generates
StreamedContent for the given data source and returns it |
String |
getSourceCode() |
String |
getSourceCorruptedMsg() |
void |
importCSVFromFile()
imports the CSV data from the previously uploaded file with the previously set options (through the import dialog)
|
void |
init() |
boolean |
isFirstRowIsHeader() |
boolean |
isTableView() |
void |
setFirstRowIsHeader(boolean firstRowIsHeader) |
void |
setModel(IEntityListModelSelectByView<Datenquelle> model) |
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 type
|
void |
toggleView() |
void |
updateModel() |
void |
uploadAndPersist(org.primefaces.event.FileUploadEvent event) |
void |
uploadFile(org.primefaces.event.FileUploadEvent event) |
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
ec, isDetached, isHasDB
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findCurrentView, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
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, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage
@PostConstruct public void init()
public List<EDatenquellenTyp> getAvailableTypes()
public void updateModel()
public IEntityListModelSelectByView<Datenquelle> getModel()
public void setModel(IEntityListModelSelectByView<Datenquelle> model)
model
- the model to setpublic DataSourceImporter getFileImporter()
public void setSourceCode(String sourceCode)
sourceCode
- the sourceCode to setpublic String getSourceCorruptedMsg()
public void setType(EDatenquellenTyp type)
type
- EDatenquellenTyp
to setpublic boolean isFirstRowIsHeader()
public void setFirstRowIsHeader(boolean firstRowIsHeader)
firstRowIsHeader
- the firstRowIsHeader to setpublic boolean isTableView()
public void setTableView(boolean isTableView)
isTableView
- true for table view. false for source code viewpublic String getGeneratedUrl()
public DataSourcesSheetBean getSheetBean()
public void setSheetBean(DataSourcesSheetBean sheetBean)
sheetBean
- the sheetBean to setpublic List<DatenbankZugriff> getDatenbankzugriffe()
public org.primefaces.model.StreamedContent getSource(Datenquelle source)
StreamedContent
for the given data source and returns itsource
- Datenquelle
for which the StreamedContent
should be generatedStreamedContent
of the given data sourcepublic String getCurrentNameLabel()
public org.primefaces.model.StreamedContent getMarkedSources()
StreamedContent
from the List of all the marked data sources contained within the model.
If this list contains only a single entry the StreamedContent
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 generated
StreamedContent
of the zip file will be returned.StreamedContent
of all the marked model data sourcespublic void toggleView()
public void importCSVFromFile()
public void uploadAndPersist(org.primefaces.event.FileUploadEvent event)
public void uploadFile(org.primefaces.event.FileUploadEvent event)
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.