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/BRANCHES/DEV/5.2.N/root@129252 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-08-09 09:33:20 +00:00
parent 27c69b8cec
commit 4b308b5cdc
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);