Package com.atlassian.jira.user
Class DefaultUserAdminHistoryManager
java.lang.Object
com.atlassian.jira.user.DefaultUserAdminHistoryManager
- All Implemented Interfaces:
UserAdminHistoryManager
A convenience wrapper around the
UserHistoryManager
to work directly with admin pages
and perform permission checks. The key stored and used for admin pag eretrieval is the link id of the
WebItemModuleDescriptor- Since:
- v4.1
-
Field Summary
Fields inherited from interface com.atlassian.jira.user.UserAdminHistoryManager
DEFAULT_ADMIN_HISTORY_DROPDOWN_ITEMS
-
Constructor Summary
-
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.
-
Constructor Details
-
DefaultUserAdminHistoryManager
-
-
Method Details
-
addAdminPageToHistory
Description copied from interface:UserAdminHistoryManager
Add an admin page to the user history list. A null users history should still be stored, even if only for duration of session- Specified by:
addAdminPageToHistory
in interfaceUserAdminHistoryManager
- 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
Description copied from interface:UserAdminHistoryManager
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- Specified by:
getAdminPageHistoryWithoutPermissionChecks
in interfaceUserAdminHistoryManager
- 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.
-