com.atlassian.confluence.user.history
Class UserHistory

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

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)
           
 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)
           
 
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 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.


getLabels

public List<Long> getLabels()


Copyright © 2003-2011 Atlassian. All Rights Reserved.