Class DefaultContentNameSearchSectionsProvider
java.lang.Object
com.atlassian.confluence.impl.search.contentnames.DefaultContentNameSearchSectionsProvider
- All Implemented Interfaces:
ContentNameSearchSectionsProvider
public class DefaultContentNameSearchSectionsProvider
extends Object
implements ContentNameSearchSectionsProvider
The default section provider for quick nav that searches through pages, blogs, attachments, peoples and spaces.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSections
(List<QueryToken> queryTokens, ContentNameSearchContext context) For the given query tokens the method should return a collection ofContentNameSearchSection
s that in some way match the query.void
setContentNameSearcher
(ContentNameSearcher contentNameSearcher) void
setContentNameSearchSectionSpecsProvider
(Supplier<Map<Category, ContentNameSearchSectionSpec>> contentNameSearchSectionSpecsProvider)
-
Constructor Details
-
DefaultContentNameSearchSectionsProvider
public DefaultContentNameSearchSectionsProvider()
-
-
Method Details
-
getSections
public Collection<ContentNameSearchSection> getSections(List<QueryToken> queryTokens, ContentNameSearchContext context) Description copied from interface:ContentNameSearchSectionsProvider
For the given query tokens the method should return a collection ofContentNameSearchSection
s that in some way match the query.- Specified by:
getSections
in interfaceContentNameSearchSectionsProvider
- Parameters:
queryTokens
- the query as tokenized by Confluence- Returns:
- the
ContentNameSearchSection
s to be included in the quick nav result or null if nothing should be included
-
setContentNameSearcher
-
setContentNameSearchSectionSpecsProvider
public void setContentNameSearchSectionSpecsProvider(Supplier<Map<Category, ContentNameSearchSectionSpec>> contentNameSearchSectionSpecsProvider)
-