Package org.openbravo.materialmgmt
Class ProductCharacteristicsDS
- java.lang.Object
-
- org.openbravo.service.datasource.BaseDataSourceService
-
- org.openbravo.service.datasource.DefaultDataSourceService
-
- org.openbravo.materialmgmt.ProductCharacteristicsDS
-
- All Implemented Interfaces:
DataSourceService
public class ProductCharacteristicsDS extends DefaultDataSourceService
Manual datasource that creates a tree of characteristics with their values. Intended to be used from characteristics filter. The tree is generated in a single request without pagination or extra requests for child nodes as volumes in it are expected to be small.- Author:
- alostale
-
-
Constructor Summary
Constructors Constructor Description ProductCharacteristicsDS()
-
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.String
fetch(Map<String,String> parameters)
Execute a query request and return the result as a json string.-
Methods inherited from class org.openbravo.service.datasource.DefaultDataSourceService
add, add, addFetchParameters, fetch, fetch, getDataSourceProperties, getInitialProperties, remove, remove, update
-
Methods inherited from class org.openbravo.service.datasource.BaseDataSourceService
checkEditDatasourceAccess, getDataSource, getDataUrl, getEntity, getName, getTemplate, getWhereAndFilterClause, getWhereClause, handleExceptionUnsecuredDSAccess, setDataSource, setDataUrl, setEntity, setName, setWhereClause
-
-
-
-
Method Detail
-
fetch
public String fetch(Map<String,String> parameters)
Description copied from interface:DataSourceService
Execute a query request and return the result as a json string.- Specified by:
fetch
in interfaceDataSourceService
- Overrides:
fetch
in classDefaultDataSourceService
- Parameters:
parameters
- the parameters often coming from the HTTP request- Returns:
- the json result string
-
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
-
-