public class AlertQueryBuilder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AlertQueryBuilder.ReadMode
ReadMode represents the state of alert (Read, unread, read & unread)
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REVISION |
| Constructor and Description |
|---|
AlertQueryBuilder() |
AlertQueryBuilder(AlertQueryBuilder other) |
| Modifier and Type | Method and Description |
|---|---|
AlertQueryBuilder |
author(Member author)
Sets the author to filter on current
AlertQueryBuilder |
AlertQueryBuilder |
endDate(java.util.Calendar endCal)
Sets the endDate to filter on current
AlertQueryBuilder |
AlertQueryBuilder |
endDate(java.util.Date endDate)
Sets the endDate to filter on current
AlertQueryBuilder |
PageResult<Alert> |
getResults()
Returns alert paginated result
|
int |
getResultsCount()
Count (without sorting and first/max criteria for performance reason)
|
AlertQueryBuilder |
levels(Alert.Level... levels)
Sets the levels to filter on current
AlertQueryBuilder |
AlertQueryBuilder |
pagerAll(boolean pagerAll)
Defines if all results should be displayed for current
AlertQueryBuilder |
void |
pagerParams(PagerParams pagerParams) |
AlertQueryBuilder |
pageSize(int pageSize)
Sets the page size on current
AlertQueryBuilder |
AlertQueryBuilder |
read(AlertQueryBuilder.ReadMode readMode)
Sets the read mode to filter on current
AlertQueryBuilder |
AlertQueryBuilder |
recipient(Member recipient)
Sets the recipient to filter on current
AlertQueryBuilder |
AlertQueryBuilder |
reverse(boolean reverse)
Defines if results have to be reversed on current
AlertQueryBuilder |
AlertQueryBuilder |
sort(java.lang.String sort)
Sets the sort on current
AlertQueryBuilder |
AlertQueryBuilder |
start(int start)
Sets the start (Index) on current
AlertQueryBuilder |
AlertQueryBuilder |
startDate(java.util.Calendar startCal)
Sets the startDate to filter on current
AlertQueryBuilder |
AlertQueryBuilder |
startDate(java.util.Date startDate)
Sets the startDate to filter on current
AlertQueryBuilder |
java.lang.String |
toString() |
AlertQueryBuilder |
workspace(Workspace workspace)
Sets the workspace to filter on current
AlertQueryBuilder |
public static final java.lang.String REVISION
public AlertQueryBuilder()
public AlertQueryBuilder(AlertQueryBuilder other)
public int getResultsCount()
public PageResult<Alert> getResults()
PageResult of Alertpublic AlertQueryBuilder author(Member author)
AlertQueryBuilderauthor - the Member author of the alertpublic AlertQueryBuilder endDate(java.util.Date endDate)
AlertQueryBuilderendDate - the Datepublic AlertQueryBuilder endDate(java.util.Calendar endCal)
AlertQueryBuilderendDate - the Calendarpublic AlertQueryBuilder levels(Alert.Level... levels)
AlertQueryBuilderlevels - the array of Alert.Levelpublic AlertQueryBuilder recipient(Member recipient)
AlertQueryBuilderrecipient - the Memberpublic AlertQueryBuilder read(AlertQueryBuilder.ReadMode readMode)
AlertQueryBuilderread - the AlertQueryBuilder.ReadModepublic AlertQueryBuilder startDate(java.util.Date startDate)
AlertQueryBuilderread - the Datepublic AlertQueryBuilder startDate(java.util.Calendar startCal)
AlertQueryBuilderread - the Calendarpublic AlertQueryBuilder workspace(Workspace workspace)
AlertQueryBuilderread - the Workspacepublic void pagerParams(PagerParams pagerParams)
public AlertQueryBuilder sort(java.lang.String sort)
AlertQueryBuildersort - the chosen sort on current AlertQueryBuilderpublic AlertQueryBuilder reverse(boolean reverse)
AlertQueryBuilderreverse, - if true results order will be reversedpublic AlertQueryBuilder start(int start)
AlertQueryBuilderstart, - the first indexpublic AlertQueryBuilder pageSize(int pageSize)
AlertQueryBuilderpageSize, - the page size for returned PageResultpublic AlertQueryBuilder pagerAll(boolean pagerAll)
AlertQueryBuilderpagerAll, - if true all results will be displayedpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001-2017 Jalios SA. All Rights Reserved.