Class DefaultFD2DatasourceProvider
- java.lang.Object
 - 
- de.xima.fc.web.common.fd2.provider.DefaultFD2DatasourceProvider
 
 
- 
- All Implemented Interfaces:
 IFD2DataSourceProvider,Serializable
public class DefaultFD2DatasourceProvider extends Object implements IFD2DataSourceProvider
- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOG 
- 
Constructor Summary
Constructors Constructor Description DefaultFD2DatasourceProvider(Mandant mandant, SessionAttributes sessionAttributes, ValueParameters requestParameters, Projekt project)DefaultFD2DatasourceProvider(Mandant client, Map<String,Serializable> sessionAttributes, ValueParameters requestParameters, Projekt project)DefaultFD2DatasourceProvider(IFormRenderContext renderCtx) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.alibaba.fastjson.JSONObjectcreateAllDatenquellenJSON()Returns a list of all data sources.com.alibaba.fastjson.JSONArraycreateDatenquellenJSON()Returns a JSON array of all datasources that can be used a data source for a select element in the designer, ie.voidresolveItemOptions(IXFormRenderConfig config, XItem item)Deprecated.voidresolveItemOptions(XItemRenderData renderData) 
 - 
 
- 
- 
Constructor Detail
- 
DefaultFD2DatasourceProvider
public DefaultFD2DatasourceProvider(IFormRenderContext renderCtx)
 
- 
DefaultFD2DatasourceProvider
@Deprecated public DefaultFD2DatasourceProvider(Mandant mandant, SessionAttributes sessionAttributes, ValueParameters requestParameters, Projekt project)
 
- 
DefaultFD2DatasourceProvider
public DefaultFD2DatasourceProvider(Mandant client, Map<String,Serializable> sessionAttributes, ValueParameters requestParameters, Projekt project)
 
 - 
 
- 
Method Detail
- 
resolveItemOptions
public void resolveItemOptions(XItemRenderData renderData)
- Specified by:
 resolveItemOptionsin interfaceIFD2DataSourceProvider
 
- 
resolveItemOptions
@Deprecated public void resolveItemOptions(IXFormRenderConfig config, XItem item)
Deprecated.- Specified by:
 resolveItemOptionsin interfaceIFD2DataSourceProvider
 
- 
createAllDatenquellenJSON
public com.alibaba.fastjson.JSONObject createAllDatenquellenJSON()
Description copied from interface:IFD2DataSourceProviderReturns a list of all data sources. Used eg. for suggestions in the JavaScript editor within the designer. Example for the returned JSON object:{DB: [{name: "datasource", type: "DB", paramCount: 2}, LDAP: [], PLUGIN: [], CSV: [], JSON: [], XML: []]}- Specified by:
 createAllDatenquellenJSONin interfaceIFD2DataSourceProvider- Returns:
 - All available data queries. A JSON object with the data source type as the key, mapped to a JSON array of
 all data sources of that type, each a JSON object with the following property keys:
 
- name: The name of the datasource.
 - type: The type of the datasource. One of the enum constant in 
EDatenquellenTyp, the stringPLUGINfor anIPluginDataSource; or the stringLDAPfor an LDAP-query. - paramCount: The number of free parameters in the data source.
 
 
 
- 
createDatenquellenJSON
public com.alibaba.fastjson.JSONArray createDatenquellenJSON()
Description copied from interface:IFD2DataSourceProviderReturns a JSON array of all datasources that can be used a data source for a select element in the designer, ie. all CSV data sources and database queries without any free parameters (not containing question marks?). Also includes plugin data sources (IPluginDataSource).- Specified by:
 createDatenquellenJSONin interfaceIFD2DataSourceProvider- Returns:
 - Data sources for select elements in the designer, an array of JSON objects with the following property
 keys:
 
- value: To be used as the value of the select option, such as the name of the data source.
 - text: To be used as the display text of the select option, such as the name of the data source.
 - group: The type of data source, such as 
DBorCSV - paramCount: The number of free parameters in the data source.
 
 
 
 - 
 
 -