public interface UserIssueHistoryManager
UserHistoryManager
that allows you to deal directly with Issue objectsModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ISSUE_HISTORY_DROPDOWN_ITEMS |
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.
|
static final int DEFAULT_ISSUE_HISTORY_DROPDOWN_ITEMS
void addIssueToHistory(ApplicationUser user, Issue issue)
Issue
to the user history list.
A null users history should still be stored, even if only for duration of sessionuser
- The user to add the history item toissue
- The issue to add to the history listboolean hasIssueHistory(ApplicationUser user)
user
- The user to check for.@Nonnull List<UserHistoryItem> getFullIssueHistoryWithoutPermissionChecks(ApplicationUser user)
user
- The user to get the history issue items for.@Nonnull List<UserHistoryItem> getFullIssueHistoryWithPermissionChecks(ApplicationUser user)
user
- The user to get the history issue items for.@Nonnull List<Issue> getShortIssueHistory(ApplicationUser user)
user
- The user to get the history issue items for.Copyright © 2002-2019 Atlassian. All Rights Reserved.