Class AdminItemSearchSectionProvider
- java.lang.Object
-
- com.atlassian.confluence.plugins.quicknav.admin.AdminItemSearchSectionProvider
-
- All Implemented Interfaces:
ContentNameSearchSectionsProvider
public class AdminItemSearchSectionProvider extends Object implements ContentNameSearchSectionsProvider
Section provider for quick nav that includes admin items in the results.On each request we search through all available admin items for the current user and filter out the ones whose label matches with the query tokens.
-
-
Constructor Summary
Constructors Constructor Description AdminItemSearchSectionProvider(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, PermissionManager permissionManager)
-
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.
-
-
-
Constructor Detail
-
AdminItemSearchSectionProvider
public AdminItemSearchSectionProvider(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, PermissionManager permissionManager)
-
-
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
-
-