Package org.alfresco.service.cmr.search
Class SearchParameters.SortDefinition
java.lang.Object
org.alfresco.service.cmr.search.SearchParameters.SortDefinition
- Enclosing class:
- SearchParameters
A helper class for sort definition. Encapsulated using the lucene sortType, field name and a flag for
ascending/descending.
- Author:
- Andy Hind
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
What is used for the sort -
Constructor Summary
ConstructorsConstructorDescriptionSortDefinition
(SearchParameters.SortDefinition.SortType sortType, String field, boolean ascending) -
Method Summary
Modifier and TypeMethodDescriptiongetField()
FieldWhat is used for the sortboolean
Is ascending
-
Constructor Details
-
SortDefinition
public SortDefinition(SearchParameters.SortDefinition.SortType sortType, String field, boolean ascending)
-
-
Method Details
-
isAscending
public boolean isAscending()Is ascending- Returns:
- true if ascending
-
getField
Field- Returns:
- - the field
-
getSortType
What is used for the sort- Returns:
- sort type
-