public class StockReservationPickAndEditDataSource extends ReadOnlyDataSourceService
| Constructor and Description |
|---|
StockReservationPickAndEditDataSource() |
| Modifier and Type | Method and 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.
|
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.
|
Entity |
getEntity() |
add, fetch, remove, sort, updateadd, addFetchParameters, fetch, getDataSourceProperties, getInitialProperties, removecheckEditDatasourceAccess, getDataSource, getDataUrl, getJavaScriptCreator, getName, getTemplate, getWhereAndFilterClause, getWhereClause, handleExceptionUnsecuredDSAccess, setDataSource, setDataUrl, setEntity, setName, setWhereClausepublic StockReservationPickAndEditDataSource()
public Entity getEntity()
getEntity in interface DataSourceServicegetEntity in class BaseDataSourceServicepublic String fetch(Map<String,String> parameters)
DataSourceServicefetch in interface DataSourceServicefetch in class ReadOnlyDataSourceServiceparameters - the parameters often coming from the HTTP requestpublic void checkFetchDatasourceAccess(Map<String,String> parameter)
DataSourceServicecheckFetchDatasourceAccess in interface DataSourceServicecheckFetchDatasourceAccess in class BaseDataSourceServiceprotected List<Map<String,Object>> getData(Map<String,String> parameters, int startRow, int endRow)
ReadOnlyDataSourceServicegetData in class ReadOnlyDataSourceServiceparameters - 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 endrowprotected int getCount(Map<String,String> parameters)
ReadOnlyDataSourceServicegetCount in class ReadOnlyDataSourceServiceparameters - the parameters passed in from the request