Merged 5.2.N (5.2.1) to HEAD (5.2)

130297 gjames: Merged searchapi (5.2.1) to 5.2.N (5.2.1)
      130050 gjames: SEARCH-161: Supporting synonyms for sorting fieldNames


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@130369 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-09-06 22:10:26 +00:00
parent 63e06293bb
commit b10f889f29
4 changed files with 33 additions and 12 deletions

View File

@@ -59,15 +59,13 @@ public class SortDef
return type;
}
/**
* You are allowed to create an instance of this class that has an invalid sortType
* but this method will validate the definition is correct and return it.
*
* @return SortDefinition
*/
public SortDefinition toDefinition()
public String getField()
{
return new SortDefinition(SortType.valueOf(type), field, ascending);
return field;
}
public boolean isAscending()
{
return ascending;
}
}