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
ConstructorDescriptionAdminItemSearchSectionProvider
(com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager, PermissionManager permissionManager) -
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.
-
Constructor Details
-
AdminItemSearchSectionProvider
public AdminItemSearchSectionProvider(com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager, PermissionManager permissionManager)
-
-
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
-