mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
129010 jvonka: V1 REST API: 1st-cut of Sites Live Search - TODO api sanity test - open-question, re: orderBy REPO-232, REPO-882 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129188 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -29,6 +29,7 @@ package org.alfresco.rest.api;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.rest.api.model.Node;
|
||||
import org.alfresco.rest.api.model.Person;
|
||||
import org.alfresco.rest.api.model.Site;
|
||||
import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
|
||||
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
||||
import org.alfresco.rest.framework.webscripts.ResourceWebScriptHelper;
|
||||
@@ -61,6 +62,9 @@ public interface Queries
|
||||
static String PARAM_LASTNAME = ContentModel.PROP_LASTNAME.getLocalName();
|
||||
static int MIN_TERM_LENGTH_PEOPLE = 2;
|
||||
|
||||
// Sites query
|
||||
static int MIN_TERM_LENGTH_SITES = 2;
|
||||
|
||||
/**
|
||||
* Find Nodes
|
||||
*
|
||||
@@ -78,4 +82,13 @@ public interface Queries
|
||||
* @return the search query results
|
||||
*/
|
||||
CollectionWithPagingInfo<Person> findPeople(Parameters parameters);
|
||||
|
||||
/**
|
||||
* Find Sites
|
||||
*
|
||||
* @param parameters the {@link Parameters} object to get the parameters passed into the request
|
||||
*
|
||||
* @return the search query results
|
||||
*/
|
||||
CollectionWithPagingInfo<Site> findSites(Parameters parameters);
|
||||
}
|
||||
|
Reference in New Issue
Block a user