com.atlassian.jira.user
Interface UserQueryHistoryManager

All Known Implementing Classes:
DefaultUserQueryHistoryManager

public interface UserQueryHistoryManager

A wrapper of the UserHistoryManager that allows you to store and retrieve history items UserHistoryItem of the type JQL_QUERY.

Since:
v4.0

Method Summary
 void addQueryToHistory(com.atlassian.crowd.embedded.api.User user, String query)
          Add a JQL query string to the user history list.
 List<UserHistoryItem> getUserQueryHistory(com.atlassian.crowd.embedded.api.User user)
          Retrieve the user's query history queue.
 

Method Detail

addQueryToHistory

void addQueryToHistory(com.atlassian.crowd.embedded.api.User user,
                       String query)
Add a JQL query string to the user history list.

Parameters:
user - The user to add the history item to
query - The JQL Query string to store in this history.

getUserQueryHistory

List<UserHistoryItem> getUserQueryHistory(com.atlassian.crowd.embedded.api.User user)
Retrieve the user's query history queue. The list is returned ordered by DESC lastViewed date (i.e. newest is first).

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.