@AlfrescoPublicApi public class QueryParams<T extends QueryField> extends Object
| Constructor and Description |
|---|
QueryParams(List<org.alfresco.util.Pair<T,Boolean>> sortProps)
Constructor that takes the sort order.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxItems()
Get the total number of items to return (assuming enough are available).
|
int |
getSkipCount()
Get the number of items to skip before creating the list.
|
List<org.alfresco.util.Pair<T,Boolean>> |
getSortProps()
Get the ordered list of columns to sort on (and their sort direction).
|
void |
setSortProps(List<org.alfresco.util.Pair<T,Boolean>> sortProps)
Sets the sort properties required and validates the list.
|
QueryParams<T> |
withMaxItems(int maxItems)
Sets the max items count required.
|
QueryParams<T> |
withSkipCount(int skipCount)
Sets the skip count required.
|
QueryParams<T> |
withSortProps(List<org.alfresco.util.Pair<T,Boolean>> sortProps)
Sets the sort properties required.
|
public QueryParams<T> withSkipCount(int skipCount)
public QueryParams<T> withMaxItems(int maxItems)
public QueryParams<T> withSortProps(List<org.alfresco.util.Pair<T,Boolean>> sortProps)
sortProps - A list of pairs of properties and sort directions.public void setSortProps(List<org.alfresco.util.Pair<T,Boolean>> sortProps)
sortProps - A list of pairs of properties and sort directions.public List<org.alfresco.util.Pair<T,Boolean>> getSortProps()
public int getSkipCount()
public int getMaxItems()
Copyright © 2005–2018 Alfresco Software. All rights reserved.