com.atlassian.jira.user
Class DefaultUserAdminHistoryManager
java.lang.Object
com.atlassian.jira.user.DefaultUserAdminHistoryManager
- All Implemented Interfaces:
- UserAdminHistoryManager
public class DefaultUserAdminHistoryManager
- extends java.lang.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultUserAdminHistoryManager
public DefaultUserAdminHistoryManager(UserHistoryManager userHistoryManager)
addAdminPageToHistory
public void addAdminPageToHistory(com.opensymphony.user.User user,
java.lang.String key,
java.lang.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 tokey
- The link id of the admin page to add to historydata
- The url of the link (for breaking ties between sections)
getAdminPageHistoryWithoutPermissionChecks
public java.util.List<UserHistoryItem> getAdminPageHistoryWithoutPermissionChecks(com.opensymphony.user.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
- 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.
Copyright © 2002-2010 Atlassian. All Rights Reserved.