Package com.atlassian.jira.user
Interface UserAdminHistoryManager
- All Known Implementing Classes:
DefaultUserAdminHistoryManager
public interface UserAdminHistoryManager
A wrapper of the
UserHistoryManager
that allows you to deal directly with Admin
pages- Since:
- v4.1
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdminPageToHistory
(ApplicationUser user, String key, String data) Add an admin page to the user history list.Retreive the user's admin page history queue.
-
Field Details
-
DEFAULT_ADMIN_HISTORY_DROPDOWN_ITEMS
static final int DEFAULT_ADMIN_HISTORY_DROPDOWN_ITEMS- See Also:
-
-
Method Details
-
addAdminPageToHistory
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 tokey
- The link id of the admin page to add to historydata
- The url of the link (for breaking ties between sections)
-
getAdminPageHistoryWithoutPermissionChecks
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.
-