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
static int DEFAULT_ADMIN_HISTORY_DROPDOWN_ITEMS
           
 
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.
 

Field Detail

DEFAULT_ADMIN_HISTORY_DROPDOWN_ITEMS

static final int DEFAULT_ADMIN_HISTORY_DROPDOWN_ITEMS
See Also:
Constant Field Values
Method Detail

addAdminPageToHistory

void addAdminPageToHistory(com.atlassian.crowd.embedded.api.User user,
                           String key,
                           String data)
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 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

@Nonnull
List<UserHistoryItem> getAdminPageHistoryWithoutPermissionChecks(com.atlassian.crowd.embedded.api.User user)
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.


Copyright © 2002-2014 Atlassian. All Rights Reserved.