Class DefaultUserAdminHistoryManager

  extended by com.atlassian.jira.user.DefaultUserAdminHistoryManager
All Implemented Interfaces:

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


Field Summary
Fields inherited from interface com.atlassian.jira.user.UserAdminHistoryManager
Constructor Summary
DefaultUserAdminHistoryManager(UserHistoryManager userHistoryManager)
Method Summary
 void addAdminPageToHistory(com.atlassian.crowd.embedded.api.User user, String key, String data)
          Add an admin page to the user history list.
 List<UserHistoryItem> getAdminPageHistoryWithoutPermissionChecks(com.atlassian.crowd.embedded.api.User user)
          Retreive the user's admin page history queue.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DefaultUserAdminHistoryManager(UserHistoryManager userHistoryManager)
Method Detail


public void addAdminPageToHistory(com.atlassian.crowd.embedded.api.User 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
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)


public List<UserHistoryItem> getAdminPageHistoryWithoutPermissionChecks(com.atlassian.crowd.embedded.api.User 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
user - The user to get the history admin page items for.
a list of history admin page items sort by desc lastViewed date.

Copyright © 2002-2012 Atlassian. All Rights Reserved.