Class ALazyListProcessModel
java.lang.Object
javax.faces.model.DataModel<IFormRecordWrapper>
javax.faces.model.ListDataModel<IFormRecordWrapper>
org.primefaces.model.LazyDataModel<IFormRecordWrapper>
de.xima.fc.inbox.model.lazydata.ALazyListProcessModel
- All Implemented Interfaces:
ILazyProcessModel, Serializable, Iterable<IFormRecordWrapper>, org.primefaces.model.SelectableDataModel<IFormRecordWrapper>
- Direct Known Subclasses:
LazyGridListProcessModel, LazyListProcessModel
public abstract class ALazyListProcessModel
extends org.primefaces.model.LazyDataModel<IFormRecordWrapper>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.xima.cmn.criteria.FilterCriteriongetAccessFilter(IUser user) de.xima.cmn.criteria.FilterCriteriongetCreatedFromFilter(Instant instant) de.xima.cmn.criteria.FilterCriteriongetCreatedToFilter(Instant instant) de.xima.cmn.criteria.FilterCriteriongetCreatorFilter(IUser user) de.xima.cmn.criteria.FilterCriteriongetEditedFromFilter(Instant instant) de.xima.cmn.criteria.FilterCriteriongetEditedToFilter(Instant instant) de.xima.cmn.criteria.FilterCriteriongetEditorFilter(IUser user) de.xima.cmn.criteria.FilterCriteriongetFilter(EInboxFilterTag filterTag) de.xima.cmn.criteria.FilterCriteriongetGlobalSearchFilterCriterion(EFormRecordQueryType type, String query) de.xima.cmn.criteria.FilterCriteriongetReadMessagesFilter(IUser user, boolean isRead) getRowKey(IFormRecordWrapper item) default voidputGlobalSearchFilter(EFormRecordQueryType type, String query) Puts a global search filter for the given type with the given query.default voidsetAccessFilter(IUser user) Puts a filter where the given user has access to the form record.default voidsetCreatedFromFilter(Instant instant) Sets a date filter from which the form records have been created.default voidsetCreatedToFilter(Instant instant) Sets a date filter until which the form records have been created.default voidsetCreatorFilter(IUser user) Puts a filter where the given user is the first submitter (creator) of the form record.voidsetCurrentlyLoaded(List<IFormRecordWrapper> currentlyLoaded) default voidsetEditedFromFilter(Instant instant) Sets a date filter from which the form records have been last edited.default voidsetEditedToFilter(Instant instant) Sets a date filter until which the form records have been last edited.default voidsetEditorFilter(IUser user) Puts a filter where the given user is an editor of the form record, meaning they have submitted the form record.default voidsetReadMessagesFilter(IUser user) Puts a filter where the given user has read messages in the form record.voidsetSelected(IFormRecordWrapper selected) default voidsetUnreadMessagesFilter(IUser user) Puts a filter where the given user has unread messages in the form record.voidupdateFilter(String filterKey, de.xima.cmn.criteria.FilterCriterion filter) voidMethods inherited from class org.primefaces.model.LazyDataModel
count, getConverter, getMessage, getPageSize, getRowCount, getRowData, getRowData, getRowData, getRowIndex, getWrappedData, isRowAvailable, iterator, iterator, load, recalculateFirst, setConverter, setPageSize, setRowCount, setRowIndex, setWrappedDataMethods inherited from class javax.faces.model.DataModel
addDataModelListener, getDataModelListeners, removeDataModelListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ILazyProcessModel
getRowCount, putFilterTag, removeFilterTag, setAppointmentTemplates, setAvailableAppointmentTemplates, setInboxes, setSortingMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
customFilters
-
currentFilters
-
currentSorts
-
currentlyLoaded
-
selected
-
GLOBAL
- See Also:
-
CREATOR
- See Also:
-
ACCESS
- See Also:
-
EDITOR
- See Also:
-
CREATED_FROM_INSTANT
- See Also:
-
CREATED_TO_INSTANT
- See Also:
-
EDITED_FROM_INSTANT
- See Also:
-
EDITED_TO_INSTANT
- See Also:
-
-
Constructor Details
-
ALazyListProcessModel
public ALazyListProcessModel()
-
-
Method Details
-
getFilters
- Specified by:
getFiltersin interfaceILazyProcessModel
-
getCurrentlyLoadedRowKeys
-
getRowKey
- Specified by:
getRowKeyin interfaceorg.primefaces.model.SelectableDataModel<IFormRecordWrapper>- Overrides:
getRowKeyin classorg.primefaces.model.LazyDataModel<IFormRecordWrapper>
-
updateUnreadChatsCounts
public void updateUnreadChatsCounts() -
getCustomFilters
-
getCurrentFilters
-
getCurrentSorts
-
getCurrentlyLoaded
-
setCurrentlyLoaded
-
getSelected
-
setSelected
-
getCreatorFilter
-
getAccessFilter
-
getEditorFilter
-
getFilter
-
getGlobalSearchFilterCriterion
de.xima.cmn.criteria.FilterCriterion getGlobalSearchFilterCriterion(EFormRecordQueryType type, String query) -
getCreatedFromFilter
-
getCreatedToFilter
-
getEditedFromFilter
-
getEditedToFilter
-
getReadMessagesFilter
-
updateFilter
-
putGlobalSearchFilter
Description copied from interface:ILazyProcessModelPuts a global search filter for the given type with the given query. If the query isnullthe filter will be removed.- Specified by:
putGlobalSearchFilterin interfaceILazyProcessModel- Parameters:
type- the type of the filter determines the form record field to be searched.query- the query string to be set. Ifnullthe filter will be removed.
-
setCreatorFilter
Description copied from interface:ILazyProcessModelPuts a filter where the given user is the first submitter (creator) of the form record.- Specified by:
setCreatorFilterin interfaceILazyProcessModel- Parameters:
user- first submitter (creator). Ifnullthe creator filter will be removed if it was set.
-
setAccessFilter
Description copied from interface:ILazyProcessModelPuts a filter where the given user has access to the form record.- Specified by:
setAccessFilterin interfaceILazyProcessModel- Parameters:
user- user to test access for. Ifnullthe access filter will be removed if it was set.
-
setEditorFilter
Description copied from interface:ILazyProcessModelPuts a filter where the given user is an editor of the form record, meaning they have submitted the form record.- Specified by:
setEditorFilterin interfaceILazyProcessModel- Parameters:
user- editor. Ifnullthe editor filter will be removed if it was set.
-
setCreatedFromFilter
Description copied from interface:ILazyProcessModelSets a date filter from which the form records have been created.- Specified by:
setCreatedFromFilterin interfaceILazyProcessModel- Parameters:
instant- from which the form records have been created.nullremoves the filter.
-
setCreatedToFilter
Description copied from interface:ILazyProcessModelSets a date filter until which the form records have been created.- Specified by:
setCreatedToFilterin interfaceILazyProcessModel- Parameters:
instant- until which the form records have been created.nullremoves the filter.
-
setEditedFromFilter
Description copied from interface:ILazyProcessModelSets a date filter from which the form records have been last edited.- Specified by:
setEditedFromFilterin interfaceILazyProcessModel- Parameters:
instant- from which the form records have been last edited.nullremoves the filter.
-
setEditedToFilter
Description copied from interface:ILazyProcessModelSets a date filter until which the form records have been last edited.- Specified by:
setEditedToFilterin interfaceILazyProcessModel- Parameters:
instant- until which the form records have been last edited.nullremoves the filter.
-
setUnreadMessagesFilter
Description copied from interface:ILazyProcessModelPuts a filter where the given user has unread messages in the form record.- Specified by:
setUnreadMessagesFilterin interfaceILazyProcessModel- Parameters:
user- user with unread messages. Ifnullthe unread messages filter will be removed if it was set.
-
setReadMessagesFilter
Description copied from interface:ILazyProcessModelPuts a filter where the given user has read messages in the form record.- Specified by:
setReadMessagesFilterin interfaceILazyProcessModel- Parameters:
user- user with read messages. Ifnullthe read messages filter will be removed if it was set.
-