|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.user.SessionBasedAnonymousUserHistoryStore
public class SessionBasedAnonymousUserHistoryStore
Session based caching implementation of UserHistoryStore
. Allows anonymous users to have history.
Constructor Summary | |
---|---|
SessionBasedAnonymousUserHistoryStore(UserHistoryStore delegatingStore,
ApplicationProperties applicationProperties,
VelocityRequestContextFactory velocityRequestContextFactory)
|
Method Summary | |
---|---|
void |
addHistoryItem(com.atlassian.crowd.embedded.api.User user,
UserHistoryItem historyItem)
Add a history item to the database. |
List<UserHistoryItem> |
getHistory(UserHistoryItem.Type type,
com.atlassian.crowd.embedded.api.User user)
Retreive the history for a given user/type. |
VelocityRequestSession |
getSession()
|
Set<UserHistoryItem.Type> |
removeHistoryForUser(com.atlassian.crowd.embedded.api.User user)
Remove all history items for a given user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionBasedAnonymousUserHistoryStore(UserHistoryStore delegatingStore, ApplicationProperties applicationProperties, VelocityRequestContextFactory velocityRequestContextFactory)
Method Detail |
---|
public VelocityRequestSession getSession()
public void addHistoryItem(@NotNull com.atlassian.crowd.embedded.api.User user, @NotNull UserHistoryItem historyItem)
UserHistoryStore
addHistoryItem
in interface UserHistoryStore
user
- The user to store the history item againsthistoryItem
- the item to store. Containing a timestamp and referenced entity@NotNull public List<UserHistoryItem> getHistory(UserHistoryItem.Type type, 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 |