@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()
ProductSearcher
getRecentItems
in interface ProductSearcher
public ResultGroup getRecentItems(int maxItemCount)
ProductSearcher
getRecentItems
in interface ProductSearcher
maxItemCount
- Limits the amount of items returnedpublic ResultGroup getSearchedItems(@Nonnull String search) throws Exception
ProductSearcher
getSearchedItems
in interface ProductSearcher
search
- A user submitted search stringException
public ResultGroup getSearchedItems(int maximumItemCount, @Nonnull String search) throws Exception
ProductSearcher
getSearchedItems
in interface ProductSearcher
maximumItemCount
- Limits the amount of items returnedsearch
- A user submitted search stringException
public String getSearchTypeLabel()
ProductSearcher
getSearchTypeLabel
in interface ProductSearcher
Copyright © 2002-2021 Atlassian. All Rights Reserved.