Class UserHistory
- java.lang.Object
-
- com.atlassian.confluence.user.history.UserHistory
-
- All Implemented Interfaces:
Serializable
public class UserHistory extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserHistory(int historyLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContentEntity(ContentEntityObject content)
void
addLabel(Label label)
List<Long>
getContent()
All the pages, sorted with Most Frequently Used returned at the start of the list.List<Long>
getLabels()
int
getMaxHistoryLength()
void
setMaxHistoryLength(int maxHistoryLength)
-
-
-
Method Detail
-
addContentEntity
public void addContentEntity(ContentEntityObject content)
-
addLabel
public void addLabel(Label label)
-
getMaxHistoryLength
public int getMaxHistoryLength()
-
setMaxHistoryLength
public void setMaxHistoryLength(int maxHistoryLength)
-
getContent
public List<Long> 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.
-
-