Package org.alfresco.rest.search
Class SortClause
java.lang.Object
org.alfresco.rest.search.SortClause
Object representation of a single sort clause.
"sort": [
{
"type": "FIELD",
"field": "string",
"ascending": false
}
]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SortClauseShortcut method for creating a sort clause.getField()getType()booleanvoidsetAscending(boolean ascending) voidvoid
-
Constructor Details
-
SortClause
public SortClause() -
SortClause
-
-
Method Details
-
getType
-
getField
-
isAscending
public boolean isAscending() -
setType
-
setField
-
setAscending
public void setAscending(boolean ascending) -
from
Shortcut method for creating a sort clause.- Parameters:
type- the sort type (e.g. FIELD)fieldname- the field name.ascending- ascending (true) or descending (false).- Returns:
- a new
SortClauseinstance.
-