@Component public class ProjectSearcher extends Object implements ProductSearcher
| Modifier and Type | Field and Description |
|---|---|
static String |
PROJECTS_GROUP_ID |
| Modifier and Type | Method and Description |
|---|---|
ResultGroup |
getRecentItems()
Retrieves recently viewed items for the current user, contained within a result group.
|
ResultGroup |
getRecentItems(int maxItemCount)
Retrieves recently viewed items for the current user, contained within a result group.
|
ResultGroup |
getSearchedItems(int maximumItemCount,
String search)
Retrieves items that match a provided search query, contained within a result group.
|
ResultGroup |
getSearchedItems(String search)
Retrieves items that match a provided search query, contained within a result group.
|
String |
getSearchTypeLabel()
Returns a label representing type of item this searcher retrieves.
|
public static final String PROJECTS_GROUP_ID
public ResultGroup getRecentItems()
ProductSearchergetRecentItems in interface ProductSearcherpublic ResultGroup getRecentItems(int maxItemCount)
ProductSearchergetRecentItems in interface ProductSearchermaxItemCount - Limits the amount of items returnedpublic ResultGroup getSearchedItems(@Nonnull String search) throws Exception
ProductSearchergetSearchedItems in interface ProductSearchersearch - A user submitted search stringExceptionpublic ResultGroup getSearchedItems(int maximumItemCount, @Nonnull String search) throws Exception
ProductSearchergetSearchedItems in interface ProductSearchermaximumItemCount - Limits the amount of items returnedsearch - A user submitted search stringExceptionpublic String getSearchTypeLabel()
ProductSearchergetSearchTypeLabel in interface ProductSearcherCopyright © 2002-2022 Atlassian. All Rights Reserved.