public class ProjectSuggestionProviderImpl extends Object implements ProjectSuggestionProvider
Constructor and Description |
---|
ProjectSuggestionProviderImpl(SuggestionBeanFactory suggestionBeanFactory,
JiraAuthenticationContext authenticationContext,
UserProjectHistoryManager projectHistoryManager,
PermissionManager permissionManager,
ProjectManager projectManager) |
Modifier and Type | Method and Description |
---|---|
List<SuggestionGroupBean> |
getProjectPickerSuggestions(Optional<Long> selectedProject,
boolean includeRecent)
Returns a list of SuggestionGroupBeans containing all projects.
|
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.
|
public ProjectSuggestionProviderImpl(SuggestionBeanFactory suggestionBeanFactory, JiraAuthenticationContext authenticationContext, UserProjectHistoryManager projectHistoryManager, PermissionManager permissionManager, ProjectManager projectManager)
public List<SuggestionGroupBean> getProjectPickerSuggestions(Optional<Long> selectedProject, boolean includeRecent)
ProjectSuggestionProvider
getProjectPickerSuggestions
in interface ProjectSuggestionProvider
selectedProject
- Used to highlight the currently selected projectincludeRecent
- True if the result should contain a separate group for the most recent projects firstpublic List<SuggestionGroupBean> getProjectPickerSuggestions(ProjectPermissionKey permission, Optional<Long> selectedProject, boolean includeRecent)
ProjectSuggestionProvider
getProjectPickerSuggestions
in interface ProjectSuggestionProvider
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 firstCopyright © 2002-2019 Atlassian. All Rights Reserved.