|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.user.OfBizUserHistoryStore
@ThreadSafe public class OfBizUserHistoryStore
OfBiz implementation of UserHistoryStore
Constructor Summary | |
---|---|
OfBizUserHistoryStore(OfBizDelegator delegator,
ApplicationProperties applicationProperties)
|
Method Summary | |
---|---|
void |
addHistoryItem(com.atlassian.crowd.embedded.api.User user,
UserHistoryItem item)
Add a history item to the database. |
void |
addHistoryItemNoChecks(com.atlassian.crowd.embedded.api.User user,
UserHistoryItem item)
Optimised method for adding a history item. |
void |
expireOldHistoryItems(com.atlassian.crowd.embedded.api.User user,
UserHistoryItem.Type type,
Collection<String> entityIds)
Method for expiring old items. |
List<UserHistoryItem> |
getHistory(UserHistoryItem.Type type,
com.atlassian.crowd.embedded.api.User user)
Retreive the history for a given user/type. |
Set<UserHistoryItem.Type> |
removeHistoryForUser(com.atlassian.crowd.embedded.api.User user)
Remove all history items for a given user. |
void |
updateHistoryItemNoChecks(com.atlassian.crowd.embedded.api.User 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(@NotNull com.atlassian.crowd.embedded.api.User user, @NotNull UserHistoryItem item)
UserHistoryStore
addHistoryItem
in interface UserHistoryStore
user
- The user to store the history item againstitem
- the item to store. Containing a timestamp and referenced entitypublic void addHistoryItemNoChecks(@NotNull com.atlassian.crowd.embedded.api.User user, @NotNull UserHistoryItem item)
user
- The user to insert the record foritem
- Teh item to insert into the dbpublic void updateHistoryItemNoChecks(@NotNull com.atlassian.crowd.embedded.api.User user, @NotNull UserHistoryItem item)
user
- The user to update the record foritem
- The item to updatepublic void expireOldHistoryItems(@NotNull com.atlassian.crowd.embedded.api.User user, @NotNull 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.@NotNull public List<UserHistoryItem> getHistory(@NotNull UserHistoryItem.Type type, @NotNull com.atlassian.crowd.embedded.api.User user)
UserHistoryStore
getHistory
in interface UserHistoryStore
type
- The type of entity to retreive history for.user
- The user to retreive history for.
public Set<UserHistoryItem.Type> removeHistoryForUser(@NotNull com.atlassian.crowd.embedded.api.User user)
UserHistoryStore
removeHistoryForUser
in interface UserHistoryStore
user
- The user to remove all history of.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |