Class RapidViewHistoryServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.rapid.RapidViewHistoryServiceImpl
- All Implemented Interfaces:
RapidViewHistoryService
Implementation of RapidViewHistoryService
Users UserHistoryManager under the covers
- Since:
- 5.10.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Option
<RapidView> findMostRecentInProject
(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) Get the most recent rapid view for the projectgetAllRecentViews
(com.atlassian.jira.user.ApplicationUser user) Get the most recent rapid views, ordered by most recently visitedgetMostRecent
(com.atlassian.jira.user.ApplicationUser user) Get the most recent rapid viewio.atlassian.fugue.Option
<RapidView> getMostRecentRapidViewFromList
(com.atlassian.jira.user.ApplicationUser user, Collection<RapidView> candidateRapidViews) Returns the rapid view from the given list of rapid views which the user visited most recentlygetRecentViews
(com.atlassian.jira.user.ApplicationUser user, int count) Get the number of recent views for the specified uservoid
storeRapidView
(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Store a rapid view in the history
-
Field Details
-
log
-
-
Constructor Details
-
RapidViewHistoryServiceImpl
public RapidViewHistoryServiceImpl()
-
-
Method Details
-
storeRapidView
Description copied from interface:RapidViewHistoryService
Store a rapid view in the history- Specified by:
storeRapidView
in interfaceRapidViewHistoryService
- Parameters:
user
- the user to find; may be null
-
getAllRecentViews
Description copied from interface:RapidViewHistoryService
Get the most recent rapid views, ordered by most recently visited- Specified by:
getAllRecentViews
in interfaceRapidViewHistoryService
- Parameters:
user
- the user to find; may be null- Returns:
- a list of views
-
getRecentViews
Description copied from interface:RapidViewHistoryService
Get the number of recent views for the specified user- Specified by:
getRecentViews
in interfaceRapidViewHistoryService
- Parameters:
user
- the user to find; may be nullcount
- the number of recent views to return- Returns:
- a list of views
-
getMostRecentRapidViewFromList
public io.atlassian.fugue.Option<RapidView> getMostRecentRapidViewFromList(com.atlassian.jira.user.ApplicationUser user, Collection<RapidView> candidateRapidViews) Description copied from interface:RapidViewHistoryService
Returns the rapid view from the given list of rapid views which the user visited most recently- Specified by:
getMostRecentRapidViewFromList
in interfaceRapidViewHistoryService
- Parameters:
user
- the user to find; may be nullcandidateRapidViews
- Collection of rapid views to test- Returns:
- Option with the most recent rapid view from the list
-
getMostRecent
Description copied from interface:RapidViewHistoryService
Get the most recent rapid view- Specified by:
getMostRecent
in interfaceRapidViewHistoryService
- Parameters:
user
- the user to find; may be null- Returns:
- a view or null if none found
-
findMostRecentInProject
public io.atlassian.fugue.Option<RapidView> findMostRecentInProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) Description copied from interface:RapidViewHistoryService
Get the most recent rapid view for the project- Specified by:
findMostRecentInProject
in interfaceRapidViewHistoryService
- Parameters:
user
- the user to find; may be null- Returns:
- optional rapid view
-