public class AgentWorkgroups extends IQ
Modifier and Type | Class and Description |
---|---|
static class |
AgentWorkgroups.Provider
An IQProvider for AgentWorkgroups packets.
|
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
Constructor and Description |
---|
AgentWorkgroups(String agentJID)
Creates an AgentWorkgroups request for the given agent.
|
AgentWorkgroups(String agentJID,
List<String> workgroups)
Creates an AgentWorkgroups which will contain the JIDs of the workgroups where an agent can
work.
|
Modifier and Type | Method and Description |
---|---|
String |
getAgentJID() |
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
List<String> |
getWorkgroups()
Returns a list of workgroup JIDs where the agent can work.
|
createErrorResponse, createResultIQ, getType, setType, toXML
addCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toString
public AgentWorkgroups(String agentJID)
agentJID
- the id of the agent to get his workgroups.public AgentWorkgroups(String agentJID, List<String> workgroups)
agentJID
- the id of the agent that can work in the list of workgroups.workgroups
- the list of workgroup JIDs where the agent can work.public String getAgentJID()
public List<String> getWorkgroups()
public String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ