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 Alert
public AlertQueryBuilder author(Member author)
AlertQueryBuilder
author
- the Member
author of the alertpublic AlertQueryBuilder endDate(java.util.Date endDate)
AlertQueryBuilder
endDate
- the Date
public AlertQueryBuilder endDate(java.util.Calendar endCal)
AlertQueryBuilder
endCal
- the Calendar
public AlertQueryBuilder levels(Alert.Level... levels)
AlertQueryBuilder
levels
- the array of Alert.Level
public AlertQueryBuilder recipient(Member recipient)
AlertQueryBuilder
recipient
- the Member
public AlertQueryBuilder read(AlertQueryBuilder.ReadMode readMode)
AlertQueryBuilder
readMode
- the AlertQueryBuilder.ReadMode
public AlertQueryBuilder startDate(java.util.Date startDate)
AlertQueryBuilder
startDate
- the Date
public AlertQueryBuilder startDate(java.util.Calendar startCal)
AlertQueryBuilder
startCal
- the Calendar
public AlertQueryBuilder workspace(Workspace workspace)
AlertQueryBuilder
workspace
- the Workspace
public void pagerParams(PagerParams pagerParams)
public AlertQueryBuilder sort(java.lang.String sort)
AlertQueryBuilder
sort
- the chosen sort on current AlertQueryBuilderpublic AlertQueryBuilder reverse(boolean reverse)
AlertQueryBuilder
reverse
- if true results order will be reversedpublic AlertQueryBuilder start(int start)
AlertQueryBuilder
start
- the first indexpublic AlertQueryBuilder pageSize(int pageSize)
AlertQueryBuilder
pageSize
- the page size for returned PageResultpublic AlertQueryBuilder pagerAll(boolean pagerAll)
AlertQueryBuilder
pagerAll
- if true all results will be displayedpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001-2018 Jalios SA. All Rights Reserved.