com.atlassian.confluence.user.history
Class UserHistory

java.lang.Object
  extended by 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:

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

Constructor Summary
UserHistory(int historyLength)
           
 
Method Summary
 void addContentEntity(ContentEntityObject content)
           
 void addLabel(Label label)
           
 java.util.List getContent()
          All the pages, sorted with Most Frequently Used returned at the start of the list.
 java.util.List getLabels()
           
 int getMaxHistoryLength()
           
 void setMaxHistoryLength(int maxHistoryLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserHistory

public UserHistory(int historyLength)
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 java.util.List 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 getLabels()


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.