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, update
add, addFetchParameters, fetch, getDataSourceProperties, getInitialProperties, remove
checkEditDatasourceAccess, getDataSource, getDataUrl, getJavaScriptCreator, getName, getTemplate, getWhereAndFilterClause, getWhereClause, handleExceptionUnsecuredDSAccess, setDataSource, setDataUrl, setEntity, setName, setWhereClause
public StockReservationPickAndEditDataSource()
public Entity getEntity()
getEntity
in interface DataSourceService
getEntity
in class BaseDataSourceService
public String fetch(Map<String,String> parameters)
DataSourceService
fetch
in interface DataSourceService
fetch
in class ReadOnlyDataSourceService
parameters
- the parameters often coming from the HTTP requestpublic void checkFetchDatasourceAccess(Map<String,String> parameter)
DataSourceService
checkFetchDatasourceAccess
in interface DataSourceService
checkFetchDatasourceAccess
in class BaseDataSourceService
protected List<Map<String,Object>> getData(Map<String,String> parameters, int startRow, int endRow)
ReadOnlyDataSourceService
getData
in class ReadOnlyDataSourceService
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 endrowprotected int getCount(Map<String,String> parameters)
ReadOnlyDataSourceService
getCount
in class ReadOnlyDataSourceService
parameters
- the parameters passed in from the request