Class DefaultUserAdminHistoryManager

java.lang.Object
com.atlassian.jira.user.DefaultUserAdminHistoryManager
All Implemented Interfaces:
UserAdminHistoryManager

public class DefaultUserAdminHistoryManager extends Object implements 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
  • Constructor Details

    • DefaultUserAdminHistoryManager

      public DefaultUserAdminHistoryManager(UserHistoryManager userHistoryManager)
  • Method Details

    • addAdminPageToHistory

      public void addAdminPageToHistory(ApplicationUser user, String key, String data)
      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 interface UserAdminHistoryManager
      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)
    • getAdminPageHistoryWithoutPermissionChecks

      public List<UserHistoryItem> getAdminPageHistoryWithoutPermissionChecks(ApplicationUser user)
      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 interface UserAdminHistoryManager
      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.