Class DefaultRestSearchService
java.lang.Object
com.atlassian.confluence.plugins.rest.jackson2.service.DefaultRestSearchService
- All Implemented Interfaces:
RestSearchService
-
Constructor Summary
ConstructorDescriptionDefaultRestSearchService
(ContentNameSearcher contentNameSearcher, QueryTokenizer contentNameQueryTokenizer, SearchManager searchManager, PredefinedSearchBuilder predefinedSearchBuilder, com.atlassian.crowd.embedded.api.CrowdService crowdService, EntityBuilderFactory entityBuilderFactory, PermissionManager permissionManager) -
Method Summary
Modifier and TypeMethodDescriptionfullSearch
(RestSearchParameters restSearchParameters, Integer startIndex, Integer pageSize) groupSearch
(String query, Integer maxResults) Find all active groups which match or begin with the supplied query.nameSearch
(RestSearchParameters searchParameters, boolean groupResults, int startIndex, Integer pageSize, Integer maxResultsPerGroup) userSearch
(String query, Integer maxResults) userSearch
(String query, Integer maxResults, boolean showUnlicensedUsers)
-
Constructor Details
-
DefaultRestSearchService
public DefaultRestSearchService(ContentNameSearcher contentNameSearcher, QueryTokenizer contentNameQueryTokenizer, SearchManager searchManager, PredefinedSearchBuilder predefinedSearchBuilder, com.atlassian.crowd.embedded.api.CrowdService crowdService, EntityBuilderFactory entityBuilderFactory, PermissionManager permissionManager)
-
-
Method Details
-
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
-