@Unstable public class LiveDataQuery extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LiveDataQuery.Constraint
A constraint to apply to a property value.
|
static class |
LiveDataQuery.Filter
A set of constraints to apply to a given property.
|
static class |
LiveDataQuery.SortEntry
A sort entry.
|
static class |
LiveDataQuery.Source
Specifies where to take the data from.
|
Constructor and Description |
---|
LiveDataQuery() |
Modifier and Type | Method and Description |
---|---|
List<LiveDataQuery.Filter> |
getFilters() |
Integer |
getLimit() |
Long |
getOffset() |
List<String> |
getProperties() |
List<LiveDataQuery.SortEntry> |
getSort() |
LiveDataQuery.Source |
getSource() |
void |
initialize()
Prevent
null values where it's possible. |
void |
setFilters(List<LiveDataQuery.Filter> filters)
Sets the filters to apply on property values.
|
void |
setLimit(Integer limit)
Sets the number of entries to fetch (the page size).
|
void |
setOffset(Long offset)
Sets the index where the current page of entries starts.
|
void |
setProperties(List<String> properties)
Sets the list of properties to fetch.
|
void |
setSort(List<LiveDataQuery.SortEntry> sort)
Sets the list of properties to sort on.
|
void |
setSource(LiveDataQuery.Source source)
Specifies the live data source to take the data from.
|
public Long getOffset()
public void setOffset(Long offset)
offset
- the new offsetpublic Integer getLimit()
public void setLimit(Integer limit)
limit
- the new limitpublic List<String> getProperties()
public void setProperties(List<String> properties)
properties
- the list of properties to fetchpublic LiveDataQuery.Source getSource()
public void setSource(LiveDataQuery.Source source)
source
- the new live data source configurationpublic List<LiveDataQuery.Filter> getFilters()
public void setFilters(List<LiveDataQuery.Filter> filters)
filters
- the new filters to apply on property valuespublic List<LiveDataQuery.SortEntry> getSort()
public void setSort(List<LiveDataQuery.SortEntry> sort)
sort
- the list of properties to sort onpublic void initialize()
null
values where it's possible.Copyright © 2004–2022 XWiki. All rights reserved.