public class ProjectAwareQuickSearchHandlerImpl extends Object implements ProjectAwareQuickSearchHandler
Constructor and Description |
---|
ProjectAwareQuickSearchHandlerImpl(ProjectManager projectManager,
PermissionManager permissionManager,
JiraAuthenticationContext authenticationContext) |
Modifier and Type | Method and Description |
---|---|
void |
addProject(String projectId,
QuickSearchResult searchResult)
Adds a project to the given search.
|
List<Project> |
getProjects(QuickSearchResult searchResult)
Retrieves project from the search request or returns all projects the current user can browse
|
String |
getSingleProjectIdFromSearch(QuickSearchResult searchResult)
Retrieves the single project specified in search.
|
public ProjectAwareQuickSearchHandlerImpl(ProjectManager projectManager, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext)
public List<Project> getProjects(QuickSearchResult searchResult)
getProjects
in interface ProjectAwareQuickSearchHandler
searchResult
- search result to look upGenericValue
'spublic String getSingleProjectIdFromSearch(QuickSearchResult searchResult)
ProjectAwareQuickSearchHandler
getSingleProjectIdFromSearch
in interface ProjectAwareQuickSearchHandler
searchResult
- search result to extract the project frompublic void addProject(String projectId, QuickSearchResult searchResult)
ProjectAwareQuickSearchHandler
addProject
in interface ProjectAwareQuickSearchHandler
projectId
- project id to addsearchResult
- search result to add toCopyright © 2002-2018 Atlassian. All Rights Reserved.