Class LazyGridListProcessModel

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
de.xima.fc.inbox.model.lazydata.LazyGridListProcessModel
All Implemented Interfaces:
ILazyProcessModel, Serializable, Iterable<IFormRecordWrapper>, org.primefaces.model.SelectableDataModel<IFormRecordWrapper>

public class LazyGridListProcessModel extends ALazyListProcessModel
Author:
XIMA MEDIA GmbH
See Also:
  • Field Details

  • Constructor Details

    • LazyGridListProcessModel

      public LazyGridListProcessModel(boolean excludeLockedRecords, Mandant client, Locale locale, Postfach... inboxes)
    • LazyGridListProcessModel

      public LazyGridListProcessModel(boolean excludeLockedRecords, Mandant client, Projekt project, Locale locale, Postfach... inboxes)
  • Method Details

    • setSortingListener

      public void setSortingListener(Consumer<SortingAppliedEvent> sortingListener)
      Allows to set a listener for 'sorting' events.
      Parameters:
      sortingListener - the event consumer
      Throws:
      NullPointerException - if the passed listener is null
    • setInboxes

      public void setInboxes(Postfach[] inboxes)
    • setInboxes

      public void setInboxes(List<Postfach> inboxes)
    • setSorting

      public void setSorting(de.xima.cmn.criteria.SortingCriterion sortingCriterion)
      Currently not implemented.
    • setAppointmentTemplates

      public void setAppointmentTemplates(List<AppointmentTemplate> appointmentTemplates)
      Currently not implemented.
    • setAvailableAppointmentTemplates

      public void setAvailableAppointmentTemplates(List<AppointmentTemplateItem> availableAppointmentTemplates)
      Currently not implemented.
    • count

      public int count(Map<String, org.primefaces.model.FilterMeta> filters)
      Specified by:
      count in class org.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 class org.primefaces.model.LazyDataModel<IFormRecordWrapper>
    • updateOpenedModelItem

      public IFormRecordWrapper updateOpenedModelItem(Long recordId)
    • updateLoadedModelItems

      public org.apache.commons.lang3.tuple.Pair<List<IFormRecordWrapper>, Set<Long>> updateLoadedModelItems(Set<Long> recordIds)
    • getRowData

      public IFormRecordWrapper getRowData(String rowKey)
      Specified by:
      getRowData in interface org.primefaces.model.SelectableDataModel<IFormRecordWrapper>
      Overrides:
      getRowData in class org.primefaces.model.LazyDataModel<IFormRecordWrapper>
    • getAllQcm

      public de.xima.cmn.criteria.QueryCriteriaManager getAllQcm(Map<String, org.primefaces.model.SortMeta> sortBy, Map<String, org.primefaces.model.FilterMeta> filterBy)
    • updateFilter

      public void updateFilter(String filterKey, de.xima.cmn.criteria.FilterCriterion filter)
    • removeFilterTag

      public void removeFilterTag(EInboxFilterTag filterTag)
      Description copied from interface: ILazyProcessModel
      Removes the specified filter tag.
      Parameters:
      filterTag - the filter tag to be removed.
    • putFilterTag

      public void putFilterTag(EInboxFilterTag filterTag)
      Description copied from interface: ILazyProcessModel
      Puts the given filter tag.
      Parameters:
      filterTag - the filter tag to be set.
    • getFilters

      public Map<String, de.xima.cmn.criteria.FilterCriterion> getFilters()
      Specified by:
      getFilters in interface ILazyProcessModel
      Overrides:
      getFilters in class ALazyListProcessModel
    • getCreatedFromFilter

      public de.xima.cmn.criteria.FilterCriterion getCreatedFromFilter(Instant instant)
    • getCreatedToFilter

      public de.xima.cmn.criteria.FilterCriterion getCreatedToFilter(Instant instant)
    • getCreatorFilter

      public de.xima.cmn.criteria.FilterCriterion getCreatorFilter(IUser user)
    • getReadMessagesFilter

      public de.xima.cmn.criteria.FilterCriterion getReadMessagesFilter(IUser user, boolean isRead)
    • getEditedFromFilter

      public de.xima.cmn.criteria.FilterCriterion getEditedFromFilter(Instant instant)
    • getEditedToFilter

      public de.xima.cmn.criteria.FilterCriterion getEditedToFilter(Instant instant)
    • getEditorFilter

      public de.xima.cmn.criteria.FilterCriterion getEditorFilter(IUser user)
    • getAccessFilter

      public de.xima.cmn.criteria.FilterCriterion getAccessFilter(IUser user)
    • getFilter

      public de.xima.cmn.criteria.FilterCriterion getFilter(EInboxFilterTag filterTag)
    • getGlobalSearchFilterCriterion

      public de.xima.cmn.criteria.FilterCriterion getGlobalSearchFilterCriterion(EFormRecordQueryType type, String query)
    • isExcludeLockedRecords

      public boolean isExcludeLockedRecords()
    • getProject

      public Projekt getProject()
    • setProject

      public void setProject(Projekt project)
    • getInboxes

      public Postfach[] getInboxes()
    • putGlobalSearchFilter

      default void putGlobalSearchFilter(EFormRecordQueryType type, String query)
      Description copied from interface: ILazyProcessModel
      Puts a global search filter for the given type with the given query. If the query is null the filter will be removed.
      Specified by:
      putGlobalSearchFilter in interface ILazyProcessModel
      Parameters:
      type - the type of the filter determines the form record field to be searched.
      query - the query string to be set. If null the filter will be removed.
    • setCreatorFilter

      default void setCreatorFilter(IUser user)
      Description copied from interface: ILazyProcessModel
      Puts a filter where the given user is the first submitter (creator) of the form record.
      Specified by:
      setCreatorFilter in interface ILazyProcessModel
      Parameters:
      user - first submitter (creator). If null the creator filter will be removed if it was set.
    • setAccessFilter

      default void setAccessFilter(IUser user)
      Description copied from interface: ILazyProcessModel
      Puts a filter where the given user has access to the form record.
      Specified by:
      setAccessFilter in interface ILazyProcessModel
      Parameters:
      user - user to test access for. If null the access filter will be removed if it was set.
    • setEditorFilter

      default void setEditorFilter(IUser user)
      Description copied from interface: ILazyProcessModel
      Puts a filter where the given user is an editor of the form record, meaning they have submitted the form record.
      Specified by:
      setEditorFilter in interface ILazyProcessModel
      Parameters:
      user - editor. If null the editor filter will be removed if it was set.
    • setCreatedFromFilter

      default void setCreatedFromFilter(Instant instant)
      Description copied from interface: ILazyProcessModel
      Sets a date filter from which the form records have been created.
      Specified by:
      setCreatedFromFilter in interface ILazyProcessModel
      Parameters:
      instant - from which the form records have been created. null removes the filter.
    • setCreatedToFilter

      default void setCreatedToFilter(Instant instant)
      Description copied from interface: ILazyProcessModel
      Sets a date filter until which the form records have been created.
      Specified by:
      setCreatedToFilter in interface ILazyProcessModel
      Parameters:
      instant - until which the form records have been created. null removes the filter.
    • setEditedFromFilter

      default void setEditedFromFilter(Instant instant)
      Description copied from interface: ILazyProcessModel
      Sets a date filter from which the form records have been last edited.
      Specified by:
      setEditedFromFilter in interface ILazyProcessModel
      Parameters:
      instant - from which the form records have been last edited. null removes the filter.
    • setEditedToFilter

      default void setEditedToFilter(Instant instant)
      Description copied from interface: ILazyProcessModel
      Sets a date filter until which the form records have been last edited.
      Specified by:
      setEditedToFilter in interface ILazyProcessModel
      Parameters:
      instant - until which the form records have been last edited. null removes the filter.
    • setUnreadMessagesFilter

      default void setUnreadMessagesFilter(IUser user)
      Description copied from interface: ILazyProcessModel
      Puts a filter where the given user has unread messages in the form record.
      Specified by:
      setUnreadMessagesFilter in interface ILazyProcessModel
      Parameters:
      user - user with unread messages. If null the unread messages filter will be removed if it was set.
    • setReadMessagesFilter

      default void setReadMessagesFilter(IUser user)
      Description copied from interface: ILazyProcessModel
      Puts a filter where the given user has read messages in the form record.
      Specified by:
      setReadMessagesFilter in interface ILazyProcessModel
      Parameters:
      user - user with read messages. If null the read messages filter will be removed if it was set.