com.atlassian.jira.user
Class DefaultUserQueryHistoryManager

java.lang.Object
  extended by com.atlassian.jira.user.DefaultUserQueryHistoryManager
All Implemented Interfaces:
UserQueryHistoryManager

public class DefaultUserQueryHistoryManager
extends Object
implements UserQueryHistoryManager

Default implementation of UserQueryHistoryManager

Since:
v4.0

Constructor Summary
DefaultUserQueryHistoryManager(UserHistoryManager userHistoryManager, ApplicationProperties applicationProperties)
           
 
Method Summary
 void addQueryToHistory(User user, String query)
          Add a JQL query string to the user history list.
 List<UserHistoryItem> getUserQueryHistory(User user)
          Retrieve the user's query history queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserQueryHistoryManager

public DefaultUserQueryHistoryManager(UserHistoryManager userHistoryManager,
                                      ApplicationProperties applicationProperties)
Method Detail

addQueryToHistory

public void addQueryToHistory(User user,
                              String query)
Description copied from interface: UserQueryHistoryManager
Add a JQL query string to the user history list.

Specified by:
addQueryToHistory in interface UserQueryHistoryManager
Parameters:
user - The user to add the history item to
query - The JQL Query string to store in this history.

getUserQueryHistory

public List<UserHistoryItem> getUserQueryHistory(User user)
Description copied from interface: UserQueryHistoryManager
Retrieve the user's query history queue. The list is returned ordered by DESC lastViewed date (i.e. newest is first).

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


Copyright © 2002-2009 Atlassian. All Rights Reserved.