Class ProjectSuggestionProviderImpl
java.lang.Object
com.atlassian.jira.issue.fields.rest.ProjectSuggestionProviderImpl
- All Implemented Interfaces:
ProjectSuggestionProvider
-
Constructor Summary
ConstructorsConstructorDescriptionProjectSuggestionProviderImpl
(SuggestionBeanFactory suggestionBeanFactory, JiraAuthenticationContext authenticationContext, UserProjectHistoryManager projectHistoryManager, PermissionManager permissionManager, ProjectManager projectManager) -
Method Summary
Modifier and TypeMethodDescriptiongetProjectPickerSuggestions
(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.getProjectPickerSuggestions
(Optional<Long> selectedProject, boolean includeRecent) Returns a list of SuggestionGroupBeans containing all projects.
-
Constructor Details
-
ProjectSuggestionProviderImpl
public ProjectSuggestionProviderImpl(SuggestionBeanFactory suggestionBeanFactory, JiraAuthenticationContext authenticationContext, UserProjectHistoryManager projectHistoryManager, PermissionManager permissionManager, ProjectManager projectManager)
-
-
Method Details
-
getProjectPickerSuggestions
public List<SuggestionGroupBean> getProjectPickerSuggestions(Optional<Long> selectedProject, boolean includeRecent) Description copied from interface:ProjectSuggestionProvider
Returns a list of SuggestionGroupBeans containing all projects.- Specified by:
getProjectPickerSuggestions
in interfaceProjectSuggestionProvider
- Parameters:
selectedProject
- Used to highlight the currently selected projectincludeRecent
- 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
-
getProjectPickerSuggestions
public List<SuggestionGroupBean> getProjectPickerSuggestions(ProjectPermissionKey permission, Optional<Long> selectedProject, boolean includeRecent) Description copied from interface:ProjectSuggestionProvider
Returns a list of SuggestionGroupBeans containing all the projects the current user can access with the provided permission.- Specified by:
getProjectPickerSuggestions
in interfaceProjectSuggestionProvider
- Parameters:
permission
- the permission to use to retrieve projects for the current userselectedProject
- Used to highlight the currently selected projectincludeRecent
- 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
-