Class LogDatasource
- java.lang.Object
-
- org.openbravo.service.datasource.BaseDataSourceService
-
- org.openbravo.service.datasource.DefaultDataSourceService
-
- org.openbravo.service.datasource.ReadOnlyDataSourceService
-
- org.openbravo.client.application.logmanagement.LogDatasource
-
- All Implemented Interfaces:
DataSourceService
public class LogDatasource extends ReadOnlyDataSourceService
This datasource retrieves a list of registered Loggers and their corresponding log level
-
-
Constructor Summary
Constructors Constructor Description LogDatasource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getCount(Map<String,String> parameters)
Returns the count of objects based on the passed parameters.protected List<Map<String,Object>>
getData(Map<String,String> parameters, int startRow, int endRow)
Read/create the set of data as a list of Maps with key-value pairs.List<DataSourceProperty>
getDataSourceProperties(Map<String,Object> parameters)
Sets the DataSourceProperty to give the client extra info in order to display/filter the fields correctly.-
Methods inherited from class org.openbravo.service.datasource.ReadOnlyDataSourceService
add, fetch, fetch, remove, sort, update
-
Methods inherited from class org.openbravo.service.datasource.DefaultDataSourceService
add, addFetchParameters, fetch, getInitialProperties, remove
-
Methods inherited from class org.openbravo.service.datasource.BaseDataSourceService
checkEditDatasourceAccess, checkFetchDatasourceAccess, getDataSource, getDataUrl, getEntity, getName, getTemplate, getWhereAndFilterClause, getWhereClause, handleExceptionUnsecuredDSAccess, setDataSource, setDataUrl, setEntity, setName, setWhereClause
-
-
-
-
Method Detail
-
getCount
protected int getCount(Map<String,String> parameters)
Description copied from class:ReadOnlyDataSourceService
Returns the count of objects based on the passed parameters.- Specified by:
getCount
in classReadOnlyDataSourceService
- Parameters:
parameters
- the parameters passed in from the request- Returns:
- the total number of objects
-
getData
protected List<Map<String,Object>> getData(Map<String,String> parameters, int startRow, int endRow)
Description copied from class:ReadOnlyDataSourceService
Read/create the set of data as a list of Maps with key-value pairs.- Specified by:
getData
in classReadOnlyDataSourceService
- Parameters:
parameters
- the parameters passed in from the requeststartRow
- the first row to read (maybe -1 to indicate no startrow)endRow
- the last row to read (maybe -1 to indicate no endrow- Returns:
- the number of objects read, note that this maybe more than endRow - startRow + 1. The startRow parameter should be strictly followed though.
-
getDataSourceProperties
public List<DataSourceProperty> getDataSourceProperties(Map<String,Object> parameters)
Sets the DataSourceProperty to give the client extra info in order to display/filter the fields correctly.- Specified by:
getDataSourceProperties
in interfaceDataSourceService
- Overrides:
getDataSourceProperties
in classDefaultDataSourceService
- Parameters:
parameters
- The parameters passed to the Datasource- Returns:
- A list of DataSourceProperty for each field displayed in the client
-
-