java.lang.Object | |
↳ | com.atlassian.jira.user.OfBizUserHistoryStore |
OfBiz implementation of UserHistoryStore
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a history item to the database.
| |||||||||||
Optimised method for adding a history item.
| |||||||||||
Method for expiring old items.
| |||||||||||
Retreive the history for a given user/type.
| |||||||||||
Remove all history items for a given user.
| |||||||||||
Optimised method for updating a record in the database.
|
[Expand]
Inherited Methods | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object | |||||||||||||||||
From interface
com.atlassian.jira.user.UserHistoryStore
|
Add a history item to the database. This removes the currently refered to entity (user, type, id) from the list and then adds it. If adding it causes the history items stored for that user/type to exceed the max (jira.max.history.items) items allowed, it should remove the oldest items.
user | The user to store the history item against |
---|---|
item | the item to store. Containing a timestamp and referenced entity |
Optimised method for adding a history item. This will throw a duplicate row exception from the db if you try and insert a history item that already exists. Should only call if we are sure it doesn't exist.
This does not expire old items or try and update existing items. It is dumb.user | The user to insert the record for |
---|---|
item | Teh item to insert into the db |
Method for expiring old items. You can actually delete any items but it is typically used to delete old records.
user | The user to remove entries for |
---|---|
type | The type of record to remove |
entityIds | Teh list of entity ids to remove. |
Retreive the history for a given user/type.
type | The type of entity to retreive history for. |
---|---|
user | The user to retreive history for. |
Remove all history items for a given user.
user | The user to remove all history of. |
---|
Optimised method for updating a record in the database. If the record doesn't exist it will create it, otherwise just update it.
This does not expire old items or try and update existing items. It is dumb.user | The user to update the record for |
---|---|
item | The item to update |