com.atlassian.jira.user
Class DefaultUserQueryHistoryManager
java.lang.Object
com.atlassian.jira.user.DefaultUserQueryHistoryManager
- All Implemented Interfaces:
- UserQueryHistoryManager
public class DefaultUserQueryHistoryManager
- extends Object
- implements UserQueryHistoryManager
Default implementation of UserQueryHistoryManager
- Since:
- v4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultUserQueryHistoryManager
public DefaultUserQueryHistoryManager(UserHistoryManager userHistoryManager,
ApplicationProperties applicationProperties)
addQueryToHistory
public void addQueryToHistory(com.atlassian.crowd.embedded.api.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 toquery
- The JQL Query string to store in this history.
getUserQueryHistory
public List<UserHistoryItem> getUserQueryHistory(com.atlassian.crowd.embedded.api.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-2014 Atlassian. All Rights Reserved.