Smack

org.jivesoftware.smackx.workgroup.agent
Class TranscriptManager

java.lang.Object
  extended by org.jivesoftware.smackx.workgroup.agent.TranscriptManager

public class TranscriptManager
extends Object

A TranscriptManager helps to retrieve the full conversation transcript of a given session getTranscript(String, String) or to retrieve a list with the summary of all the conversations that a user had getTranscripts(String, String).

Author:
Gaston Dombiak

Constructor Summary
TranscriptManager(Connection connection)
           
 
Method Summary
 Transcript getTranscript(String workgroupJID, String sessionID)
          Returns the full conversation transcript of a given session.
 Transcripts getTranscripts(String workgroupJID, String userID)
          Returns the transcripts of a given user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranscriptManager

public TranscriptManager(Connection connection)
Method Detail

getTranscript

public Transcript getTranscript(String workgroupJID,
                                String sessionID)
                         throws XMPPException
Returns the full conversation transcript of a given session.

Parameters:
sessionID - the id of the session to get the full transcript.
workgroupJID - the JID of the workgroup that will process the request.
Returns:
the full conversation transcript of a given session.
Throws:
XMPPException - if an error occurs while getting the information.

getTranscripts

public Transcripts getTranscripts(String workgroupJID,
                                  String userID)
                           throws XMPPException
Returns the transcripts of a given user. The answer will contain the complete history of conversations that a user had.

Parameters:
userID - the id of the user to get his conversations.
workgroupJID - the JID of the workgroup that will process the request.
Returns:
the transcripts of a given user.
Throws:
XMPPException - if an error occurs while getting the information.

Smack

Copyright © 2003-2007 Jive Software.