public class DefaultUserIssueHistoryManager extends Object implements UserIssueHistoryManager
UserHistoryManager
to work directly with issues and
perform permission checksDEFAULT_ISSUE_HISTORY_DROPDOWN_ITEMS
Constructor and Description |
---|
DefaultUserIssueHistoryManager(UserHistoryManager userHistoryManager,
PermissionManager permissionManager,
IssueManager issueManager,
ApplicationProperties applicationProperties) |
Modifier and Type | Method and Description |
---|---|
void |
addIssueToHistory(ApplicationUser user,
Issue issue)
Add an
Issue to the user history list. |
List<UserHistoryItem> |
getFullIssueHistoryWithoutPermissionChecks(ApplicationUser user)
Retrieve the user's issue history queue.
|
List<UserHistoryItem> |
getFullIssueHistoryWithPermissionChecks(ApplicationUser user)
Retrieve the user's issue history queue.
|
List<Issue> |
getShortIssueHistory(ApplicationUser user)
Retrieve the first X (jira.max.issue.history.dropdown.items) Issues from the user's issue history queue.
|
boolean |
hasIssueHistory(ApplicationUser user)
Determines whether the user has a current issue history.
|
public DefaultUserIssueHistoryManager(UserHistoryManager userHistoryManager, PermissionManager permissionManager, IssueManager issueManager, ApplicationProperties applicationProperties)
public void addIssueToHistory(@Nonnull ApplicationUser user, @Nonnull Issue issue)
UserIssueHistoryManager
Issue
to the user history list.
A null users history should still be stored, even if only for duration of sessionaddIssueToHistory
in interface UserIssueHistoryManager
user
- The user to add the history item toissue
- The issue to add to the history listpublic boolean hasIssueHistory(ApplicationUser user)
UserIssueHistoryManager
hasIssueHistory
in interface UserIssueHistoryManager
user
- The user to check for.@Nonnull public List<UserHistoryItem> getFullIssueHistoryWithoutPermissionChecks(ApplicationUser user)
UserIssueHistoryManager
getFullIssueHistoryWithoutPermissionChecks
in interface UserIssueHistoryManager
user
- The user to get the history issue items for.@Nonnull public List<UserHistoryItem> getFullIssueHistoryWithPermissionChecks(ApplicationUser user)
UserIssueHistoryManager
getFullIssueHistoryWithPermissionChecks
in interface UserIssueHistoryManager
user
- The user to get the history issue items for.@Nonnull public List<Issue> getShortIssueHistory(ApplicationUser user)
UserIssueHistoryManager
getShortIssueHistory
in interface UserIssueHistoryManager
user
- The user to get the history issue items for.Copyright © 2002-2017 Atlassian. All Rights Reserved.