Package de.xima.fc.inbox.model.lazydata
Class LazyExtendedProcessListModel
- java.lang.Object
-
- javax.faces.model.DataModel<T>
-
- org.primefaces.model.LazyDataModel<FormRecordExtendedListItem>
-
- de.xima.fc.inbox.model.lazydata.LazyExtendedProcessListModel
-
- All Implemented Interfaces:
ILazyProcessModel
,Serializable
,Iterable<FormRecordExtendedListItem>
,org.primefaces.model.SelectableDataModel<FormRecordExtendedListItem>
public class LazyExtendedProcessListModel extends org.primefaces.model.LazyDataModel<FormRecordExtendedListItem> 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 List<FormRecordExtendedListItem>
getAll()
Map<String,de.xima.cmn.criteria.FilterCriterion>
getFilters()
Postfach[]
getInboxes()
Projekt
getProject()
FormRecordExtendedListItem
getRowData(String rowKey)
Object
getRowKey(FormRecordExtendedListItem object)
FormRecordExtendedListItem
getSelected()
List<FormRecordExtendedListItem>
load(int first, int pageSize, String sortField, org.primefaces.model.SortOrder sortOrder, Map<String,org.primefaces.model.FilterMeta> filters)
List<FormRecordExtendedListItem>
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(Postfach[] inboxes)
void
setInboxes(List<Postfach> inboxes)
void
setProject(Projekt project)
void
setSelected(FormRecordExtendedListItem selected)
void
setSorting(de.xima.cmn.criteria.SortingCriterion sortingCriterion)
-
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<FormRecordExtendedListItem> load(int first, int pageSize, Map<String,org.primefaces.model.SortMeta> multiSortMeta, Map<String,org.primefaces.model.FilterMeta> filters)
- Overrides:
load
in classorg.primefaces.model.LazyDataModel<FormRecordExtendedListItem>
-
load
public List<FormRecordExtendedListItem> load(int first, int pageSize, String sortField, org.primefaces.model.SortOrder sortOrder, Map<String,org.primefaces.model.FilterMeta> filters)
- Overrides:
load
in classorg.primefaces.model.LazyDataModel<FormRecordExtendedListItem>
-
getAll
public List<FormRecordExtendedListItem> getAll()
-
getRowData
public FormRecordExtendedListItem getRowData(String rowKey)
- Specified by:
getRowData
in interfaceorg.primefaces.model.SelectableDataModel<FormRecordExtendedListItem>
- Overrides:
getRowData
in classorg.primefaces.model.LazyDataModel<FormRecordExtendedListItem>
-
getRowKey
public Object getRowKey(FormRecordExtendedListItem object)
- Specified by:
getRowKey
in interfaceorg.primefaces.model.SelectableDataModel<FormRecordExtendedListItem>
- Overrides:
getRowKey
in classorg.primefaces.model.LazyDataModel<FormRecordExtendedListItem>
-
setSelected
public void setSelected(FormRecordExtendedListItem selected)
-
getSelected
public FormRecordExtendedListItem 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
-
-