Class SelectorFieldPropertyDataSource
- java.lang.Object
-
- org.openbravo.service.datasource.BaseDataSourceService
-
- org.openbravo.service.datasource.ModelDataSourceService
-
- org.openbravo.userinterface.selector.SelectorFieldPropertyDataSource
-
- All Implemented Interfaces:
DataSourceService
public class SelectorFieldPropertyDataSource extends ModelDataSourceService
The datasource for the Selector Field. Gets the table from the parent.- Author:
- mtaal
-
-
Constructor Summary
Constructors Constructor Description SelectorFieldPropertyDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkFetchDatasourceAccess(Map<String,String> parameter)
This method allows to implement a security access to a DataSource when it is used fetch() method.protected Entity
getBaseEntity(Map<String,String> parameters)
Returns an entity based on the table record id.protected List<Property>
getEntityProperties(Entity entity)
Returns the list of properties sorted alphabetically and with a extra _identifier property-
Methods inherited from class org.openbravo.service.datasource.ModelDataSourceService
add, fetch, remove, update
-
Methods inherited from class org.openbravo.service.datasource.BaseDataSourceService
checkEditDatasourceAccess, getDataSource, getDataSourceProperties, getDataUrl, getEntity, getName, getTemplate, getWhereAndFilterClause, getWhereClause, handleExceptionUnsecuredDSAccess, setDataSource, setDataUrl, setEntity, setName, setWhereClause
-
-
-
-
Method Detail
-
checkFetchDatasourceAccess
public void checkFetchDatasourceAccess(Map<String,String> parameter)
Description copied from interface:DataSourceService
This method allows to implement a security access to a DataSource when it is used fetch() method. It can be overridden in specific DataSources to apply a particular security mechanism.- Specified by:
checkFetchDatasourceAccess
in interfaceDataSourceService
- Overrides:
checkFetchDatasourceAccess
in classBaseDataSourceService
-
getBaseEntity
protected Entity getBaseEntity(Map<String,String> parameters)
Description copied from class:ModelDataSourceService
Returns an entity based on the table record id. Returns null if the ipadTableId input is not present or no Entity is found for a given table id.- Overrides:
getBaseEntity
in classModelDataSourceService
- Parameters:
parameters
- Map of the parameters from the request- Returns:
- the Entity or null if not found
-
getEntityProperties
protected List<Property> getEntityProperties(Entity entity)
Description copied from class:ModelDataSourceService
Returns the list of properties sorted alphabetically and with a extra _identifier property- Overrides:
getEntityProperties
in classModelDataSourceService
- Parameters:
entity
- the parent Entity from which the Property will be extracted- Returns:
- a list of properties plus an extra _identifier property
-
-