mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user