Class ProjectSearcher
java.lang.Object
com.atlassian.jira.plugins.quicksearch.impl.ProjectSearcher
- All Implemented Interfaces:
ProductSearcher
Search provider for recent and queried projects
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionRetrieves recently viewed items for the current user, contained within a result group.getRecentItems(int maxItemCount) Retrieves recently viewed items for the current user, contained within a result group.getSearchedItems(int maximumItemCount, String search) Retrieves items that match a provided search query, contained within a result group.getSearchedItems(String search) Retrieves items that match a provided search query, contained within a result group.Returns a label representing type of item this searcher retrieves.
-
Field Details
-
PROJECTS_GROUP_ID
- See Also:
-
-
Method Details
-
getRecentItems
Description copied from interface:ProductSearcherRetrieves recently viewed items for the current user, contained within a result group. If the current user is anonymous, or no recent items exist for this type, an empty list is provided.- Specified by:
getRecentItemsin interfaceProductSearcher- Returns:
- A result group containing a list of recent items and a view all url for either viewing all items or all recently viewed items of this resource type
-
getRecentItems
Description copied from interface:ProductSearcherRetrieves recently viewed items for the current user, contained within a result group. Limits the amount of items returned by the passed parameter If the current user is anonymous, or no recent items exist for this type, an empty list is provided.- Specified by:
getRecentItemsin interfaceProductSearcher- Parameters:
maxItemCount- Limits the amount of items returned- Returns:
- A result group containing a list of recent items and a view all url for either viewing all items or all recently viewed items of this resource type
-
getSearchedItems
Description copied from interface:ProductSearcherRetrieves items that match a provided search query, contained within a result group.- Specified by:
getSearchedItemsin interfaceProductSearcher- Parameters:
search- A user submitted search string- Returns:
- A result group containing a list of matching items and a view all url for viewing all matching items of this resource type
- Throws:
Exception
-
getSearchedItems
Description copied from interface:ProductSearcherRetrieves items that match a provided search query, contained within a result group. Limits the amount of items returned by the passed parameter- Specified by:
getSearchedItemsin interfaceProductSearcher- Parameters:
maximumItemCount- Limits the amount of items returnedsearch- A user submitted search string- Returns:
- A result group containing a list of matching items and a view all url for viewing all matching items of this resource type
- Throws:
Exception
-
getSearchTypeLabel
Description copied from interface:ProductSearcherReturns a label representing type of item this searcher retrieves. This is the same label that is requested through the ultimate search endpoint.- Specified by:
getSearchTypeLabelin interfaceProductSearcher
-