com.atlassian.jira.user
Class DefaultUserIssueSearcherHistoryManager

java.lang.Object
  extended by com.atlassian.jira.user.DefaultUserIssueSearcherHistoryManager
All Implemented Interfaces:
UserIssueSearcherHistoryManager

public class DefaultUserIssueSearcherHistoryManager
extends Object
implements UserIssueSearcherHistoryManager

Default implementation of UserIssueSearcherHistoryManager

Since:
v6.0

Constructor Summary
DefaultUserIssueSearcherHistoryManager(UserHistoryManager userHistoryManager, ApplicationProperties applicationProperties)
           
 
Method Summary
 void addIssueSearcherToHistory(com.atlassian.crowd.embedded.api.User user, IssueSearcher searcher)
          Add a JQL query string to the user history list.
 List<UserHistoryItem> getUserIssueSearcherHistory(com.atlassian.crowd.embedded.api.User user)
          Retrieve the user's Issue Seacher history queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserIssueSearcherHistoryManager

public DefaultUserIssueSearcherHistoryManager(UserHistoryManager userHistoryManager,
                                              ApplicationProperties applicationProperties)
Method Detail

addIssueSearcherToHistory

public void addIssueSearcherToHistory(com.atlassian.crowd.embedded.api.User user,
                                      IssueSearcher searcher)
Description copied from interface: UserIssueSearcherHistoryManager
Add a JQL query string to the user history list.

Specified by:
addIssueSearcherToHistory in interface UserIssueSearcherHistoryManager
Parameters:
user - The user to add the history item to
searcher - The IssueSearcher used.

getUserIssueSearcherHistory

public List<UserHistoryItem> getUserIssueSearcherHistory(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserIssueSearcherHistoryManager
Retrieve the user's Issue Seacher history queue. The list is returned ordered by DESC lastViewed date (i.e. newest is first).

Specified by:
getUserIssueSearcherHistory in interface UserIssueSearcherHistoryManager
Parameters:
user - The user to get the history IssueSearcher items for.
Returns:
a list of history IssueSearcher items sort by desc lastViewed date.


Copyright © 2002-2014 Atlassian. All Rights Reserved.