Class EstimableIssueDataServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.issue.EstimableIssueDataServiceImpl
- All Implemented Interfaces:
EstimableIssueDataService
@Service
public class EstimableIssueDataServiceImpl
extends Object
implements EstimableIssueDataService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEstimableIssueDataServiceImpl
(com.atlassian.jira.search.issue.IssueDocumentSearchService issueDocumentSearchService, EstimateStatisticService estimateStatisticService) -
Method Summary
Modifier and TypeMethodDescriptionfindEstimableIssueKeys
(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query, StatisticsField statisticsField, Set<String> maybeIssueKeys) boolean
isIssueEstimable
(com.atlassian.jira.search.Document doc, StatisticsField statisticsField, Set<String> maybeIssueKeys)
-
Field Details
-
FIELDS
-
-
Constructor Details
-
EstimableIssueDataServiceImpl
public EstimableIssueDataServiceImpl() -
EstimableIssueDataServiceImpl
public EstimableIssueDataServiceImpl(com.atlassian.jira.search.issue.IssueDocumentSearchService issueDocumentSearchService, EstimateStatisticService estimateStatisticService)
-
-
Method Details
-
findEstimableIssueKeys
public ServiceOutcome<Set<String>> findEstimableIssueKeys(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull com.atlassian.query.Query query, @Nonnull StatisticsField statisticsField, @Nullable Set<String> maybeIssueKeys) - Specified by:
findEstimableIssueKeys
in interfaceEstimableIssueDataService
- Parameters:
user
- the user performing the search actionquery
- a query to filter the data bystatisticsField
- represents an instance of aStatisticsFieldConfig
for aRapidView
for example "timeoriginalestimate".maybeIssueKeys
- the issue keys that should be taken into account, if null it means to use all- Returns:
- if ServiceOutcome is valid, then it contains the issue keys of issues that are estimable, the error messages otherwise
-
isIssueEstimable
public boolean isIssueEstimable(@Nonnull com.atlassian.jira.search.Document doc, @Nonnull StatisticsField statisticsField, @Nullable Set<String> maybeIssueKeys) - Specified by:
isIssueEstimable
in interfaceEstimableIssueDataService
- Parameters:
doc
- document to search throughstatisticsField
- represents an instance of aStatisticsFieldConfig
for aRapidView
for example "timeoriginalestimate".maybeIssueKeys
- the issue keys that should be taken into account, if null it means to use all- Returns:
- true if the issue is estimable, false otherwise
-