Class WorkgroupInvitation
- java.lang.Object
-
- org.jivesoftware.smackx.workgroup.WorkgroupInvitation
-
public class WorkgroupInvitation extends Object
An immutable class wrapping up the basic information which comprises a group chat invitation.
-
-
Field Summary
Fields Modifier and Type Field Description protected Jid
groupChatName
protected Jid
invitationSender
protected Jid
issuingWorkgroupName
protected String
messageBody
protected Map<String,List<String>>
metaData
protected String
sessionID
protected Jid
uniqueID
-
Constructor Summary
Constructors Constructor Description WorkgroupInvitation(Jid jid, Jid group, Jid workgroup, String sessID, String msgBody, Jid from)
This calls the 5-argument constructor with a null MetaData argument value.WorkgroupInvitation(Jid jid, Jid group, Jid workgroup, String sessID, String msgBody, Jid from, Map<String,List<String>> metaData)
WorkgroupInvitation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Jid
getGroupChatName()
Get the group chat name.Jid
getInvitationSender()
Get invitation sender.String
getMessageBody()
Get the message body.Map<String,List<String>>
getMetaData()
Get meta data.String
getSessionID()
Get the session id.Jid
getUniqueID()
Get the unique id.Jid
getWorkgroupName()
Get workgroup name.
-
-
-
Field Detail
-
groupChatName
protected Jid groupChatName
-
issuingWorkgroupName
protected Jid issuingWorkgroupName
-
messageBody
protected String messageBody
-
invitationSender
protected Jid invitationSender
-
-
Constructor Detail
-
WorkgroupInvitation
public WorkgroupInvitation(Jid jid, Jid group, Jid workgroup, String sessID, String msgBody, Jid from)
This calls the 5-argument constructor with a null MetaData argument value.- Parameters:
jid
- the jid string with which the issuing AgentSession or Workgroup instance was createdgroup
- the jid of the room to which the person is invitedworkgroup
- the jid of the workgroup issuing the invitationsessID
- the session id associated with the pending chatmsgBody
- the body of the message which contained the invitationfrom
- the user jid who issued the invitation, if known, null otherwise
-
WorkgroupInvitation
public WorkgroupInvitation(Jid jid, Jid group, Jid workgroup, String sessID, String msgBody, Jid from, Map<String,List<String>> metaData)
WorkgroupInvitation.- Parameters:
jid
- the jid string with which the issuing AgentSession or Workgroup instance. was createdgroup
- the jid of the room to which the person is invitedworkgroup
- the jid of the workgroup issuing the invitationsessID
- the session id associated with the pending chatmsgBody
- the body of the message which contained the invitationfrom
- the user jid who issued the invitation, if known, null otherwisemetaData
- the metadata sent with the invitation
-
-
Method Detail
-
getUniqueID
public Jid getUniqueID()
Get the unique id.- Returns:
- the jid string with which the issuing AgentSession or Workgroup instance was created.
-
getSessionID
public String getSessionID()
Get the session id.- Returns:
- the session id associated with the pending chat; working backwards temporally this session id should match the session id to the corresponding offer request which resulted in this invitation.
-
getGroupChatName
public Jid getGroupChatName()
Get the group chat name.- Returns:
- the jid of the room to which the person is invited.
-
getWorkgroupName
public Jid getWorkgroupName()
Get workgroup name.- Returns:
- the name of the workgroup from which the invitation was issued.
-
getMessageBody
public String getMessageBody()
Get the message body.- Returns:
- the contents of the body-block of the message that housed this invitation.
-
getInvitationSender
public Jid getInvitationSender()
Get invitation sender.- Returns:
- the user who issued the invitation, or null if it wasn't known.
-
getMetaData
public Map<String,List<String>> getMetaData()
Get meta data.- Returns:
- the meta data associated with the invitation, or null if this instance was constructed with none
-
-