Class RapidViewQueryServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.rapid.RapidViewQueryServiceImpl
- All Implemented Interfaces:
RapidViewQueryService
Implementation of RapidViewQueryService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionServiceOutcome<com.atlassian.query.Query>getActiveSprintsForPlanModeQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Query used to find issues and active sprints for display in Plan mode.ServiceOutcome<com.atlassian.query.Query>getBacklogQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Query used to find issues on the Plan mode without the subtasks This query consists of the saved filter, the mapped statuses, the plan mode query.ServiceOutcome<com.atlassian.query.Query>getBacklogQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, boolean withSubtasks) Query used to find issues on the Plan mode.ServiceOutcome<com.atlassian.query.Query>getEpicQuery(com.atlassian.jira.user.ApplicationUser user, Epic epic) ServiceOutcome<com.atlassian.query.Query>getEpicQueryInBoardContext(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Epic epic) ServiceOutcome<com.atlassian.query.Query>getFullRapidViewQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) ServiceOutcome<com.atlassian.query.Query>getIssuesWithoutEpicQuery(com.atlassian.jira.user.ApplicationUser user) ServiceOutcome<com.atlassian.query.Query>getIssuesWithoutEpicQueryInBoardContext(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) getKanbanBacklogFilterClause(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) getKanbanDoneColumnFilterClause(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) ServiceOutcome<com.atlassian.query.Query>getMappedRapidViewQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Get the base rapid view query plus the statuses which are mapped.ServiceOutcome<com.atlassian.query.Query>getOpenSprintQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Long sprintId) Query used to find an open sprint for a given rapid board.ServiceOutcome<io.atlassian.fugue.Pair<List<Sprint>,Set<Long>>> getOpenSprintsAndBacklogProjects(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Get the list of open sprints for a given rapid viewServiceOutcome<com.atlassian.query.Query>getOpenSprintsQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Query used to find open sprints for a given rapid board.ServiceOutcome<com.atlassian.query.Query>getPlanModeIssuesQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Finds all issues for the plan mode.getQuickFilterClause(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Set<Long> activeQuickFilterIds) Get the Quick Filter clause from a set of active quick filter idsServiceOutcome<com.atlassian.query.Query>getRapidViewBacklogQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) ServiceOutcome<com.atlassian.query.Query>getRapidViewQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Get the base rapid view query.ServiceOutcome<com.atlassian.query.Query>getScrumBoardQueryForVisibleIssues(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Attempts to build the query which will help determine if issues are viewable in the interface of a scrum board.getSprintFilterClause(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Set<Long> activeSprintIds) Get the Sprints clause from a set of active sprint idsServiceOutcome<com.atlassian.query.Query>getSprintQuery(com.atlassian.jira.user.ApplicationUser user, Sprint sprint) ServiceOutcome<com.atlassian.query.Query>getSprintQueryInBoardContext(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Sprint sprint) ServiceOutcome<com.atlassian.query.clause.Clause>getStatusMappingClause(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Get the status mapping clause for a given RapidViewServiceOutcome<com.atlassian.query.Query>getWorkModeQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Get the query for the work mode.ServiceOutcome<com.atlassian.query.Query>getWorkModeQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Column column) Get the query for the work mode and a given column.com.atlassian.query.QueryjoinQueries(com.atlassian.query.Query queryA, com.atlassian.query.Query queryB) Joins two queries.
-
Field Details
-
log
-
-
Constructor Details
-
RapidViewQueryServiceImpl
public RapidViewQueryServiceImpl()
-
-
Method Details
-
getRapidViewQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getRapidViewQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Description copied from interface:RapidViewQueryServiceGet the base rapid view query. This currently only includes the saved filter- Specified by:
getRapidViewQueryin interfaceRapidViewQueryService
-
getStatusMappingClause
@Nonnull public ServiceOutcome<com.atlassian.query.clause.Clause> getStatusMappingClause(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Description copied from interface:RapidViewQueryServiceGet the status mapping clause for a given RapidView- Specified by:
getStatusMappingClausein interfaceRapidViewQueryService
-
getMappedRapidViewQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getMappedRapidViewQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Description copied from interface:RapidViewQueryServiceGet the base rapid view query plus the statuses which are mapped.- Specified by:
getMappedRapidViewQueryin interfaceRapidViewQueryService
-
getWorkModeQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getWorkModeQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Description copied from interface:RapidViewQueryServiceGet the query for the work mode. This query will contain the savedFilter, the work mode subquery and the set of mapped statuses- Specified by:
getWorkModeQueryin interfaceRapidViewQueryService
-
getWorkModeQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getWorkModeQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Column column) Description copied from interface:RapidViewQueryServiceGet the query for the work mode and a given column. This query will contain the savedFilter, the work mode subquery and the set of mapped statuses of the given column- Specified by:
getWorkModeQueryin interfaceRapidViewQueryService
-
getBacklogQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getBacklogQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Description copied from interface:RapidViewQueryServiceQuery used to find issues on the Plan mode without the subtasks This query consists of the saved filter, the mapped statuses, the plan mode query. The epics are filtered out.- Specified by:
getBacklogQueryin interfaceRapidViewQueryService
-
getBacklogQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getBacklogQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, boolean withSubtasks) Description copied from interface:RapidViewQueryServiceQuery used to find issues on the Plan mode. This query consists of the saved filter, the mapped statuses, the plan mode query. The epics are filtered out.- Specified by:
getBacklogQueryin interfaceRapidViewQueryService
-
getActiveSprintsForPlanModeQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getActiveSprintsForPlanModeQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Description copied from interface:RapidViewQueryServiceQuery used to find issues and active sprints for display in Plan mode. This query consists of the saved filter, the mapped statuses, the plan mode active sprints query- Specified by:
getActiveSprintsForPlanModeQueryin interfaceRapidViewQueryService
-
getPlanModeIssuesQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getPlanModeIssuesQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Description copied from interface:RapidViewQueryServiceFinds all issues for the plan mode. All issues in active sprints and not done issues otherwise. Excludes epics. This query consists of the saved filter, the mapped statuses all issues not done or in an active sprint- Specified by:
getPlanModeIssuesQueryin interfaceRapidViewQueryService
-
getOpenSprintsQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getOpenSprintsQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Description copied from interface:RapidViewQueryServiceQuery used to find open sprints for a given rapid board. The query consists of the saved filter, the mapped statuses and the open sprints clause- Specified by:
getOpenSprintsQueryin interfaceRapidViewQueryService
-
getOpenSprintQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getOpenSprintQuery(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Long sprintId) Description copied from interface:RapidViewQueryServiceQuery used to find an open sprint for a given rapid board. The query consists of the saved filter, the mapped statuses and a clause to check if the given sprintId is an open sprint- Specified by:
getOpenSprintQueryin interfaceRapidViewQueryService
-
getOpenSprintsAndBacklogProjects
@Nonnull public ServiceOutcome<io.atlassian.fugue.Pair<List<Sprint>,Set<Long>>> getOpenSprintsAndBacklogProjects(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Description copied from interface:RapidViewQueryServiceGet the list of open sprints for a given rapid view- Specified by:
getOpenSprintsAndBacklogProjectsin interfaceRapidViewQueryService
-
getQuickFilterClause
@Nonnull public ServiceOutcome<ClauseToAdd> getQuickFilterClause(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Set<Long> activeQuickFilterIds) Description copied from interface:RapidViewQueryServiceGet the Quick Filter clause from a set of active quick filter ids- Specified by:
getQuickFilterClausein interfaceRapidViewQueryService
-
getSprintFilterClause
@Nonnull public ServiceOutcome<ClauseToAdd> getSprintFilterClause(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Set<Long> activeSprintIds) Description copied from interface:RapidViewQueryServiceGet the Sprints clause from a set of active sprint ids- Specified by:
getSprintFilterClausein interfaceRapidViewQueryService
-
getScrumBoardQueryForVisibleIssues
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getScrumBoardQueryForVisibleIssues(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Description copied from interface:RapidViewQueryServiceAttempts to build the query which will help determine if issues are viewable in the interface of a scrum board.- Specified by:
getScrumBoardQueryForVisibleIssuesin interfaceRapidViewQueryService- Parameters:
user- the userrapidView- the rapid view- Returns:
- the query
-
getFullRapidViewQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getFullRapidViewQuery(@Nullable com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) - Specified by:
getFullRapidViewQueryin interfaceRapidViewQueryService- Returns:
- the full query for rapid view which consist of query from from rapid view filter, status mapping clause. In case of Scrum board query filters epics.
-
getRapidViewBacklogQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getRapidViewBacklogQuery(@Nullable com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) - Specified by:
getRapidViewBacklogQueryin interfaceRapidViewQueryService- Returns:
- the query for issues in rapid view's backlog which means all undone issues that are not assigned to any future or active sprint.
-
getSprintQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getSprintQuery(@Nullable com.atlassian.jira.user.ApplicationUser user, Sprint sprint) - Specified by:
getSprintQueryin interfaceRapidViewQueryService- Returns:
- the query for issues in sprint but in the context of given board.
-
getSprintQueryInBoardContext
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getSprintQueryInBoardContext(@Nullable com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Sprint sprint) - Specified by:
getSprintQueryInBoardContextin interfaceRapidViewQueryService- Returns:
- the query for issues in sprint but in the context of given board.
-
getEpicQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getEpicQuery(@Nullable com.atlassian.jira.user.ApplicationUser user, Epic epic) - Specified by:
getEpicQueryin interfaceRapidViewQueryService- Returns:
- the query for issues in epic but in the context of given board.
-
getEpicQueryInBoardContext
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getEpicQueryInBoardContext(@Nullable com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Epic epic) - Specified by:
getEpicQueryInBoardContextin interfaceRapidViewQueryService- Returns:
- the query for issues in epic but in the context of given board.
-
getIssuesWithoutEpicQuery
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getIssuesWithoutEpicQuery(@Nullable com.atlassian.jira.user.ApplicationUser user) - Specified by:
getIssuesWithoutEpicQueryin interfaceRapidViewQueryService- Returns:
- the query for issues that are not assigned to any epic.
-
getIssuesWithoutEpicQueryInBoardContext
@Nonnull public ServiceOutcome<com.atlassian.query.Query> getIssuesWithoutEpicQueryInBoardContext(@Nullable com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) - Specified by:
getIssuesWithoutEpicQueryInBoardContextin interfaceRapidViewQueryService- Returns:
- the query for issues that are not assigned to any epic.
-
joinQueries
@Nonnull public com.atlassian.query.Query joinQueries(com.atlassian.query.Query queryA, @Nullable com.atlassian.query.Query queryB) Description copied from interface:RapidViewQueryServiceJoins two queries. Ordering of the second query has higher priority.- Specified by:
joinQueriesin interfaceRapidViewQueryService
-
getKanbanBacklogFilterClause
@Nonnull public ServiceOutcome<ClauseToAdd> getKanbanBacklogFilterClause(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) - Specified by:
getKanbanBacklogFilterClausein interfaceRapidViewQueryService- Returns:
- the clause for filtering out issues that have status mapped in
KanbanBacklogColumn
-
getKanbanDoneColumnFilterClause
@Nonnull public ServiceOutcome<ClauseToAdd> getKanbanDoneColumnFilterClause(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) - Specified by:
getKanbanDoneColumnFilterClausein interfaceRapidViewQueryService
-