|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.service.rapid.view.statistics.EstimateStatisticServiceImpl
@Service public class EstimateStatisticServiceImpl
Implementation of EstimateStatisticService
. Similar to StatisticsFieldServiceImpl
.
Field Summary | |
---|---|
static java.lang.String |
ISSUE_COUNT_NAME_KEY
|
static java.lang.String |
NONE_NAME_KEY
|
Fields inherited from interface com.atlassian.greenhopper.service.rapid.view.statistics.EstimateStatisticService |
---|
ORIGINAL_ESTIMATE_FIELD_ID |
Constructor Summary | |
---|---|
EstimateStatisticServiceImpl()
|
Method Summary | |
---|---|
java.util.List<StatisticsField> |
getAvailableEstimateStatistics()
Returns the list of StatisticsField s which represent the available StatisticsFieldConfig s. |
StatisticsField |
getEstimateStatistic(RapidView rapidView)
Will always return a StatisticsField , which may or may not be valid. |
ServiceOutcome<StatisticsField> |
getEstimateStatisticStrict(RapidView rapidView)
Attempts to get the StatisticsField of a rapid view. |
ServiceOutcome<StatisticsField> |
getInstanceOf(StatisticsFieldConfig config)
|
StatisticsField |
getInvalidEstimateStatistic(RapidView rapidView)
Returns a StatisticsField instance which represents an invalid StatisticsFieldConfig . |
boolean |
isEstimateStatisticFieldAndNotApplicable(StatisticsField estimateStatistic,
com.atlassian.jira.issue.Issue issue)
Is the StatisticsField field based but not applicable for the given issue? (Due to Custom Field configuration
contexts, for example.) |
boolean |
isEstimateStatisticFieldAndNotApplicable(StatisticsField estimateStatistic,
java.lang.Long projectId,
java.lang.String issueTypeId)
Is the StatisticsField field based but not applicable for the given project and issue type?
(Due to Custom Field configuration contexts, for example.) |
boolean |
isEstimateStatisticValidAndEnabled(StatisticsField estimateStatistic)
Is the StatisticsField valid and enabled (i.e. |
ServiceOutcome<java.lang.Void> |
updateEstimateStatistic(com.atlassian.crowd.embedded.api.User user,
RapidView rapidView,
StatisticsFieldConfig estimateStatistic)
Updates the specified rapid view to a new configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ISSUE_COUNT_NAME_KEY
public static final java.lang.String NONE_NAME_KEY
Constructor Detail |
---|
public EstimateStatisticServiceImpl()
Method Detail |
---|
public java.util.List<StatisticsField> getAvailableEstimateStatistics()
StatisticsField
s which represent the available StatisticsFieldConfig
s.
getAvailableEstimateStatistics
in interface EstimateStatisticService
getAvailableConfigs()
public ServiceOutcome<java.lang.Void> updateEstimateStatistic(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, StatisticsFieldConfig estimateStatistic)
EstimateStatisticService
updateEstimateStatistic
in interface EstimateStatisticService
user
- the userrapidView
- the rapid viewestimateStatistic
- the new configuration
public ServiceOutcome<StatisticsField> getEstimateStatisticStrict(RapidView rapidView)
EstimateStatisticService
StatisticsField
of a rapid view. Outcome will contain errors if the configured
estimate statistic is invalid. You may wish to call EstimateStatisticService.getInvalidEstimateStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
in that case.
If you just want either the valid or invalid StatisticsField
to be returned, call EstimateStatisticService.getEstimateStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
.
getEstimateStatisticStrict
in interface EstimateStatisticService
rapidView
- the rapid view
EstimateStatisticService.getInvalidEstimateStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
,
EstimateStatisticService.getEstimateStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
public StatisticsField getEstimateStatistic(RapidView rapidView)
EstimateStatisticService
StatisticsField
, which may or may not be valid.
getEstimateStatistic
in interface EstimateStatisticService
rapidView
- the rapid view
public StatisticsField getInvalidEstimateStatistic(RapidView rapidView)
EstimateStatisticService
StatisticsField
instance which represents an invalid StatisticsFieldConfig
. This only
really makes sense to call if you have previously called EstimateStatisticService.getEstimateStatisticStrict(com.atlassian.greenhopper.model.rapid.RapidView)
and were returned errors.
getInvalidEstimateStatistic
in interface EstimateStatisticService
rapidView
- the rapid view
@NotNull public ServiceOutcome<StatisticsField> getInstanceOf(StatisticsFieldConfig config)
public boolean isEstimateStatisticFieldAndNotApplicable(StatisticsField estimateStatistic, com.atlassian.jira.issue.Issue issue)
EstimateStatisticService
StatisticsField
field based but not applicable for the given issue? (Due to Custom Field configuration
contexts, for example.)
isEstimateStatisticFieldAndNotApplicable
in interface EstimateStatisticService
estimateStatistic
- the estimate statisticissue
- the issue
EstimateStatisticService.isEstimateStatisticFieldAndNotApplicable(com.atlassian.greenhopper.model.rapid.StatisticsField, Long, String)
public boolean isEstimateStatisticFieldAndNotApplicable(StatisticsField estimateStatistic, java.lang.Long projectId, java.lang.String issueTypeId)
EstimateStatisticService
StatisticsField
field based but not applicable for the given project and issue type?
(Due to Custom Field configuration contexts, for example.)
isEstimateStatisticFieldAndNotApplicable
in interface EstimateStatisticService
estimateStatistic
- the estimate statisticprojectId
- the ID of the projectissueTypeId
- the ID of the issue type
EstimateStatisticService.isEstimateStatisticFieldAndNotApplicable(StatisticsField, Issue)
public boolean isEstimateStatisticValidAndEnabled(StatisticsField estimateStatistic)
EstimateStatisticService
StatisticsField
valid and enabled (i.e. should it take part in accumulating statistics over issues)?
isEstimateStatisticValidAndEnabled
in interface EstimateStatisticService
estimateStatistic
- the estimate statistic
StatisticsField.isValid()
,
StatisticsField.isEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |