Class RapidViewHistoryServiceImpl

java.lang.Object
com.atlassian.greenhopper.service.rapid.RapidViewHistoryServiceImpl
All Implemented Interfaces:
RapidViewHistoryService

public class RapidViewHistoryServiceImpl extends Object implements RapidViewHistoryService
Implementation of RapidViewHistoryService

Users UserHistoryManager under the covers

Since:
5.10.3
  • Field Details

  • Constructor Details

    • RapidViewHistoryServiceImpl

      public RapidViewHistoryServiceImpl()
  • Method Details

    • storeRapidView

      public void storeRapidView(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView)
      Description copied from interface: RapidViewHistoryService
      Store a rapid view in the history
      Specified by:
      storeRapidView in interface RapidViewHistoryService
      Parameters:
      user - the user to find; may be null
    • getAllRecentViews

      public List<RapidView> getAllRecentViews(@Nullable com.atlassian.jira.user.ApplicationUser user)
      Description copied from interface: RapidViewHistoryService
      Get the most recent rapid views, ordered by most recently visited
      Specified by:
      getAllRecentViews in interface RapidViewHistoryService
      Parameters:
      user - the user to find; may be null
      Returns:
      a list of views
    • getRecentViews

      public List<RapidView> getRecentViews(com.atlassian.jira.user.ApplicationUser user, int count)
      Description copied from interface: RapidViewHistoryService
      Get the number of recent views for the specified user
      Specified by:
      getRecentViews in interface RapidViewHistoryService
      Parameters:
      user - the user to find; may be null
      count - 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 interface RapidViewHistoryService
      Parameters:
      user - the user to find; may be null
      candidateRapidViews - Collection of rapid views to test
      Returns:
      Option with the most recent rapid view from the list
    • getMostRecent

      public RapidView getMostRecent(com.atlassian.jira.user.ApplicationUser user)
      Description copied from interface: RapidViewHistoryService
      Get the most recent rapid view
      Specified by:
      getMostRecent in interface RapidViewHistoryService
      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 interface RapidViewHistoryService
      Parameters:
      user - the user to find; may be null
      Returns:
      optional rapid view