Package de.xima.fc.inbox.model.lazydata
Class LazyProcessListModel
- java.lang.Object
-
- javax.faces.model.DataModel<T>
-
- org.primefaces.model.LazyDataModel<FormRecordListItem>
-
- de.xima.fc.inbox.model.lazydata.LazyProcessListModel
-
- All Implemented Interfaces:
ILazyListModel<FormRecordListItem>
,ILazyProcessModel
,Serializable
,Iterable<FormRecordListItem>
,org.primefaces.model.SelectableDataModel<FormRecordListItem>
public class LazyProcessListModel extends org.primefaces.model.LazyDataModel<FormRecordListItem> implements ILazyListModel<FormRecordListItem>, ILazyProcessModel
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LazyProcessListModel(Mandant client, List<Postfach> inboxes)
LazyProcessListModel(Mandant client, Map<String,de.xima.cmn.criteria.FilterCriterion> filters, List<Postfach> inboxes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<FormRecordListItem>
getAll()
de.xima.cmn.criteria.QueryCriteriaManager
getAllQcm()
Map<String,de.xima.cmn.criteria.FilterCriterion>
getFilters()
List<Postfach>
getInboxes()
FormRecordListItem
getRowData(String rowKey)
int
getRowIndex(Integer rowKey)
Object
getRowKey(FormRecordListItem object)
FormRecordListItem
getSelected()
de.xima.cmn.criteria.SortingCriterion
getSorting()
List<FormRecordListItem>
load()
List<FormRecordListItem>
load(int first, int pageSize, String sortField, org.primefaces.model.SortOrder sortOrder, Map<String,org.primefaces.model.FilterMeta> filters)
List<FormRecordListItem>
load(int first, int pageSize, Map<String,org.primefaces.model.SortMeta> multiSortMeta, Map<String,org.primefaces.model.FilterMeta> filters)
de.xima.cmn.criteria.FilterCriterion
putFilter(String key, de.xima.cmn.criteria.FilterCriterion filter)
Add or change filter associated with the given keyde.xima.cmn.criteria.FilterCriterion
removeFilter(String key)
Remove key associated with given keyvoid
setAppointmentTemplates(List<AppointmentTemplate> appointmentTemplates)
void
setAvailableAppointmentTemplates(List<AppointmentTemplateItem> availableAppointmentTemplates)
void
setInboxes(List<Postfach> inboxes)
void
setSelected(FormRecordListItem selected)
void
setSorting(de.xima.cmn.criteria.SortingCriterion sorting)
-
Methods inherited from class org.primefaces.model.LazyDataModel
getPageSize, getRowCount, getRowData, getRowIndex, getWrappedData, isRowAvailable, iterator, iterator, iterator, setPageSize, setRowCount, setRowIndex, setWrappedData
-
Methods inherited from class javax.faces.model.DataModel
addDataModelListener, getDataModelListeners, removeDataModelListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.inbox.interfaces.lazydata.ILazyProcessModel
getRowCount
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
load
public List<FormRecordListItem> load()
-
load
public List<FormRecordListItem> load(int first, int pageSize, Map<String,org.primefaces.model.SortMeta> multiSortMeta, Map<String,org.primefaces.model.FilterMeta> filters)
- Specified by:
load
in interfaceILazyListModel<FormRecordListItem>
- Overrides:
load
in classorg.primefaces.model.LazyDataModel<FormRecordListItem>
-
load
public List<FormRecordListItem> load(int first, int pageSize, String sortField, org.primefaces.model.SortOrder sortOrder, Map<String,org.primefaces.model.FilterMeta> filters)
- Specified by:
load
in interfaceILazyListModel<FormRecordListItem>
- Overrides:
load
in classorg.primefaces.model.LazyDataModel<FormRecordListItem>
-
getAll
public List<FormRecordListItem> getAll()
-
getRowData
public FormRecordListItem getRowData(String rowKey)
- Specified by:
getRowData
in interfaceILazyListModel<FormRecordListItem>
- Specified by:
getRowData
in interfaceorg.primefaces.model.SelectableDataModel<FormRecordListItem>
- Overrides:
getRowData
in classorg.primefaces.model.LazyDataModel<FormRecordListItem>
-
getRowKey
public Object getRowKey(FormRecordListItem object)
- Specified by:
getRowKey
in interfaceILazyListModel<FormRecordListItem>
- Specified by:
getRowKey
in interfaceorg.primefaces.model.SelectableDataModel<FormRecordListItem>
- Overrides:
getRowKey
in classorg.primefaces.model.LazyDataModel<FormRecordListItem>
-
getRowIndex
public int getRowIndex(Integer rowKey)
-
setSelected
public void setSelected(FormRecordListItem selected)
- Specified by:
setSelected
in interfaceILazyListModel<FormRecordListItem>
-
getSelected
public FormRecordListItem getSelected()
- Specified by:
getSelected
in interfaceILazyListModel<FormRecordListItem>
-
putFilter
public de.xima.cmn.criteria.FilterCriterion putFilter(String key, de.xima.cmn.criteria.FilterCriterion filter)
Add or change filter associated with the given key- Specified by:
putFilter
in interfaceILazyProcessModel
- Parameters:
key
-String
filter
-FilterCriterion
- Returns:
- former
FilterCriterion
-
removeFilter
public de.xima.cmn.criteria.FilterCriterion removeFilter(String key)
Remove key associated with given key- Specified by:
removeFilter
in interfaceILazyProcessModel
- Parameters:
key
-String
- Returns:
- former
FilterCriterion
-
getFilters
public Map<String,de.xima.cmn.criteria.FilterCriterion> getFilters()
- Specified by:
getFilters
in interfaceILazyProcessModel
-
setInboxes
public void setInboxes(List<Postfach> inboxes)
- Specified by:
setInboxes
in interfaceILazyProcessModel
- Parameters:
inboxes
- the inboxes to set
-
getSorting
public de.xima.cmn.criteria.SortingCriterion getSorting()
- Returns:
- the sorting
-
setSorting
public void setSorting(de.xima.cmn.criteria.SortingCriterion sorting)
- Specified by:
setSorting
in interfaceILazyProcessModel
- Parameters:
sorting
- the sorting to set
-
getAllQcm
public de.xima.cmn.criteria.QueryCriteriaManager getAllQcm()
-
setAppointmentTemplates
public void setAppointmentTemplates(List<AppointmentTemplate> appointmentTemplates)
- Specified by:
setAppointmentTemplates
in interfaceILazyProcessModel
-
setAvailableAppointmentTemplates
public void setAvailableAppointmentTemplates(List<AppointmentTemplateItem> availableAppointmentTemplates)
- Specified by:
setAvailableAppointmentTemplates
in interfaceILazyProcessModel
-
-