public class

ProjectSuggestionProviderImpl

extends Object
implements ProjectSuggestionProvider
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.rest.ProjectSuggestionProviderImpl

Summary

Public Constructors
ProjectSuggestionProviderImpl(SuggestionBeanFactory suggestionBeanFactory, JiraAuthenticationContext authenticationContext, UserProjectHistoryManager projectHistoryManager, PermissionManager permissionManager, ProjectManager projectManager)
Public Methods
List<SuggestionGroupBean> getProjectPickerSuggestions(ProjectPermissionKey permission, Optional<Long> selectedProject, boolean includeRecent)
Returns a list of SuggestionGroupBeans containing all the projects the current user can access with the provided permission.
List<SuggestionGroupBean> getProjectPickerSuggestions(Optional<Long> selectedProject, boolean includeRecent)
Returns a list of SuggestionGroupBeans containing all projects.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.fields.rest.ProjectSuggestionProvider

Public Constructors

public ProjectSuggestionProviderImpl (SuggestionBeanFactory suggestionBeanFactory, JiraAuthenticationContext authenticationContext, UserProjectHistoryManager projectHistoryManager, PermissionManager permissionManager, ProjectManager projectManager)

Public Methods

public List<SuggestionGroupBean> getProjectPickerSuggestions (ProjectPermissionKey permission, Optional<Long> selectedProject, boolean includeRecent)

Returns a list of SuggestionGroupBeans containing all the projects the current user can access with the provided permission.

Parameters
permission the permission to use to retrieve projects for the current user
selectedProject Used to highlight the currently selected project
includeRecent True if the result should contain a separate group for the most recent projects first
Returns
  • A list of suggestions to render a project picker

public List<SuggestionGroupBean> getProjectPickerSuggestions (Optional<Long> selectedProject, boolean includeRecent)

Returns a list of SuggestionGroupBeans containing all projects.

Parameters
selectedProject Used to highlight the currently selected project
includeRecent True if the result should contain a separate group for the most recent projects first
Returns
  • A list of suggestions to render a project picker