com.atlassian.jira.user
Class UserHistory

java.lang.Object
  extended bycom.atlassian.jira.user.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. Currently contains the information about the most X recent issues viewed.

See Also:
Serialized Form

Nested Class Summary
 class UserHistory.IssueSummary
          Inner class to contain information to be stored about each issue.
 
Constructor Summary
UserHistory(int historyLength)
           
 
Method Summary
 void addIssue(java.lang.String issueKey, java.lang.String summary)
           
 java.util.Collection getIssues()
          All the issues, sorted with Most Frequently Used returned at the start of the list.
 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

addIssue

public void addIssue(java.lang.String issueKey,
                     java.lang.String summary)

getMaxHistoryLength

public int getMaxHistoryLength()

setMaxHistoryLength

public void setMaxHistoryLength(int maxHistoryLength)

getIssues

public java.util.Collection getIssues()
All the issues, sorted with Most Frequently Used returned at the start of the list.

If there are no issues, and empty list is returned.

Returns:
A collection of IssueSummaries


Copyright © 2002-2005 Atlassian. All Rights Reserved.