org.jivesoftware.sparkimpl.plugin.transcripts
Class ChatTranscript

java.lang.Object
  extended by org.jivesoftware.sparkimpl.plugin.transcripts.ChatTranscript

public class ChatTranscript
extends java.lang.Object

A single chat transcript mapped to one JID.

Author:
Derek DeMoro

Constructor Summary
ChatTranscript()
           
 
Method Summary
 void addHistoryMessage(HistoryMessage entry)
          Add a HistoryMessage to users chat transcript.
 java.util.List<HistoryMessage> getMessages()
          Returns all messages.
 java.util.Collection getNumberOfEntries(int number)
          Returns a specified number of messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatTranscript

public ChatTranscript()
Method Detail

addHistoryMessage

public void addHistoryMessage(HistoryMessage entry)
Add a HistoryMessage to users chat transcript.

Parameters:
entry - the HistoryMessage to add.

getMessages

public java.util.List<HistoryMessage> getMessages()
Returns all messages.

Returns:
all messages.

getNumberOfEntries

public java.util.Collection getNumberOfEntries(int number)
Returns a specified number of messages.

Parameters:
number - the number of messages to return.
Returns:
the specified number of messages, or all messages if number is greater than the current amount.