|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.user.OfBizUserHistoryStore
@ThreadSafe public class OfBizUserHistoryStore
OfBiz implementation of UserHistoryStore
| Constructor Summary | |
|---|---|
OfBizUserHistoryStore(OfBizDelegator delegator,
ApplicationProperties applicationProperties)
|
|
| Method Summary | |
|---|---|
void |
addHistoryItem(ApplicationUser user,
UserHistoryItem item)
Add a history item to the database. |
void |
addHistoryItemNoChecks(ApplicationUser user,
UserHistoryItem item)
Optimised method for adding a history item. |
void |
expireOldHistoryItems(ApplicationUser user,
UserHistoryItem.Type type,
Collection<String> entityIds)
Method for expiring old items. |
List<UserHistoryItem> |
getHistory(UserHistoryItem.Type type,
ApplicationUser user)
Retreive the history for a given user/type. |
List<UserHistoryItem> |
getHistory(UserHistoryItem.Type type,
String userKey)
Retreive the history for a given user/type. |
Set<UserHistoryItem.Type> |
removeHistoryForUser(ApplicationUser user)
Remove all history items for a given user. |
void |
updateHistoryItemNoChecks(ApplicationUser user,
UserHistoryItem item)
Optimised method for updating a record in the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OfBizUserHistoryStore(OfBizDelegator delegator,
ApplicationProperties applicationProperties)
| Method Detail |
|---|
public void addHistoryItem(@Nonnull
ApplicationUser user,
@Nonnull
UserHistoryItem item)
UserHistoryStore
addHistoryItem in interface UserHistoryStoreuser - The user to store the history item againstitem - the item to store. Containing a timestamp and referenced entity
public void addHistoryItemNoChecks(@Nonnull
ApplicationUser user,
@Nonnull
UserHistoryItem item)
user - The user to insert the record foritem - Teh item to insert into the db
public void updateHistoryItemNoChecks(@Nonnull
ApplicationUser user,
@Nonnull
UserHistoryItem item)
user - The user to update the record foritem - The item to update
public void expireOldHistoryItems(@Nonnull
ApplicationUser user,
@Nonnull
UserHistoryItem.Type type,
Collection<String> entityIds)
user - The user to remove entries fortype - The type of record to removeentityIds - Teh list of entity ids to remove.
@Nonnull
public List<UserHistoryItem> getHistory(@Nonnull
UserHistoryItem.Type type,
@Nonnull
String userKey)
UserHistoryStore
getHistory in interface UserHistoryStoretype - The type of entity to retreive history for.userKey - The key of the user to retreive history for.
@Nonnull
public List<UserHistoryItem> getHistory(@Nonnull
UserHistoryItem.Type type,
@Nonnull
ApplicationUser user)
UserHistoryStore
getHistory in interface UserHistoryStoretype - The type of entity to retreive history for.user - The user to retreive history for.
public Set<UserHistoryItem.Type> removeHistoryForUser(@Nonnull
ApplicationUser user)
UserHistoryStore
removeHistoryForUser in interface UserHistoryStoreuser - The user to remove all history of.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||