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:
- 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 int
count(Map<String,org.primefaces.model.FilterMeta> filters)
List<IFormRecordWrapper>
getAll()
de.xima.cmn.criteria.QueryCriteriaManager
getAllQcm()
Map<String,de.xima.cmn.criteria.FilterCriterion>
getFilters()
List<Postfach>
getInboxes()
IFormRecordWrapper
getRowData(String rowKey)
int
getRowIndex(Integer rowKey)
String
getRowKey(IFormRecordWrapper object)
IFormRecordWrapper
getSelected()
de.xima.cmn.criteria.SortingCriterion
getSorting()
List<IFormRecordWrapper>
load()
List<IFormRecordWrapper>
load(int first, int pageSize, Map<String,org.primefaces.model.SortMeta> sortMetas, Map<String,org.primefaces.model.FilterMeta> filterMetas)
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(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
-
-
-
-
Method Detail
-
load
public List<IFormRecordWrapper> load()
-
count
public int count(Map<String,org.primefaces.model.FilterMeta> filters)
- 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
public List<IFormRecordWrapper> getAll()
-
getRowData
public IFormRecordWrapper getRowData(String rowKey)
- Specified by:
getRowData
in interfaceILazyListModel<IFormRecordWrapper>
- Specified by:
getRowData
in interfaceorg.primefaces.model.SelectableDataModel<IFormRecordWrapper>
- Overrides:
getRowData
in classorg.primefaces.model.LazyDataModel<IFormRecordWrapper>
-
getRowKey
public String getRowKey(IFormRecordWrapper object)
- Specified by:
getRowKey
in interfaceILazyListModel<IFormRecordWrapper>
- Specified by:
getRowKey
in interfaceorg.primefaces.model.SelectableDataModel<IFormRecordWrapper>
- Overrides:
getRowKey
in classorg.primefaces.model.LazyDataModel<IFormRecordWrapper>
-
getRowIndex
public int getRowIndex(Integer rowKey)
-
setSelected
public void setSelected(IFormRecordWrapper selected)
- Specified by:
setSelected
in interfaceILazyListModel<IFormRecordWrapper>
-
getSelected
public 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
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
-
-