Package org.openbravo.client.application
Class ADAlertDatasourceService
- java.lang.Object
-
- org.openbravo.service.datasource.BaseDataSourceService
-
- org.openbravo.service.datasource.DefaultDataSourceService
-
- org.openbravo.client.application.ADAlertDatasourceService
-
- All Implemented Interfaces:
DataSourceService
public class ADAlertDatasourceService extends DefaultDataSourceService
Datasource used by the Alert Management window
-
-
Constructor Summary
Constructors Constructor Description ADAlertDatasourceService()
-
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.Entity
getEntity()
protected String
getWhereAndFilterClause(Map<String,String> parameters)
This method returns a String with the where and filter clauses that will be applied.-
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, getName, getTemplate, getWhereClause, handleExceptionUnsecuredDSAccess, setDataSource, setDataUrl, setEntity, setName, setWhereClause
-
-
-
-
Method Detail
-
getEntity
public Entity getEntity()
- Specified by:
getEntity
in interfaceDataSourceService
- Overrides:
getEntity
in classBaseDataSourceService
-
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
-
getWhereAndFilterClause
protected String getWhereAndFilterClause(Map<String,String> parameters)
Description copied from class:BaseDataSourceService
This method returns a String with the where and filter clauses that will be applied.- Overrides:
getWhereAndFilterClause
in classBaseDataSourceService
- Returns:
- A String with the value of the where and filter clause. It can be null when there is no filter clause nor where clause.
-
-