Class TranscriptManager
java.lang.Object
org.jivesoftware.smackx.workgroup.agent.TranscriptManager
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTranscript
(EntityBareJid workgroupJID, String sessionID) Returns the full conversation transcript of a given session.getTranscripts
(EntityBareJid workgroupJID, Jid userID) Returns the transcripts of a given user.
-
Constructor Details
-
TranscriptManager
-
-
Method Details
-
getTranscript
public Transcript getTranscript(EntityBareJid workgroupJID, String sessionID) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException 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.XMPPErrorException
- if there was an XMPP error returned.SmackException.NoResponseException
- if there was no response from the remote entity.SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.
-
getTranscripts
public Transcripts getTranscripts(EntityBareJid workgroupJID, Jid userID) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException 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.XMPPErrorException
- if there was an XMPP error returned.SmackException.NoResponseException
- if there was no response from the remote entity.SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.
-