com.atlassian.jira.user.UserHistoryManager |
Known Indirect Subclasses |
The manager responsible for storing and retreiving UserHistoryItem
objects.
Although it is possible to store a reference to any UserHistoryItem.Type
it has
special methods for Issue history as that is the only use internal to JIRA.
Create and add an UserHistoryItem
to the Users history list.
A null users history should still be stored, even if only for duration of session.
type | The type queue to add the history item to |
---|---|
user | The user to add the history item to |
entityId | The entity id of the entity to add to the history queue. |
This method is deprecated.
Use addItemToHistory(com.atlassian.jira.user.UserHistoryItem.Type, ApplicationUser, String, String)
instead. Since v6.0.
Create and add an UserHistoryItem
to the Users history list.
Allows to store data related to the user history item.
type | The type queue to add the history item to |
---|---|
user | The user to add the history item to |
entityId | The entity id of the entity to add to the history queue |
data | Data related to the history item. Can be null. |
This method is deprecated.
Use addItemToHistory(com.atlassian.jira.user.UserHistoryItem.Type, ApplicationUser, String)
instead. Since v6.0.
Create and add an UserHistoryItem
to the Users history list.
A null users history should still be stored, even if only for duration of session.
type | The type queue to add the history item to |
---|---|
user | The user to add the history item to |
entityId | The entity id of the entity to add to the history queue. |
Create and add an UserHistoryItem
to the Users history list.
Allows to store data related to the user history item.
type | The type queue to add the history item to |
---|---|
user | The user to add the history item to |
entityId | The entity id of the entity to add to the history queue |
data | Data related to the history item. Can be null. |
This method is deprecated.
Use addItemToHistory(com.atlassian.jira.user.UserHistoryItem.Type, ApplicationUser, String)
instead. Since v6.0.
Create and add an UserHistoryItem
to the Users history list.
A null users history should still be stored, even if only for duration of session.
type | The type queue to add the history item to |
---|---|
user | The user to add the history item to |
entity | The entity to add to the history queue. |
Create and add an UserHistoryItem
to the Users history list.
A null users history should still be stored, even if only for duration of session.
type | The type queue to add the history item to |
---|---|
user | The user to add the history item to |
entity | The entity to add to the history queue. |
Retreive the user's history queue for the given UserHistoryItem.Type
.
The list is returned ordered by DESC lastViewed date (i.e. newest is first).
This method performs no permission checks.
type | The type of entity to get the history for |
---|---|
user | The user to get the history items for. |
This method is deprecated.
Use getHistory(com.atlassian.jira.user.UserHistoryItem.Type, ApplicationUser)
instead. Since v6.0.
Retreive the user's history queue for the given UserHistoryItem.Type
.
The list is returned ordered by DESC lastViewed date (i.e. newest is first).
This method performs no permission checks.
type | The type of entity to get the history for |
---|---|
user | The user to get the history items for. |
Determines whether a user has any items in their history for a given UserHistoryItem.Type
This method performs no permission checks.
type | The type to check for |
---|---|
user | The user to check for. |
This method is deprecated.
Use hasHistory(com.atlassian.jira.user.UserHistoryItem.Type, ApplicationUser)
instead. Since v6.0.
Determines whether a user has any items in their history for a given UserHistoryItem.Type
This method performs no permission checks.
type | The type to check for |
---|---|
user | The user to check for. |
Remove the user's history.
user | The User to remove the history for. |
---|
This method is deprecated.
Use removeHistoryForUser(ApplicationUser)
instead. Since v6.0.
Remove the user's history.
user | The User to remove the history for. |
---|