|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.iai.ilcd.webgui.controller.ui.AbstractDataSetsHandler<T,D>
T
- type of model objects that this handler providesD
- type of data set DAOpublic abstract class AbstractDataSetsHandler<T extends DataSet,D extends DataSetDao<T,?>>
Handler for DataSet lists
Constructor Summary | |
---|---|
AbstractDataSetsHandler(java.lang.Class<T> type,
D daoInstance)
Initialize the handler |
|
AbstractDataSetsHandler(java.lang.Class<T> type,
D daoInstance,
java.lang.String dataTableViewId)
Initialize the handler TODO this is required for the primefaces datatable issue workaround in doFilter() |
Method Summary | |
---|---|
void |
doFilter()
Do the filtering TODO remove workaround for primefaces datatable issue |
protected D |
getDaoInstance()
Get the DAO instance |
protected java.lang.String |
getFilter(java.lang.String key)
Get the value of a filter |
protected java.lang.Boolean |
getFilterBoolean(java.lang.String key)
Get the string array value of a filter |
protected java.lang.String[] |
getFilterStringArr(java.lang.String key)
Get the string array value of a filter |
DataSetLazyDataModel<T> |
getLazyDataModel()
Get the lazy data model for this handler |
org.apache.velocity.tools.generic.ValueParser |
getParameterMapAsValueParser()
Get the current parameter map as value parser |
protected void |
setFilter(java.lang.String key,
java.lang.Object value)
Set filter, null means: remove filter |
protected void |
setFilter(java.lang.String key,
java.lang.String value)
Set filter, empty strings will be considered as indicator to remove filter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDataSetsHandler(java.lang.Class<T> type, D daoInstance)
type
- type of model objects to accessdaoObject
- matching DAO for data accesspublic AbstractDataSetsHandler(java.lang.Class<T> type, D daoInstance, java.lang.String dataTableViewId)
doFilter()
type
- type of model objects to accessdaoObject
- matching DAO for data accessdataTableViewId
- id of the data table in viewMethod Detail |
---|
protected void setFilter(java.lang.String key, java.lang.String value)
key
- key of filtervalue
- value of filterprotected void setFilter(java.lang.String key, java.lang.Object value)
key
- key of filtervalue
- value of filterprotected java.lang.String getFilter(java.lang.String key)
key
- key in map to get filter from
null
if not available, no exception is being thrown)protected java.lang.String[] getFilterStringArr(java.lang.String key)
key
- key in map to get filter from
null
if not available or no string array, no exception
is being thrown)protected java.lang.Boolean getFilterBoolean(java.lang.String key)
key
- key in map to get filter from
null
if not available or no string array, no exception
is being thrown)public DataSetLazyDataModel<T> getLazyDataModel()
protected D getDaoInstance()
public final void doFilter()
public org.apache.velocity.tools.generic.ValueParser getParameterMapAsValueParser()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |