Package de.xima.fc.inbox.model.lazydata
Class LazyExtendedProcessListModel
- java.lang.Object
-
- javax.faces.model.DataModel<E>
-
- javax.faces.model.ListDataModel<T>
-
- org.primefaces.model.LazyDataModel<IFormRecordWrapper>
-
- de.xima.fc.inbox.model.lazydata.LazyExtendedProcessListModel
-
- All Implemented Interfaces:
ILazyProcessModel
,Serializable
,Iterable<IFormRecordWrapper>
,org.primefaces.model.SelectableDataModel<IFormRecordWrapper>
public class LazyExtendedProcessListModel extends org.primefaces.model.LazyDataModel<IFormRecordWrapper> implements ILazyProcessModel
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LazyExtendedProcessListModel(Projekt project, Map<String,de.xima.cmn.criteria.FilterCriterion> filters, Locale locale)
LazyExtendedProcessListModel(Projekt project, Map<String,de.xima.cmn.criteria.FilterCriterion> filters, Locale locale, 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()
Map<String,de.xima.cmn.criteria.FilterCriterion>
getFilters()
Postfach[]
getInboxes()
Projekt
getProject()
IFormRecordWrapper
getRowData(String rowKey)
String
getRowKey(IFormRecordWrapper item)
IFormRecordWrapper
getSelected()
List<IFormRecordWrapper>
load(int first, int pageSize, Map<String,org.primefaces.model.SortMeta> sortBy, Map<String,org.primefaces.model.FilterMeta> filterBy)
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(Postfach[] inboxes)
void
setInboxes(List<Postfach> inboxes)
void
setProject(Projekt project)
void
setSelected(IFormRecordWrapper selected)
void
setSorting(de.xima.cmn.criteria.SortingCriterion sortingCriterion)
-
Methods inherited from class org.primefaces.model.LazyDataModel
getConverter, getMessage, getPageSize, getRowCount, 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
-
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> sortBy, Map<String,org.primefaces.model.FilterMeta> filterBy)
- Specified by:
load
in classorg.primefaces.model.LazyDataModel<IFormRecordWrapper>
-
getAll
public List<IFormRecordWrapper> getAll()
-
getRowData
public IFormRecordWrapper getRowData(String rowKey)
- Specified by:
getRowData
in interfaceorg.primefaces.model.SelectableDataModel<IFormRecordWrapper>
- Overrides:
getRowData
in classorg.primefaces.model.LazyDataModel<IFormRecordWrapper>
-
getRowKey
public String getRowKey(IFormRecordWrapper item)
- Specified by:
getRowKey
in interfaceorg.primefaces.model.SelectableDataModel<IFormRecordWrapper>
- Overrides:
getRowKey
in classorg.primefaces.model.LazyDataModel<IFormRecordWrapper>
-
setSelected
public void setSelected(IFormRecordWrapper selected)
-
getSelected
public IFormRecordWrapper getSelected()
-
getProject
public Projekt getProject()
-
setProject
public void setProject(Projekt project)
-
getInboxes
public Postfach[] getInboxes()
-
setInboxes
public void setInboxes(Postfach[] inboxes)
-
setInboxes
public void setInboxes(List<Postfach> inboxes)
- Specified by:
setInboxes
in interfaceILazyProcessModel
-
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
-
setSorting
public void setSorting(de.xima.cmn.criteria.SortingCriterion sortingCriterion)
- Specified by:
setSorting
in interfaceILazyProcessModel
-
setAppointmentTemplates
public void setAppointmentTemplates(List<AppointmentTemplate> appointmentTemplates)
- Specified by:
setAppointmentTemplates
in interfaceILazyProcessModel
-
setAvailableAppointmentTemplates
public void setAvailableAppointmentTemplates(List<AppointmentTemplateItem> availableAppointmentTemplates)
- Specified by:
setAvailableAppointmentTemplates
in interfaceILazyProcessModel
-
-