public interface

UserAdminHistoryManager

com.atlassian.jira.user.UserAdminHistoryManager
Known Indirect Subclasses

Class Overview

A wrapper of the UserHistoryManager that allows you to deal directly with Admin pages

Summary

Constants
int DEFAULT_ADMIN_HISTORY_DROPDOWN_ITEMS
Public Methods
void addAdminPageToHistory(User user, String key, String data)
Add an admin page to the user history list.
@Nonnull List<UserHistoryItem> getAdminPageHistoryWithoutPermissionChecks(User user)
Retreive the user's admin page history queue.

Constants

public static final int DEFAULT_ADMIN_HISTORY_DROPDOWN_ITEMS

Constant Value: 5 (0x00000005)

Public Methods

public void addAdminPageToHistory (User user, String key, String data)

Add an admin page to the user history list. A null users history should still be stored, even if only for duration of session

Parameters
user The user to add the history item to
key The link id of the admin page to add to history
data The url of the link (for breaking ties between sections)

@Nonnull public List<UserHistoryItem> getAdminPageHistoryWithoutPermissionChecks (User user)

Retreive the user's admin page history queue. The list is returned ordered by DESC lastViewed date (i.e. newest is first). This method performs no permission checks. And is extremely fast. Admin pages don't have permissions per se, and depend on the WebItemModuleDescriptor rendering the page link to decide permissions

Parameters
user The user to get the history admin page items for.
Returns
  • a list of history admin page items sort by desc lastViewed date.