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

129252 adavis: REPO-1079 Rename "Live Search" API endpoints
      - Changes to end points to reflect the rename of:
        /queries/live-search-nodes  to /queries/nodes
        /queries/live-search-people to /queries/people
        /queries/live-search-sites  to /queries/sites


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129379 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alexandru Epure
2016-08-09 14:18:20 +00:00
parent 9d90145deb
commit 061e91e491
4 changed files with 13 additions and 13 deletions

View File

@@ -46,9 +46,9 @@ public class QueriesEntityResource implements
EntityResourceAction.ReadById<CollectionWithPagingInfo<? extends Object>>,
InitializingBean
{
private final static String QUERY_LIVE_SEARCH_NODES = "live-search-nodes";
private final static String QUERY_LIVE_SEARCH_PEOPLE = "live-search-people";
private final static String QUERY_LIVE_SEARCH_SITES = "live-search-sites";
private final static String QUERY_NODES = "nodes";
private final static String QUERY_PEOPLE = "people";
private final static String QUERY_SITES = "sites";
private Queries queries;
@@ -70,11 +70,11 @@ public class QueriesEntityResource implements
{
switch (queryId)
{
case QUERY_LIVE_SEARCH_NODES:
case QUERY_NODES:
return queries.findNodes(parameters);
case QUERY_LIVE_SEARCH_PEOPLE:
case QUERY_PEOPLE:
return queries.findPeople(parameters);
case QUERY_LIVE_SEARCH_SITES:
case QUERY_SITES:
return queries.findSites(parameters);
default:
throw new NotFoundException(queryId);