|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserHistoryStore
Store interface for UserHistoryItem objects.
| Method Summary | |
|---|---|
void |
addHistoryItem(User user,
UserHistoryItem historyItem)
Add a history item to the database. |
List<UserHistoryItem> |
getHistory(UserHistoryItem.Type type,
User user)
Retreive the history for a given user/type. |
Set<UserHistoryItem.Type> |
removeHistoryForUser(User user)
Remove all history items for a given user. |
| Method Detail |
|---|
void addHistoryItem(@Nullable
User user,
@NotNull
UserHistoryItem historyItem)
user - The user to store the history item againsthistoryItem - the item to store. Containing a timestamp and referenced entity
@NotNull
List<UserHistoryItem> getHistory(@NotNull
UserHistoryItem.Type type,
@NotNull
User user)
type - The type of entity to retreive history for.user - The user to retreive history for.
Set<UserHistoryItem.Type> removeHistoryForUser(@NotNull
User user)
user - The user to remove all history of.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||