com.atlassian.confluence.plugins.quicknav.admin
Class AdminItemSearchSectionProvider

java.lang.Object
  extended by com.atlassian.confluence.plugins.quicknav.admin.AdminItemSearchSectionProvider
All Implemented Interfaces:
ContentNameSearchSectionsProvider

public class AdminItemSearchSectionProvider
extends java.lang.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
AdminItemSearchSectionProvider()
           
 
Method Summary
 java.util.Collection<ContentNameSearchSection> getSections(java.util.List<QueryToken> queryTokens, ContentNameSearchContext context)
          For the given query tokens the method should return a collection of ContentNameSearchSections that in some way match the query.
 java.util.List<ContentNameMatch> searchAdminItems(java.util.List<QueryToken> queryTokens)
          Finds all admin web items that match the given query and returns them in as a list of ContentNameMatchs to be consumed by ContentNameSearchAction.
 void setPermissionManager(PermissionManager permissionManager)
           
 void setWebInterfaceManager(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminItemSearchSectionProvider

public AdminItemSearchSectionProvider()
Method Detail

getSections

public java.util.Collection<ContentNameSearchSection> getSections(java.util.List<QueryToken> queryTokens,
                                                                  ContentNameSearchContext context)
Description copied from interface: ContentNameSearchSectionsProvider
For the given query tokens the method should return a collection of ContentNameSearchSections that in some way match the query.

Specified by:
getSections in interface ContentNameSearchSectionsProvider
Parameters:
queryTokens - the query as tokenized by Confluence
Returns:
the ContentNameSearchSections to be included in the quick nav result or null if nothing should be included

searchAdminItems

public java.util.List<ContentNameMatch> searchAdminItems(java.util.List<QueryToken> queryTokens)
Finds all admin web items that match the given query and returns them in as a list of ContentNameMatchs to be consumed by ContentNameSearchAction.

Parameters:
queryTokens -
Returns:

setWebInterfaceManager

public void setWebInterfaceManager(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)

setPermissionManager

public void setPermissionManager(PermissionManager permissionManager)


Copyright © 2003-2014 Atlassian. All Rights Reserved.