Package de.xima.fc.inbox.model.lazydata
Class LazyProcessListModel
java.lang.Object
javax.faces.model.DataModel<E>
javax.faces.model.ListDataModel<T>
org.primefaces.model.LazyDataModel<IFormRecordWrapper>
de.xima.fc.inbox.model.lazydata.LazyProcessListModel
- All Implemented Interfaces:
ILazyListModel<IFormRecordWrapper>
,ILazyProcessModel
,Serializable
,Iterable<IFormRecordWrapper>
,org.primefaces.model.SelectableDataModel<IFormRecordWrapper>
public class LazyProcessListModel
extends org.primefaces.model.LazyDataModel<IFormRecordWrapper>
implements ILazyListModel<IFormRecordWrapper>, ILazyProcessModel
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLazyProcessListModel
(Mandant client, List<Postfach> inboxes) LazyProcessListModel
(Mandant client, Map<String, de.xima.cmn.criteria.FilterCriterion> filters, List<Postfach> inboxes) -
Method Summary
Modifier and TypeMethodDescriptionint
getAll()
de.xima.cmn.criteria.QueryCriteriaManager
getRowData
(String rowKey) int
getRowIndex
(Integer rowKey) getRowKey
(IFormRecordWrapper object) de.xima.cmn.criteria.SortingCriterion
load()
load
(int first, int pageSize, Map<String, org.primefaces.model.SortMeta> sortMetas, Map<String, org.primefaces.model.FilterMeta> filterMetas) de.xima.cmn.criteria.FilterCriterion
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
(IFormRecordWrapper selected) void
setSorting
(de.xima.cmn.criteria.SortingCriterion sorting) Methods inherited from class org.primefaces.model.LazyDataModel
getConverter, getMessage, getPageSize, getRowCount, getRowData, getRowData, getRowIndex, getWrappedData, isRowAvailable, iterator, iterator, recalculateFirst, setConverter, 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
-
Constructor Details
-
LazyProcessListModel
-
LazyProcessListModel
-
-
Method Details
-
load
-
count
- Specified by:
count
in classorg.primefaces.model.LazyDataModel<IFormRecordWrapper>
-
load
public List<IFormRecordWrapper> load(int first, int pageSize, Map<String, org.primefaces.model.SortMeta> sortMetas, Map<String, org.primefaces.model.FilterMeta> filterMetas) - Specified by:
load
in interfaceILazyListModel<IFormRecordWrapper>
- Specified by:
load
in classorg.primefaces.model.LazyDataModel<IFormRecordWrapper>
-
getAll
-
getRowData
- Specified by:
getRowData
in interfaceILazyListModel<IFormRecordWrapper>
- Specified by:
getRowData
in interfaceorg.primefaces.model.SelectableDataModel<IFormRecordWrapper>
- Overrides:
getRowData
in classorg.primefaces.model.LazyDataModel<IFormRecordWrapper>
-
getRowKey
- Specified by:
getRowKey
in interfaceILazyListModel<IFormRecordWrapper>
- Specified by:
getRowKey
in interfaceorg.primefaces.model.SelectableDataModel<IFormRecordWrapper>
- Overrides:
getRowKey
in classorg.primefaces.model.LazyDataModel<IFormRecordWrapper>
-
getRowIndex
-
setSelected
- Specified by:
setSelected
in interfaceILazyListModel<IFormRecordWrapper>
-
getSelected
- Specified by:
getSelected
in interfaceILazyListModel<IFormRecordWrapper>
-
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
Remove key associated with given key- Specified by:
removeFilter
in interfaceILazyProcessModel
- Parameters:
key
-String
- Returns:
- former
FilterCriterion
-
getFilters
- Specified by:
getFilters
in interfaceILazyProcessModel
-
getInboxes
- Returns:
- the inboxes
-
setInboxes
- 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
- Specified by:
setAppointmentTemplates
in interfaceILazyProcessModel
-
setAvailableAppointmentTemplates
public void setAvailableAppointmentTemplates(List<AppointmentTemplateItem> availableAppointmentTemplates) - Specified by:
setAvailableAppointmentTemplates
in interfaceILazyProcessModel
-