Class CaseViewCriteria
java.lang.Object
com.aquima.interactions.process.dao.dto.CaseViewCriteria
Encapsulates the criteria for querying case views. Criteria include:
- what data to include in the returned views (projection)
- what filtering to do (selection)
- how to sort the results (ordering)
- whether to apply pagination, which page to retrieve and how big a page should be (pagination)
- Since:
- 9.9
- Author:
- Petru Galanton
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default paging size if not otherwise specified. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a CaseViewCriteria which does not take into account ignore mode settings.CaseViewCriteria
(IIgnoreModeSettings ignoreModeSettings) Creates a CaseViewCriteria with the specified ignore mode settings, no limit, total counting enabled, paging size of 5 and record start 0.CaseViewCriteria
(IIgnoreModeSettings ignoreModeSettings, int pagingSize, int recordStart, boolean countTotal) CaseViewCriteria
(IIgnoreModeSettings ignoreModeSettings, int pagingSize, int recordStart, boolean countTotal, int limit) Creates a CaseViewCriteria. -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(TypedAttributeReference attribute) addCaseProperty
(CaseProperty caseProperty) addFilter
(IViewFilter filter) addOrder
(ProcessViewOrder order) Returns the effective Application ID ignore mode, based on what Application ID has been set and the ignore mode settings.Returns the current language.int
getLimit()
getOrder()
int
int
boolean
hasCaseProperty
(CaseProperty taskProperty) boolean
boolean
hasLimit()
boolean
boolean
setApplicationId
(ApplicationID appId) setLanguage
(ILanguage language) setLimit
(int limit) setPagingSize
(int pagingSize) setRecordStart
(int start) setTotalRequested
(boolean countTotal)
-
Field Details
-
DEFAULT_PAGING_SIZE
public static final int DEFAULT_PAGING_SIZEThe default paging size if not otherwise specified.- See Also:
-
-
Constructor Details
-
CaseViewCriteria
public CaseViewCriteria()Creates a CaseViewCriteria which does not take into account ignore mode settings. -
CaseViewCriteria
Creates a CaseViewCriteria with the specified ignore mode settings, no limit, total counting enabled, paging size of 5 and record start 0.- Parameters:
ignoreModeSettings
- the ignore mode settings which control the application ID filter
-
CaseViewCriteria
public CaseViewCriteria(IIgnoreModeSettings ignoreModeSettings, int pagingSize, int recordStart, boolean countTotal) -
CaseViewCriteria
public CaseViewCriteria(IIgnoreModeSettings ignoreModeSettings, int pagingSize, int recordStart, boolean countTotal, int limit) Creates a CaseViewCriteria.- Parameters:
ignoreModeSettings
- the ignore mode settings which control the Application ID filterpagingSize
- the paging sizerecordStart
- the record to start atcountTotal
- whether counting total results is requestedlimit
- the applicable limit (values <= 0 indicate no limit)
-
-
Method Details
-
getOrder
-
getPagingSize
public int getPagingSize() -
setPagingSize
-
getRecordStart
public int getRecordStart() -
setRecordStart
-
hasLimit
public boolean hasLimit() -
getLimit
public int getLimit() -
setLimit
-
addFilter
-
getFilters
-
setApplicationId
-
getIgnoreMode
Returns the effective Application ID ignore mode, based on what Application ID has been set and the ignore mode settings.- Returns:
- the current effective ignore mode
-
addCaseProperty
-
getCaseProperties
-
hasCaseProperty
-
addAttribute
-
getAttributes
-
addOrder
-
hasUserFilters
public boolean hasUserFilters() -
isTotalRequested
public boolean isTotalRequested() -
setTotalRequested
-
getLanguage
Returns the current language.- Returns:
- The language, may be
null
.
-
setLanguage
-
hasLanguage
public boolean hasLanguage()
-