Class DefaultPredefinedSearchBuilder
- java.lang.Object
-
- com.atlassian.confluence.search.service.DefaultPredefinedSearchBuilder
-
- All Implemented Interfaces:
PredefinedSearchBuilder
public class DefaultPredefinedSearchBuilder extends Object implements PredefinedSearchBuilder
-
-
Constructor Summary
Constructors Constructor Description DefaultPredefinedSearchBuilder(PermissionManager permissionManager, SpaceManager spaceManager, LabelManager labelManager, SiteSearchPermissionsQueryFactory siteSearchPermissionsQueryFactory, ConfluenceUserDao confluenceUserDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISearchbuildRecentUpdateSearch(RecentUpdateQueryParameters params, int startIndex, int numberOfResults)Create a recent update search.ISearchbuildSiteSearch(SearchQueryParameters searchQueryParams, int startIndex, int pageSize)If no query parameters are provided, the default site search will query all content, and filter for non-archived and permissible content.ISearchbuildUsersSearch(UserSearchQueryParameters userSearchQueryParameters, int startIndex, int numberOfResults)Create and return theISearchused to find users know to the system based on parts of their name or user name.ISearchbuildUsersSearch(String query, int maxResults)Create and return theISearchused to find users know to the system based on parts of their name or user name.
-
-
-
Constructor Detail
-
DefaultPredefinedSearchBuilder
public DefaultPredefinedSearchBuilder(PermissionManager permissionManager, SpaceManager spaceManager, LabelManager labelManager, SiteSearchPermissionsQueryFactory siteSearchPermissionsQueryFactory, ConfluenceUserDao confluenceUserDao)
- Since:
- 7.20
-
-
Method Detail
-
buildSiteSearch
public ISearch buildSiteSearch(SearchQueryParameters searchQueryParams, int startIndex, int pageSize)
If no query parameters are provided, the default site search will query all content, and filter for non-archived and permissible content.- Specified by:
buildSiteSearchin interfacePredefinedSearchBuilder- Parameters:
searchQueryParams- the query parameters describing the search terms and filtering for the search.startIndex- to support paging, specify the index of the first result to be included in the result. The startIndex should be greater than 0,pageSize- the maximum number of results to return. This must be greater than 0.- Returns:
- the site wide content search for Confluence.
-
buildUsersSearch
public ISearch buildUsersSearch(String query, int maxResults)
Description copied from interface:PredefinedSearchBuilderCreate and return theISearchused to find users know to the system based on parts of their name or user name. You should not use wild card within the supplied query, simply supply as much as you know of the user(s) required e.g. parts of names such as "Andr" or "Peter An" or parts of usernames.- Specified by:
buildUsersSearchin interfacePredefinedSearchBuilder- Parameters:
query- the query termmaxResults- the maximum number of results to return- Returns:
- the user search for Confluence.
-
buildUsersSearch
public ISearch buildUsersSearch(UserSearchQueryParameters userSearchQueryParameters, int startIndex, int numberOfResults)
Description copied from interface:PredefinedSearchBuilderCreate and return theISearchused to find users know to the system based on parts of their name or user name. You should not use wild card within the supplied query, simply supply as much as you know of the user(s) required e.g. parts of names such as "Andr" or "Peter An" or parts of usernames.- Specified by:
buildUsersSearchin interfacePredefinedSearchBuilder- Parameters:
userSearchQueryParameters- the parameters, including the query termstartIndex- the offset in the overall results to start returning results fromnumberOfResults- the maximum number of results to return- Returns:
- the user search for Confluence.
-
buildRecentUpdateSearch
public ISearch buildRecentUpdateSearch(RecentUpdateQueryParameters params, int startIndex, int numberOfResults)
Description copied from interface:PredefinedSearchBuilderCreate a recent update search.- Specified by:
buildRecentUpdateSearchin interfacePredefinedSearchBuilder- Parameters:
params- the paramsstartIndex- to support paging, specify the index of the first result to be included in the result. The startIndex should be greater than 0,numberOfResults- the maximum number of results to return
-
-