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
Constructors Constructor Description DefaultContentNameSearchSectionsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ContentNameSearchSection>
getSections(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)
-
-
-
Method Detail
-
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
public void setContentNameSearcher(ContentNameSearcher contentNameSearcher)
-
setContentNameSearchSectionSpecsProvider
public void setContentNameSearchSectionSpecsProvider(Supplier<Map<Category,ContentNameSearchSectionSpec>> contentNameSearchSectionSpecsProvider)
-
-