Class BoardListHelper
java.lang.Object
com.atlassian.greenhopper.web.sidebar.BoardListHelper
Helper methods to build a list of related boards according to the current view
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBoardListHelper
(com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext, ProjectHelper projectHelper, ProjectRapidViewService projectRapidViewService, RapidViewHistoryService rapidViewHistoryService, RapidViewService rapidViewService, com.atlassian.jira.cache.request.RequestCacheFactory requestCacheFactory) -
Method Summary
Modifier and TypeMethodDescriptionasStreamSortedByName
(Collection<RapidView> rapidViews, Collator collator) getFirstBoardForProject
(String projectKey) getFirstBoardForProjectLoader
(String projectKey) getProjectBoards
(String projectKey) io.atlassian.fugue.Option
<RapidView> getSelectedBoard
(Map<String, Object> context) Get currently selected board based on context and historygetSelectedBoard
(Map<String, Object> context, String projectKey) selectBoard
(Map<String, Object> context, String projectKey) Deprecated.
-
Field Details
-
REQUEST_CONTEXT_KEY
- See Also:
-
-
Constructor Details
-
BoardListHelper
@Autowired public BoardListHelper(com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext, ProjectHelper projectHelper, ProjectRapidViewService projectRapidViewService, RapidViewHistoryService rapidViewHistoryService, RapidViewService rapidViewService, com.atlassian.jira.cache.request.RequestCacheFactory requestCacheFactory)
-
-
Method Details
-
getProjectBoards
- Parameters:
projectKey
- A project key.- Returns:
- The
RapidView
s associated with the specified project.
-
getSelectedBoard
-
getSelectedBoard
@Nonnull public io.atlassian.fugue.Option<RapidView> getSelectedBoard(@Nonnull Map<String, Object> context) Get currently selected board based on context and history- Parameters:
context
- key value pairs (generally params from the request)- Returns:
- the selected board if found
-
selectBoard
Deprecated. -
getFirstBoardForProject
-
getFirstBoardForProjectLoader
-
getSelectedBoard
-
asStreamSortedByName
public static Stream<RapidView> asStreamSortedByName(Collection<RapidView> rapidViews, Collator collator)
-