public class UserHistory extends Object implements Serializable
Contains all the information about a user's history:
maxHistoryLength
.
Adding information to history is synchronized
, so is accessing. The returned lists when accessing the
history are unmodifiable copies.
Constructor and Description |
---|
UserHistory(int historyLength) |
Modifier and Type | Method and 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) |
public void addContentEntity(ContentEntityObject content)
public void addLabel(Label label)
public int getMaxHistoryLength()
public void setMaxHistoryLength(int maxHistoryLength)
public List<Long> getContent()
If there are no pages, and empty list is returned.
Copyright © 2003–2016 Atlassian. All rights reserved.