com.atlassian.confluence.user.history
Class UserHistory
java.lang.Object
com.atlassian.confluence.user.history.UserHistory
- All Implemented Interfaces:
- java.io.Serializable
public class UserHistory
- extends java.lang.Object
- implements java.io.Serializable
Contains all the information about a user's history:
- The X most recent pages viewed
- The X most recently used labels
X being defined by maxHistoryLength
.
Adding information to history is synchronized
, so is accessing. The returned lists when accessing the
history are unmodifiable copies.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserHistory
public UserHistory(int historyLength)
addContentEntity
public void addContentEntity(ContentEntityObject content)
addLabel
public void addLabel(Label label)
getMaxHistoryLength
public int getMaxHistoryLength()
setMaxHistoryLength
public void setMaxHistoryLength(int maxHistoryLength)
getContent
public java.util.List<java.lang.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.
getLabels
public java.util.List<java.lang.Long> getLabels()
Copyright © 2003-2011 Atlassian. All Rights Reserved.