Class DefaultRestSearchService
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.service.DefaultRestSearchService
-
- All Implemented Interfaces:
RestSearchService
public class DefaultRestSearchService extends Object implements RestSearchService
-
-
Constructor Summary
Constructors Constructor Description DefaultRestSearchService(ContentNameSearcher contentNameSearcher, QueryTokenizer contentNameQueryTokenizer, SearchManager searchManager, PredefinedSearchBuilder predefinedSearchBuilder, com.atlassian.crowd.embedded.api.CrowdService crowdService, EntityBuilderFactory entityBuilderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResultEntityList
fullSearch(RestSearchParameters restSearchParameters, Integer startIndex, Integer pageSize)
SearchResultEntityList
groupSearch(String query, Integer maxResults)
Find all active groups which match or begin with the supplied query.SearchResultEntityList
nameSearch(RestSearchParameters searchParameters, boolean groupResults, int startIndex, Integer pageSize, Integer maxResultsPerGroup)
SearchResultEntityList
userSearch(String query, Integer maxResults)
SearchResultEntityList
userSearch(String query, Integer maxResults, boolean showUnlicensedUsers)
-
-
-
Constructor Detail
-
DefaultRestSearchService
public DefaultRestSearchService(ContentNameSearcher contentNameSearcher, QueryTokenizer contentNameQueryTokenizer, SearchManager searchManager, PredefinedSearchBuilder predefinedSearchBuilder, com.atlassian.crowd.embedded.api.CrowdService crowdService, EntityBuilderFactory entityBuilderFactory)
-
-
Method Detail
-
userSearch
public SearchResultEntityList userSearch(String query, Integer maxResults) throws SearchServiceException
- Specified by:
userSearch
in interfaceRestSearchService
- Throws:
SearchServiceException
-
userSearch
public SearchResultEntityList userSearch(String query, Integer maxResults, boolean showUnlicensedUsers) throws SearchServiceException
- Specified by:
userSearch
in interfaceRestSearchService
- Throws:
SearchServiceException
-
groupSearch
public SearchResultEntityList groupSearch(String query, Integer maxResults) throws SearchServiceException
Description copied from interface:RestSearchService
Find all active groups which match or begin with the supplied query.- Specified by:
groupSearch
in interfaceRestSearchService
- Returns:
- the matching groups
- Throws:
SearchServiceException
-
nameSearch
public SearchResultEntityList nameSearch(RestSearchParameters searchParameters, boolean groupResults, int startIndex, Integer pageSize, Integer maxResultsPerGroup) throws SearchServiceException
- Specified by:
nameSearch
in interfaceRestSearchService
- Throws:
SearchServiceException
-
fullSearch
public SearchResultEntityList fullSearch(RestSearchParameters restSearchParameters, Integer startIndex, Integer pageSize) throws SearchServiceException
- Specified by:
fullSearch
in interfaceRestSearchService
- Throws:
SearchServiceException
-
-