|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.user.DefaultUserHistoryManager
@ThreadSafe public class DefaultUserHistoryManager
Default implementation of the UserHistoryManager.
| Constructor Summary | |
|---|---|
DefaultUserHistoryManager(UserHistoryStore store)
|
|
| Method Summary | |
|---|---|
void |
addItemToHistory(UserHistoryItem.Type type,
ApplicationUser user,
String entityId)
Create and add an UserHistoryItem to the Users history list. |
void |
addItemToHistory(UserHistoryItem.Type type,
ApplicationUser user,
String entityId,
String data)
Create and add an UserHistoryItem to the Users history list. |
void |
addItemToHistory(UserHistoryItem.Type type,
com.atlassian.crowd.embedded.api.User user,
String entityId)
Create and add an UserHistoryItem to the Users history list. |
void |
addItemToHistory(UserHistoryItem.Type type,
com.atlassian.crowd.embedded.api.User user,
String entityId,
String data)
Create and add an UserHistoryItem to the Users history list. |
void |
addUserToHistory(UserHistoryItem.Type type,
ApplicationUser user,
ApplicationUser entity)
Create and add an UserHistoryItem to the Users history list. |
void |
addUserToHistory(UserHistoryItem.Type type,
com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.User entity)
Create and add an UserHistoryItem to the Users history list. |
List<UserHistoryItem> |
getHistory(UserHistoryItem.Type type,
ApplicationUser user)
Retreive the user's history queue for the given UserHistoryItem.Type. |
List<UserHistoryItem> |
getHistory(UserHistoryItem.Type type,
com.atlassian.crowd.embedded.api.User user)
Retreive the user's history queue for the given UserHistoryItem.Type. |
boolean |
hasHistory(UserHistoryItem.Type type,
ApplicationUser user)
Determines whether a user has any items in their history for a given UserHistoryItem.Type
This method performs no permission checks. |
boolean |
hasHistory(UserHistoryItem.Type type,
com.atlassian.crowd.embedded.api.User user)
Determines whether a user has any items in their history for a given UserHistoryItem.Type
This method performs no permission checks. |
void |
removeHistoryForUser(ApplicationUser user)
Remove the user's history. |
void |
removeHistoryForUser(com.atlassian.crowd.embedded.api.User user)
Remove the user's history. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUserHistoryManager(@Nonnull
UserHistoryStore store)
| Method Detail |
|---|
public void addUserToHistory(UserHistoryItem.Type type,
com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.User entity)
UserHistoryManagerUserHistoryItem to the Users history list.
A null users history should still be stored, even if only for duration of session.
addUserToHistory in interface UserHistoryManagertype - The type queue to add the history item touser - The user to add the history item toentity - The entity to add to the history queue.
public void addUserToHistory(UserHistoryItem.Type type,
ApplicationUser user,
ApplicationUser entity)
UserHistoryManagerUserHistoryItem to the Users history list.
A null users history should still be stored, even if only for duration of session.
addUserToHistory in interface UserHistoryManagertype - The type queue to add the history item touser - The user to add the history item toentity - The entity to add to the history queue.
public void addItemToHistory(@Nonnull
UserHistoryItem.Type type,
@Nonnull
com.atlassian.crowd.embedded.api.User user,
@Nonnull
String entityId)
UserHistoryManagerUserHistoryItem to the Users history list.
A null users history should still be stored, even if only for duration of session.
addItemToHistory in interface UserHistoryManagertype - The type queue to add the history item touser - The user to add the history item toentityId - The entity id of the entity to add to the history queue.
public void addItemToHistory(UserHistoryItem.Type type,
ApplicationUser user,
String entityId)
UserHistoryManagerUserHistoryItem to the Users history list.
A null users history should still be stored, even if only for duration of session.
addItemToHistory in interface UserHistoryManagertype - The type queue to add the history item touser - The user to add the history item toentityId - The entity id of the entity to add to the history queue.
public void addItemToHistory(@Nonnull
UserHistoryItem.Type type,
@Nullable
com.atlassian.crowd.embedded.api.User user,
@Nonnull
String entityId,
@Nullable
String data)
UserHistoryManagerUserHistoryItem to the Users history list.
Allows to store data related to the user history item.
addItemToHistory in interface UserHistoryManagertype - The type queue to add the history item touser - The user to add the history item toentityId - The entity id of the entity to add to the history queuedata - Data related to the history item. Can be null.
public void addItemToHistory(UserHistoryItem.Type type,
ApplicationUser user,
String entityId,
String data)
UserHistoryManagerUserHistoryItem to the Users history list.
Allows to store data related to the user history item.
addItemToHistory in interface UserHistoryManagertype - The type queue to add the history item touser - The user to add the history item toentityId - The entity id of the entity to add to the history queuedata - Data related to the history item. Can be null.
public boolean hasHistory(@Nonnull
UserHistoryItem.Type type,
@Nonnull
com.atlassian.crowd.embedded.api.User user)
UserHistoryManagerUserHistoryItem.Type
This method performs no permission checks.
hasHistory in interface UserHistoryManagertype - The type to check foruser - The user to check for.
public boolean hasHistory(UserHistoryItem.Type type,
ApplicationUser user)
UserHistoryManagerUserHistoryItem.Type
This method performs no permission checks.
hasHistory in interface UserHistoryManagertype - The type to check foruser - The user to check for.
@Nonnull
public List<UserHistoryItem> getHistory(@Nonnull
UserHistoryItem.Type type,
@Nullable
com.atlassian.crowd.embedded.api.User user)
UserHistoryManagerUserHistoryItem.Type.
The list is returned ordered by DESC lastViewed date (i.e. newest is first).
This method performs no permission checks.
getHistory in interface UserHistoryManagertype - The type of entity to get the history foruser - The user to get the history items for.
public List<UserHistoryItem> getHistory(UserHistoryItem.Type type,
ApplicationUser user)
UserHistoryManagerUserHistoryItem.Type.
The list is returned ordered by DESC lastViewed date (i.e. newest is first).
This method performs no permission checks.
getHistory in interface UserHistoryManagertype - The type of entity to get the history foruser - The user to get the history items for.
public void removeHistoryForUser(@Nonnull
com.atlassian.crowd.embedded.api.User user)
UserHistoryManager
removeHistoryForUser in interface UserHistoryManageruser - The User to remove the history for.
public void removeHistoryForUser(@Nonnull
ApplicationUser user)
UserHistoryManager
removeHistoryForUser in interface UserHistoryManageruser - The User to remove the history for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||