Class RecentSprintHistoryServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.rapid.RecentSprintHistoryServiceImpl
- All Implemented Interfaces:
RecentSprintHistoryService
@Service
public class RecentSprintHistoryServiceImpl
extends Object
implements RecentSprintHistoryService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRecentSprints
(com.atlassian.jira.user.ApplicationUser user, int count) Get the recent sprints for the specified usergetRecentSprintsMatchingPredicate
(com.atlassian.jira.user.ApplicationUser user, com.google.common.base.Predicate<Sprint> predicate, int count) Get a list of recent sprints matching a specified predicate and uservoid
storeSprint
(com.atlassian.jira.user.ApplicationUser user, Sprint sprint) Store a sprint in the history
-
Constructor Details
-
RecentSprintHistoryServiceImpl
public RecentSprintHistoryServiceImpl()
-
-
Method Details
-
storeSprint
Description copied from interface:RecentSprintHistoryService
Store a sprint in the history- Specified by:
storeSprint
in interfaceRecentSprintHistoryService
- Parameters:
user
- the user to find; may be null
-
getRecentSprints
@Nonnull public List<Sprint> getRecentSprints(@Nullable com.atlassian.jira.user.ApplicationUser user, int count) Description copied from interface:RecentSprintHistoryService
Get the recent sprints for the specified user- Specified by:
getRecentSprints
in interfaceRecentSprintHistoryService
- Parameters:
user
- the user to find; may be nullcount
- the max number of recent sprints to return- Returns:
- a list of sprints
-
getRecentSprintsMatchingPredicate
@Nonnull public List<Sprint> getRecentSprintsMatchingPredicate(@Nullable com.atlassian.jira.user.ApplicationUser user, com.google.common.base.Predicate<Sprint> predicate, int count) Description copied from interface:RecentSprintHistoryService
Get a list of recent sprints matching a specified predicate and user- Specified by:
getRecentSprintsMatchingPredicate
in interfaceRecentSprintHistoryService
- Parameters:
user
- the user to findpredicate
- the predicate to matchcount
- the max number of sprints to return, count < 1 will resolve all recent sprints- Returns:
- a list of sprints
-