public class

ProjectAwareQuickSearchHandlerImpl

extends Object
implements ProjectAwareQuickSearchHandler
java.lang.Object
   ↳ com.atlassian.jira.issue.search.quicksearch.ProjectAwareQuickSearchHandlerImpl

Class Overview

Looks up the search request for projects already searched for in the context. If there are no projects in the context than returns all projects the current user can browse.

Summary

Public Constructors
ProjectAwareQuickSearchHandlerImpl(ProjectManager projectManager, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.search.quicksearch.ProjectAwareQuickSearchHandler

Public Constructors

public ProjectAwareQuickSearchHandlerImpl (ProjectManager projectManager, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext)

Public Methods

public void addProject (String projectId, QuickSearchResult searchResult)

Adds a project to the given search.

Parameters
projectId project id to add
searchResult search result to add to

public List<Project> getProjects (QuickSearchResult searchResult)

Retrieves project from the search request or returns all projects the current user can browse

Parameters
searchResult search result to look up
Returns
  • list of project org.ofbiz.core.entity.GenericValue's

public String getSingleProjectIdFromSearch (QuickSearchResult searchResult)

Retrieves the single project specified in search.

Parameters
searchResult search result to extract the project from
Returns
  • the ID of the single project in search. Null if there is no project of more than 1 project