|
||||||||||
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.TrackingStatisticServiceImpl
@Service public class TrackingStatisticServiceImpl
Implementation of TrackingStatisticService
. Similar to EstimateStatisticServiceImpl
.
Field Summary | |
---|---|
static java.lang.String |
NONE_NAME_KEY
|
Fields inherited from interface com.atlassian.greenhopper.service.rapid.view.statistics.TrackingStatisticService |
---|
REMAINING_ESTIMATE_FIELD_ID |
Constructor Summary | |
---|---|
TrackingStatisticServiceImpl()
|
Method Summary | |
---|---|
java.util.List<StatisticsField> |
getAvailableTrackingStatistics()
Returns the list of StatisticsField s which represent the available StatisticsFieldConfig s. |
ServiceOutcome<StatisticsField> |
getInstanceOf(StatisticsFieldConfig config)
|
StatisticsField |
getInvalidTrackingStatistic(RapidView rapidView)
Returns a StatisticsField instance which represents an invalid StatisticsFieldConfig . |
StatisticsField |
getTrackingStatistic(RapidView rapidView)
Will always return a StatisticsField , which may or may not be valid. |
ServiceOutcome<StatisticsField> |
getTrackingStatisticStrict(RapidView rapidView)
Attempts to get the StatisticsField of a rapid view. |
boolean |
isRemainingEstimateStatisticsField(StatisticsField statisticsField)
Is the passed StatisticsField of type remaining estimate? |
boolean |
isTrackingStatisticFieldAndNotApplicable(StatisticsField trackingStatistic,
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 |
isTrackingStatisticFieldAndNotApplicable(StatisticsField trackingStatistic,
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 |
isTrackingStatisticValidAndEnabled(StatisticsField trackingStatistic)
Is the StatisticsField valid and enabled (i.e. |
ServiceOutcome<java.lang.Void> |
updateTrackingStatistic(com.atlassian.crowd.embedded.api.User user,
RapidView rapidView,
StatisticsFieldConfig trackingStatistic)
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 NONE_NAME_KEY
Constructor Detail |
---|
public TrackingStatisticServiceImpl()
Method Detail |
---|
public java.util.List<StatisticsField> getAvailableTrackingStatistics()
StatisticsField
s which represent the available StatisticsFieldConfig
s.
getAvailableTrackingStatistics
in interface TrackingStatisticService
getAvailableConfigs()
public ServiceOutcome<java.lang.Void> updateTrackingStatistic(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, StatisticsFieldConfig trackingStatistic)
TrackingStatisticService
updateTrackingStatistic
in interface TrackingStatisticService
user
- the userrapidView
- the rapid viewtrackingStatistic
- the new configuration
public ServiceOutcome<StatisticsField> getTrackingStatisticStrict(RapidView rapidView)
TrackingStatisticService
StatisticsField
of a rapid view. Outcome will contain errors if the configured
tracking statistic is invalid. You may wish to call TrackingStatisticService.getInvalidTrackingStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
in that case.
If you just want either the valid or invalid StatisticsField
to be returned, call TrackingStatisticService.getTrackingStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
.
getTrackingStatisticStrict
in interface TrackingStatisticService
rapidView
- the rapid view
TrackingStatisticService.getInvalidTrackingStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
,
TrackingStatisticService.getTrackingStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
public StatisticsField getTrackingStatistic(RapidView rapidView)
TrackingStatisticService
StatisticsField
, which may or may not be valid.
getTrackingStatistic
in interface TrackingStatisticService
rapidView
- the rapid view
public StatisticsField getInvalidTrackingStatistic(RapidView rapidView)
TrackingStatisticService
StatisticsField
instance which represents an invalid StatisticsFieldConfig
. This only
really makes sense to call if you have previously called TrackingStatisticService.getTrackingStatisticStrict(com.atlassian.greenhopper.model.rapid.RapidView)
and were returned errors.
getInvalidTrackingStatistic
in interface TrackingStatisticService
rapidView
- the rapid view
@NotNull public ServiceOutcome<StatisticsField> getInstanceOf(StatisticsFieldConfig config)
public boolean isTrackingStatisticFieldAndNotApplicable(StatisticsField trackingStatistic, com.atlassian.jira.issue.Issue issue)
TrackingStatisticService
StatisticsField
field based but not applicable for the given issue? (Due to Custom Field configuration
contexts, for example.)
isTrackingStatisticFieldAndNotApplicable
in interface TrackingStatisticService
trackingStatistic
- the tracking statisticissue
- the issue
TrackingStatisticService.isTrackingStatisticFieldAndNotApplicable(com.atlassian.greenhopper.model.rapid.StatisticsField, Long, String)
public boolean isTrackingStatisticFieldAndNotApplicable(StatisticsField trackingStatistic, java.lang.Long projectId, java.lang.String issueTypeId)
TrackingStatisticService
StatisticsField
field based but not applicable for the given project and issue type?
(Due to Custom Field configuration contexts, for example.)
isTrackingStatisticFieldAndNotApplicable
in interface TrackingStatisticService
trackingStatistic
- the tracking statisticprojectId
- the ID of the projectissueTypeId
- the ID of the issue type
TrackingStatisticService.isTrackingStatisticFieldAndNotApplicable(StatisticsField, Issue)
public boolean isTrackingStatisticValidAndEnabled(StatisticsField trackingStatistic)
TrackingStatisticService
StatisticsField
valid and enabled (i.e. should it take part in accumulating statistics over issues)?
isTrackingStatisticValidAndEnabled
in interface TrackingStatisticService
trackingStatistic
- the tracking statistic
StatisticsField.isValid()
,
StatisticsField.isEnabled()
public boolean isRemainingEstimateStatisticsField(StatisticsField statisticsField)
TrackingStatisticService
isRemainingEstimateStatisticsField
in interface TrackingStatisticService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |