Class TranscriptManager

java.lang.Object
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(EntityBareJid, String) or to retrieve a list with the summary of all the conversations that a user had getTranscripts(EntityBareJid, Jid).
  • Constructor Details

    • TranscriptManager

      public TranscriptManager(org.jivesoftware.smack.XMPPConnection connection)
  • Method Details

    • getTranscript

      public Transcript getTranscript(org.jxmpp.jid.EntityBareJid workgroupJID, String sessionID) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Returns the full conversation transcript of a given session.
      Parameters:
      workgroupJID - the JID of the workgroup that will process the request.
      sessionID - the id of the session to get the full transcript.
      Returns:
      the full conversation transcript of a given session.
      Throws:
      org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.
      org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.
      org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
      InterruptedException - if the calling thread was interrupted.
    • getTranscripts

      public Transcripts getTranscripts(org.jxmpp.jid.EntityBareJid workgroupJID, org.jxmpp.jid.Jid userID) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Returns the transcripts of a given user. The answer will contain the complete history of conversations that a user had.
      Parameters:
      workgroupJID - the JID of the workgroup that will process the request.
      userID - the id of the user to get his conversations.
      Returns:
      the transcripts of a given user.
      Throws:
      org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.
      org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.
      org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
      InterruptedException - if the calling thread was interrupted.