- All Implemented Interfaces:
public class Transcripts extends IQRepresents a list of conversation transcripts that a user had in all his history. Each transcript summary includes the sessionID which may be used for getting more detailed information about the conversation.
Nested Class Summary
Nested Classes Modifier and Type Class Description
Transcripts.AgentDetailAn AgentDetail contains information of an Agent that was involved in a conversation.
Transcripts.TranscriptSummaryA TranscriptSummary contains some information about a conversation such as the ID of the session or the date when the conversation started and finished.
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder buf)This method must be overwritten by IQ subclasses to create their child content.
getSummaries()Returns a list of TranscriptSummary.
getUserID()Returns the id of the user that was involved in the conversations.
Methods inherited from class org.jivesoftware.smack.packet.IQ
createErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementQName, getChildElementXML, getElementName, getType, isRequestIQ, isResponseIQ, setType, toString, toXML
Methods inherited from class org.jivesoftware.smack.packet.Stanza
addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtension, getExtensionElement, getExtensions, getExtensions, getExtensions, getExtensions, getExtensionsMap, getFrom, getLanguage, getNamespace, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setLanguage, setNewStanzaId, setStanzaId, setStanzaId, setTo, throwIfNoStanzaId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public Transcripts(Jid userID)Creates a transcripts request for the given userID.
userID- the id of the user to get his conversations transcripts.
public Transcripts(Jid userID, List<Transcripts.TranscriptSummary> summaries)Creates a Transcripts which will contain the transcript summaries of the given user.
userID- the id of the user. Could be a real JID or a unique String that identifies anonymous users.
summaries- the list of TranscriptSummaries.
getUserIDReturns the id of the user that was involved in the conversations. The userID could be a real JID if the connected user was not anonymous. Otherwise, the userID will be a String that was provided by the anonymous user as a way to identify the user across many user sessions.
- the id of the user that was involved in the conversations.
public List<Transcripts.TranscriptSummary> getSummaries()Returns a list of TranscriptSummary. A TranscriptSummary does not contain the conversation transcript but some summary information like the sessionID and the time when the conversation started and finished. Once you have the sessionID it is possible to get the full conversation transcript.
- a list of TranscriptSummary.
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder buf)Description copied from class:
IQThis method must be overwritten by IQ subclasses to create their child content. It is important you don't use the builder to add the final end tag. This will be done automatically by
IQ.IQChildElementXmlStringBuilderafter eventual existing
ExtensionElements have been added.
For example to create an IQ with a extra attribute and an additional child element
<iq firstname.lastname@example.org' id='123'> <bar xmlns='example:bar' extraAttribute='blaz'> <extraElement>elementText</extraElement> </bar> </iq>
// The builder 'xml' will already have the child element and the 'xmlns' attribute added // So the current builder state is "<bar xmlns='example:bar'" xml.attribute("extraAttribute", "blaz"); xml.rightAngleBracket(); xml.element("extraElement", "elementText"); // Do not close the 'bar' attribute by calling xml.closeElement('bar')
xml.attribute("myAttribute", "myAttributeValue"); xml.setEmptyElement();If your IQ does not contain any attributes or child elements (besides
ExtensionElements), consider sub-classing