Package de.xima.fc.inbox.utils
Class ProcessQueryCriteriaUtils
- java.lang.Object
-
- de.xima.fc.inbox.utils.ProcessQueryCriteriaUtils
-
public class ProcessQueryCriteriaUtils extends Object
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static de.xima.cmn.criteria.FilterCriterion
getAttachmentsFilter(boolean withAttachments, EProcessListView view)
static de.xima.cmn.criteria.FilterCriterion
getCreatorFilter(EProcessListView view, IUser user)
static de.xima.cmn.criteria.FilterCriterion
getDateFilter(String key, Date value, de.xima.cmn.criteria.FilterCriterion.Operator operator, EProcessListView view)
static de.xima.cmn.criteria.FilterCriterion
getDeletableFilter(EProcessListView view, boolean isDeletable)
static de.xima.cmn.criteria.FilterCriterion
getEditorFilter(EProcessListView view, IUser user)
static de.xima.cmn.criteria.FilterCriterion
getFutureFilter(EProcessListView view, Instant now)
static List<de.xima.cmn.criteria.FilterCriterion>
getGridFilterCriteria(String field, Object value, Locale locale)
Gets the criteria for filteringExtendedEntityModel
<Vorgang
> (i.e.static List<de.xima.cmn.criteria.SortingCriterion>
getGridSortingCriteria(String sortField, org.primefaces.model.SortOrder sortOrder)
static de.xima.cmn.criteria.FilterCriterion
getHasStateFilter(EProcessListView view)
static de.xima.cmn.criteria.FilterCriterion
getNoStateFilter(EProcessListView view)
static de.xima.cmn.criteria.FilterCriterion
getNotSavedFilter(EProcessListView view)
static List<de.xima.cmn.criteria.FilterCriterion>
getProjektTitleLikeCriteria(String value, EProcessListView view)
static de.xima.cmn.criteria.FilterCriterion
getReadFilter(boolean read, EProcessListView view)
static de.xima.cmn.criteria.FilterCriterion
getSavedFilter(EProcessListView view)
static de.xima.cmn.criteria.FilterCriterion
getStateFilter(de.xima.cmn.criteria.FilterCriterion.Operator operator, EProcessListView view)
static de.xima.cmn.criteria.FilterCriterion
getStringFilter(String key, String value, EProcessListView view, Locale locale, Mandant client)
static de.xima.cmn.criteria.FilterCriterion
getVerifyUuidFilter(de.xima.cmn.criteria.FilterCriterion.Operator operator, EProcessListView view)
static boolean
hasSortingCriteria(de.xima.cmn.criteria.AQueryCriteriaManager qcm, de.xima.cmn.criteria.SortingCriterion sorting)
-
-
-
Method Detail
-
getGridFilterCriteria
public static final List<de.xima.cmn.criteria.FilterCriterion> getGridFilterCriteria(String field, Object value, Locale locale)
Gets the criteria for filteringExtendedEntityModel
<Vorgang
> (i.e. the form record data) by a given field with the given value- Parameters:
field
- determines which DB field of the process data should be filteredvalue
- the given field should contain- Returns:
- a
List
ofFilterCriterion
s for the given key and value
-
getGridSortingCriteria
public static final List<de.xima.cmn.criteria.SortingCriterion> getGridSortingCriteria(String sortField, org.primefaces.model.SortOrder sortOrder)
-
getStringFilter
public static final de.xima.cmn.criteria.FilterCriterion getStringFilter(String key, String value, EProcessListView view, Locale locale, Mandant client)
-
getDateFilter
public static final de.xima.cmn.criteria.FilterCriterion getDateFilter(String key, Date value, de.xima.cmn.criteria.FilterCriterion.Operator operator, EProcessListView view)
-
getFutureFilter
public static final de.xima.cmn.criteria.FilterCriterion getFutureFilter(EProcessListView view, Instant now)
-
getReadFilter
public static final de.xima.cmn.criteria.FilterCriterion getReadFilter(boolean read, EProcessListView view)
-
getNoStateFilter
public static final de.xima.cmn.criteria.FilterCriterion getNoStateFilter(EProcessListView view)
-
getHasStateFilter
public static final de.xima.cmn.criteria.FilterCriterion getHasStateFilter(EProcessListView view)
-
getDeletableFilter
public static final de.xima.cmn.criteria.FilterCriterion getDeletableFilter(EProcessListView view, boolean isDeletable)
-
getAttachmentsFilter
public static final de.xima.cmn.criteria.FilterCriterion getAttachmentsFilter(boolean withAttachments, EProcessListView view)
-
getStateFilter
public static final de.xima.cmn.criteria.FilterCriterion getStateFilter(de.xima.cmn.criteria.FilterCriterion.Operator operator, EProcessListView view)
-
getVerifyUuidFilter
public static final de.xima.cmn.criteria.FilterCriterion getVerifyUuidFilter(de.xima.cmn.criteria.FilterCriterion.Operator operator, EProcessListView view)
-
getSavedFilter
public static final de.xima.cmn.criteria.FilterCriterion getSavedFilter(EProcessListView view)
-
getNotSavedFilter
public static final de.xima.cmn.criteria.FilterCriterion getNotSavedFilter(EProcessListView view)
-
getEditorFilter
public static final de.xima.cmn.criteria.FilterCriterion getEditorFilter(EProcessListView view, IUser user)
-
getCreatorFilter
public static final de.xima.cmn.criteria.FilterCriterion getCreatorFilter(EProcessListView view, IUser user)
-
getProjektTitleLikeCriteria
public static final List<de.xima.cmn.criteria.FilterCriterion> getProjektTitleLikeCriteria(String value, EProcessListView view)
-
hasSortingCriteria
public static final boolean hasSortingCriteria(de.xima.cmn.criteria.AQueryCriteriaManager qcm, de.xima.cmn.criteria.SortingCriterion sorting)
-
-