REPO-1058: REST API - list sites that person is member of ...

- fix orderBy tests and backward compatibility
- REPO-1242,  / REPO-1244

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2016-09-19 13:03:35 +00:00
parent 660d46a829
commit 6242e57e6c
2 changed files with 15 additions and 12 deletions

View File

@@ -130,8 +130,11 @@ public class SitesImpl implements Sites
{
Map<String,SiteService.SortFields> aMap = new HashMap<>(3);
aMap.put(PARAM_SITE_TITLE, SiteService.SortFields.SiteTitle);
aMap.put(SiteService.SortFields.SiteTitle.toString(), SiteService.SortFields.SiteTitle); // for backwards compat'
aMap.put(PARAM_SITE_ID, SiteService.SortFields.SiteShortName);
aMap.put(SiteService.SortFields.SiteShortName.toString(), SiteService.SortFields.SiteShortName); // for backwards compat'
aMap.put(PARAM_SITE_ROLE, SiteService.SortFields.Role);
aMap.put(SiteService.SortFields.Role.toString(), SiteService.SortFields.Role); // for backwards compat'
SORT_SITE_MEMBERSHIP = Collections.unmodifiableMap(aMap);
}