Class UserHistory
java.lang.Object
com.atlassian.confluence.user.history.UserHistory
- All Implemented Interfaces:
Serializable
Contains all the information about a user's history:
- The X most recent pages viewed
- The X most recently used labels
maxHistoryLength
.
Adding information to history is synchronized
, so is accessing. The returned lists when accessing the
history are unmodifiable copies.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContentEntity
(ContentEntityObject content) void
All the pages, sorted with Most Frequently Used returned at the start of the list.int
void
setMaxHistoryLength
(int maxHistoryLength)
-
Constructor Details
-
UserHistory
public UserHistory(int historyLength)
-
-
Method Details
-
addContentEntity
-
addLabel
-
getMaxHistoryLength
public int getMaxHistoryLength() -
setMaxHistoryLength
public void setMaxHistoryLength(int maxHistoryLength) -
getContent
All the pages, sorted with Most Frequently Used returned at the start of the list.If there are no pages, and empty list is returned.
-
getLabels
-