Package com.atlassian.jira.user
Class DefaultUserQueryHistoryManager
java.lang.Object
com.atlassian.jira.user.DefaultUserQueryHistoryManager
- All Implemented Interfaces:
UserQueryHistoryManager
Default implementation of
UserQueryHistoryManager- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultUserQueryHistoryManager(UserHistoryManager userHistoryManager, ApplicationProperties applicationProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryToHistory(ApplicationUser user, String query) Add a JQL query string to the user history list.Retrieve the user's query history queue.
-
Constructor Details
-
DefaultUserQueryHistoryManager
public DefaultUserQueryHistoryManager(UserHistoryManager userHistoryManager, ApplicationProperties applicationProperties)
-
-
Method Details
-
addQueryToHistory
Description copied from interface:UserQueryHistoryManagerAdd a JQL query string to the user history list.- Specified by:
addQueryToHistoryin interfaceUserQueryHistoryManager- Parameters:
user- The user to add the history item toquery- The JQL Query string to store in this history.
-
getUserQueryHistory
Description copied from interface:UserQueryHistoryManagerRetrieve the user's query history queue. The list is returned ordered by DESC lastViewed date (i.e. newest is first).- Specified by:
getUserQueryHistoryin interfaceUserQueryHistoryManager- Parameters:
user- The user to get the history query items for.- Returns:
- a list of history query items sort by desc lastViewed date.
-