|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.user.CachingUserHistoryStore
public class CachingUserHistoryStore
Caching implementation of UserHistoryStore.
This is very broken, but no more broken than any of the other caches.
| Constructor Summary | |
|---|---|
CachingUserHistoryStore(OfBizUserHistoryStore delegatingStore,
ApplicationProperties applicationProperties,
com.atlassian.event.api.EventPublisher eventPublisher)
|
|
| 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. |
static int |
getMaxItems(UserHistoryItem.Type type,
ApplicationProperties applicationProperties)
|
void |
onClearCache(ClearCacheEvent event)
|
Set<UserHistoryItem.Type> |
removeHistoryForUser(com.atlassian.crowd.embedded.api.User user)
Remove all history items for a given user. |
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingUserHistoryStore(@NotNull
OfBizUserHistoryStore delegatingStore,
@NotNull
ApplicationProperties applicationProperties,
com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
public void start()
throws Exception
Startable
start in interface StartableException - Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public void addHistoryItem(@NotNull
com.atlassian.crowd.embedded.api.User user,
@NotNull
UserHistoryItem historyItem)
UserHistoryStore
addHistoryItem in interface UserHistoryStoreuser - The user to store the history item againsthistoryItem - the item to store. Containing a timestamp and referenced entity
@NotNull
public List<UserHistoryItem> getHistory(@NotNull
UserHistoryItem.Type type,
@NotNull
com.atlassian.crowd.embedded.api.User 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(@NotNull
com.atlassian.crowd.embedded.api.User user)
UserHistoryStore
removeHistoryForUser in interface UserHistoryStoreuser - The user to remove all history of.
public static int getMaxItems(UserHistoryItem.Type type,
ApplicationProperties applicationProperties)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||